A method for calibrating an image of a c-mount camera
By constructing a highly reliable feature point benchmark library and an environment-invariant feature extractor, the problem of unstable calibration of checkpoint cameras in complex environments was solved, achieving robust feature extraction and high-precision license plate binding in all weather conditions.
Patent Information
- Application Number
- CN202611205250.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-10
- Publication Date
- 2026-11-27
AI Technical Summary
Existing image calibration methods for checkpoint cameras are unstable in feature point selection under complex environments and lack robustness to environmental changes, leading to calibration failures.
By constructing a highly reliable feature point benchmark library, generating rendering datasets under multiple lighting and weather conditions, training an environment-invariant feature extractor, and combining implicit 3D models and multi-objective optimization, the calibration parameters of the camera mount are obtained.
It achieves robust feature extraction in all weather conditions, improves the mapping accuracy and stability from 2D images to 3D geographic coordinates, and reduces the error of the perspective transformation matrix.
Smart Images

Figure CN123181588A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent traffic monitoring technology, and in particular to a method for calibrating images from checkpoint cameras. Background Technology
[0002] In intelligent transportation systems, the precise binding of license plate recognition with geographic location is a key technological link in realizing core functions such as vehicle trajectory tracking, violation evidence collection, and traffic flow analysis. The implementation of this technology heavily relies on high-precision image calibration of checkpoint cameras, i.e., determining the camera's internal parameters (such as focal length and distortion) and external parameters (such as position and pose) to establish an accurate mapping relationship between image pixel coordinates and three-dimensional world coordinates. In recent years, with breakthroughs in deep learning in computer vision, some research has begun to explore using convolutional neural networks (CNNs) to directly predict camera pose from images or learn features invariant to viewpoint and illumination, providing new ideas for robust calibration in complex environments.
[0003] In all-weather, high-reliability license plate binding scenarios, existing technologies face two major bottlenecks. First, current self-calibration methods rely heavily on the response intensity of general detectors or simple geometric rules when selecting feature points, lacking intelligent evaluation of the "long-term stability" and "task adaptability" of feature points. Traffic scenarios contain numerous temporary objects (vehicles, pedestrians) and objects susceptible to weather and lighting conditions (slippery roads, reflective signs), leading to unstable selected feature points that are prone to failure after environmental changes, thus causing calibration failure. Second, both traditional descriptors and deep learning features are primarily designed for scale, rotation, and limited brightness variations, while checkpoint cameras need to cope with extreme and complex conditions such as day and night, rain, snow, fog, haze, and strong backlighting. Existing methods lack data covering such a wide range of extreme conditions during training, resulting in a sharp drop in feature matching accuracy in harsh environments, rendering the calibration and binding process unreliable. Summary of the Invention
[0004] In view of the aforementioned existing problems, the present invention is proposed.
[0005] Therefore, this invention provides a method for calibrating images of a bayonet camera to solve the problems of blind and fragile feature point selection and insufficient robustness of feature descriptors to environmental changes, which lead to calibration failure in the prior art.
[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution: This invention provides a method for calibrating checkpoint camera images, comprising: acquiring a reference image of a checkpoint scene and extracting multiple initial candidate feature points from the reference image; calculating the reliability score of each feature point based on the multiple initial candidate feature points, and selecting high-reliability feature points from the initial candidate feature points based on the reliability score to form a high-reliability feature point benchmark library; constructing an implicit 3D model based on the reference image, and rendering the image patch of each high-reliability feature point in the high-reliability feature point benchmark library under multiple lighting and weather conditions to generate a pairwise training dataset; training a feature descriptor network using the pairwise training dataset to obtain an environment-invariant feature extractor; acquiring a real-time scene image of the checkpoint camera, and using the environment-invariant feature extractor to extract qualified feature descriptors of the image region corresponding to the high-reliability feature point benchmark library in the real-time scene image; matching the qualified feature descriptors with the pre-stored feature descriptors in the high-reliability feature point benchmark library to obtain successfully matched feature point pairs, and combining the corresponding image 2D coordinates and 3D world coordinates to obtain the calibration parameters of the checkpoint camera for license plate binding.
[0007] As a preferred embodiment of the checkpoint camera image calibration method of the present invention, the specific steps of acquiring a reference image of the checkpoint scene and extracting multiple initial candidate feature points from the reference image are as follows: Collect multiple images of the same scene at different exposure times, and combine the images at different exposure times into a high dynamic range image as a reference image; Semantic segmentation is performed on the reference image to identify and determine high-value semantic regions belonging to permanent fixed structures in the reference image; Feature point detection is performed within high-value semantic regions, and multiple initial candidate feature points are extracted.
[0008] As a preferred embodiment of the camera image calibration method of the present invention, the specific steps for calculating the reliability score of each feature point are as follows: Based on the image patch, coordinate and scale information corresponding to multiple initial candidate feature points, a spatiotemporal feature interaction graph is constructed. Multi-round graph convolution and attention interaction are performed on the spatiotemporal feature interaction graph to obtain a deep feature representation of each feature point; Based on deep feature representation, the reliability score of each feature point is calculated.
[0009] As a preferred embodiment of the image calibration method for a bayonet camera according to the present invention, the specific steps for forming a high-reliability feature point reference library are as follows: A multi-objective fitness function is constructed based on the reliability score, deep feature representation, and image coordinates of each feature point; Using a set of multiple initial candidate feature points as the search space, a multi-objective fitness function is used to perform multi-objective collaborative optimization, selecting the feature point subset that is optimal in terms of individual reliability, spatial distribution uniformity, and feature diversity. The image blocks, coordinates, deep feature representations, and reliability scores in the feature point subset are structured and stored to form a high-reliability feature point benchmark library.
[0010] As a preferred embodiment of the image calibration method for a bayonet camera according to the present invention, the specific steps for constructing an implicit 3D model based on a reference image are as follows: An image feature coding layer is built based on a reference image, a visual feature pyramid layer is built using a dense feature extractor, a spatial geometric coding layer is built using a multi-resolution hash encoder, and a radiation property prediction layer is built using a multilayer perceptron. By cascading and linking the image feature coding layer, the multi-scale visual feature pyramid layer, the spatial geometric coding layer, and the radiation attribute prediction layer through feature fusion, an implicit 3D model is constructed.
[0011] As a preferred embodiment of the camera mount image calibration method of the present invention, the specific steps for generating the pairwise training dataset are as follows: Define a multidimensional environmental parameter vector that encompasses the physical properties of lighting and weather, and combine it with an implicit 3D model to generate rendered image patches of each feature point under corresponding environmental conditions through a conditional rendering pipeline. The quality of rendered image patches is evaluated and filtered using a quality threshold, retaining high-quality rendered image patches; High-quality rendered image patches are paired with image patches containing corresponding feature points under standard clear conditions to generate paired training datasets.
[0012] As a preferred embodiment of the image calibration method for a bayonet camera according to the present invention, the specific steps for obtaining the environment-invariant feature extractor are as follows: Construct a dynamic memory library associated with high-reliability feature points and initialize the feature descriptor subnetwork; Based on a pairwise training dataset and a dynamic memory bank, a feature descriptor subnetwork is trained using a course-contrastive learning method. The trained feature descriptor network is used as an environment-invariant feature extractor.
[0013] As a preferred embodiment of the camera image calibration method of the present invention, the specific steps for extracting feature descriptors of the image region corresponding to the high-reliability feature point benchmark library in the real-time scene image are as follows: Acquire real-time scene images from the checkpoint camera, and locate the corresponding image region in the real-time scene image based on the coordinates and scale information of each feature point in the high-reliability feature point benchmark library. Using an environment-invariant feature extractor, feature descriptors for the corresponding image regions are extracted, and the matching score between the feature descriptors and the benchmark feature descriptors stored in the high-reliability feature point benchmark library is calculated. Based on the matching score, qualified feature descriptors that meet the matching confidence threshold are selected from the extracted feature descriptors.
[0014] As a preferred embodiment of the checkpoint camera image calibration method of the present invention, the steps of obtaining successfully matched feature point pairs and combining the corresponding two-dimensional coordinates and three-dimensional world coordinates of the image to obtain the calibration parameters of the checkpoint camera for license plate binding are as follows: The qualified feature descriptors are matched with the feature descriptors pre-stored in the high-reliability feature point benchmark library, and a candidate matching pair set is generated based on the nearest neighbor distance ratio test. Based on the spatial constraints of the candidate matching pair set and the feature points in the high-reliability feature point benchmark library, a joint correlation graph optimization problem is constructed, and a globally consistent matching pair set is obtained. Perform geometric verification on the set of globally consistent matching pairs, and select the interior points that meet the geometric conditions as successfully matched feature point pairs; Based on the two-dimensional coordinates and three-dimensional world coordinates of the image corresponding to the successfully matched feature point pairs, the perspective transformation matrix is iteratively updated until the stopping iteration condition is met. The latest perspective transformation matrix is used as the extrinsic parameter of the checkpoint camera, thereby establishing a mapping relationship from the license plate image coordinates to the three-dimensional geographic coordinates for license plate binding. The stopping iteration condition is that the number of iterations reaches the maximum number of iterations, or the average projection error of all successfully matched feature point pairs is less than the preset average error value, or the rate of change of the average projection error obtained from two adjacent calculations is less than the preset rate of change.
[0015] As a preferred embodiment of the image calibration method for the camera mount described in this invention, if the projection error of a successfully matched feature point pair is greater than a preset maximum error value during the update and iteration process of the perspective transformation matrix, the average projection error is calculated after the successfully matched feature point pair is removed. If the current average projection error is less than the historical best result and greater than or equal to the preset average error value, then update the average projection error of all successfully matched feature point pairs to the current average projection error and perform weight updates. If the current average projection error is greater than or equal to the historical best result, then the weights are updated directly. The weight updates are as follows: Calculate the Gaussian weights of successfully matched feature point pairs whose projection errors are less than or equal to the first preset projection error value; calculate the Huber weights of successfully matched feature point pairs whose projection errors are greater than the first preset projection error value and less than the second preset projection error value; calculate the Tukey weights of successfully matched feature point pairs whose projection errors are greater than or equal to the second preset projection error value; perform weighted smoothing on the current weights of the successfully matched feature point pairs and the calculated weights; normalize the weighted smoothed weights of all successfully matched feature point pairs; and update the current weights of the successfully matched feature point pairs. The current weights of successfully matched feature point pairs are used to adjust the influence of successfully matched feature point pairs on the perspective transformation matrix update iteration process, so as to reduce the projection error calculated based on the perspective transformation matrix.
[0016] The beneficial effects of this invention are: 1. By constructing a spatiotemporal feature interaction graph and performing graph convolution and attention interaction, the quality and robustness of the calibration base data are guaranteed from the source, achieving a leap from geometric detection to semantic and stability intelligent evaluation; by utilizing the constructed implicit 3D model and the defined multi-dimensional environmental parameter vector, the all-weather absolute robustness of feature extraction is achieved, enabling the calibration process to have the ability to generalize in the face of unknown severe weather.
[0017] 2. By updating the weights of feature point pairs that have been successfully matched with different projection errors in different ways, it is possible to better adapt to complex road structures, occlusion interference and imaging noise, significantly improve the mapping accuracy and stability from two-dimensional images to three-dimensional geographic coordinates, and significantly reduce the error of the perspective transformation matrix (external parameters of the camera mount). Attached Figure Description
[0018] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 A flowchart for the image calibration method of a bayonet camera.
[0020] Figure 2 A flowchart for creating a high-reliability feature point benchmark library.
[0021] Figure 3 A flowchart for obtaining calibration parameters and binding them to license plates.
[0022] Figure 4 This is an overview of the changes in in-point rate with rain, snow, and fog concentrations.
[0023] Figure 5 Heatmap of license plate binding success rate.
[0024] Figure 6 This is a schematic diagram of feature point selection in the embodiment.
[0025] Figure 7 This is a schematic diagram of the image calibration of the camera mount in the embodiment. Detailed Implementation
[0026] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0027] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0028] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.
[0029] Reference Figures 1-5 As one embodiment of the present invention, this embodiment provides a method for calibrating images of a bayonet camera, comprising the following steps: S1. Acquire a reference image of the checkpoint scene and extract multiple initial candidate feature points from the reference image.
[0030] Multiple images of the same scene with different exposure times are acquired and then combined into a high dynamic range image as a reference image.
[0031] The specific process includes continuously capturing multiple frames of the same scene with different exposure times at a fixed position using a camera. These images with different exposure times record detailed information about the bright and shadow areas in the scene, respectively. High dynamic range imaging is used to align the multiple images with different exposure times to eliminate the slight displacement caused by the shooting interval. Radiometric values are obtained based on the response values of each pixel in the multiple images with different exposure times. The radiometric values are then merged to generate a high dynamic range image that contains a wider range of brightness. The high dynamic range image serves as the reference image required for subsequent processing steps.
[0032] Semantic segmentation is performed on the reference image to identify and determine high-value semantic regions in the reference image that belong to permanent fixed structures.
[0033] The specific process includes processing the reference image using a deep learning-based semantic segmentation algorithm. The semantic segmentation algorithm performs classification operations on each pixel in the reference image using pre-trained parameters, thereby generating a semantic segmentation map containing labels for different object categories. In the semantic segmentation map, permanent fixed structure categories that do not shift or change shape over time, such as building walls, traffic poles, road markings, and fixed guardrails, are selected. The pixel regions corresponding to these permanent fixed structure categories are merged and marked as high-value semantic regions belonging to permanent fixed structures in the reference image.
[0034] It should be noted that the pre-trained parameters refer to the fixed weight and bias values obtained during the training phase through iterative optimization using a large amount of labeled image data via backpropagation. These values are stored within the semantic segmentation algorithm and used to directly calculate and classify the pixel features of the reference image during the inference phase, without needing to relearn or adjust them during the current processing. High-value semantic regions refer to local areas in an image containing permanent, fixed structures such as building walls, traffic poles, road markings, and fixed guardrails. Their significance lies in focusing computational resources on long-term stable parts, thereby improving the accuracy of feature matching and the reliability of camera calibration. Feature point detection is performed within high-value semantic regions, and multiple initial candidate feature points are extracted.
[0035] The specific process includes feeding high-value semantic regions as input data into a feature point detection algorithm based on corner detection or blob detection. The feature point detection algorithm locates potential locations with unique texture information by obtaining the gray-level change rate or second derivative response value of each pixel in the high-value semantic region, and filters out pixels with low response values according to a preset response threshold to eliminate noise interference. The coordinates of the retained pixels are recorded and output as multiple initial candidate feature points.
[0036] It should be noted that the response threshold is a value selected by analyzing the statistical law of gray-level gradient distribution of similar scene images based on the operator characteristics of the feature point detection algorithm and the image noise level. For example, the range of values is usually between 10 and 50 for corner detection algorithms and between 0.01 and 0.5 for spot detection algorithms.
[0037] S2. Based on multiple initial candidate feature points, calculate the reliability score of each feature point, and select high-reliability feature points from the initial candidate feature points according to the reliability scores to form a high-reliability feature point benchmark library.
[0038] Based on the image patches, coordinates, and scale information corresponding to multiple initial candidate feature points, a spatiotemporal feature interaction graph is constructed.
[0039] The specific process includes taking multiple initial candidate feature points as nodes, extracting the image patch texture features, coordinate position information and scale parameters corresponding to each node as node attributes, obtaining the Euclidean distance between any two initial candidate feature points in space and the degree of correlation in the time series, establishing a connection edge between the two initial candidate feature points when the time correlation is higher than a preset standard, and finally combining all initial candidate feature point nodes and the connection edges between them into a spatiotemporal feature interaction graph.
[0040] It should be noted that the preset standard is based on the statistical patterns of the spatial distance distribution and temporal correlation distribution of stable matching feature point pairs in historical scenarios.
[0041] By performing multiple rounds of graph convolution and attention interaction on the spatiotemporal feature interaction graph, a deep feature representation of each feature point is obtained.
[0042] The specific process includes using graph convolution operations to aggregate the attribute information (including spatial coordinates, visual appearance descriptors, timestamps, and motion state vectors) of the neighboring nodes of each feature point in the spatiotemporal feature interaction graph to update the feature vector of the current feature point. The association weight between each feature point and its neighboring feature points is obtained through an attention mechanism, and the aggregated feature information is weighted and fused according to the association weight. Then, the graph convolution operation and attention interaction operation are repeated multiple times to gradually expand the receptive field and deepen the feature expression, resulting in a deep feature representation of each feature point containing rich contextual information and spatial geometric relationships.
[0043] Based on deep feature representation, the reliability score of each feature point is calculated, expressed as: ; in, Indicates the first Reliability score of each feature point Indices representing feature points Represents the sensitivity coefficient. This represents the total number of simulated perturbation transformations. Indicates the index of the simulated perturbation transformation. Indicates the first Deep feature representation of each feature point Indicates the first The deep feature representation of the nth feature point is applied to the nth feature point. The new eigenvectors obtained after the simulated perturbation transformation Indicates the first A type of simulated perturbation transformation function.
[0044] It should be noted that the sensitivity coefficient is a weighting factor used to adjust the difference in response of feature points to simulated disturbance transformation. By statistically analyzing the distribution of feature vector fluctuation amplitudes of a large number of stable feature points under various environmental changes, the critical proportion value that can distinguish between high-reliability and low-reliability feature points is selected as the sensitivity coefficient. Indicates the first The simulated perturbation transformation function is used to simulate the impact of real-world environmental changes on the deep feature representation of feature points. It is composed of a combination of image processing algorithms such as rotation, scaling, brightness adjustment, and noise addition.
[0045] The specific process includes taking the deep feature representation of each feature point as the base vector, applying multiple simulated perturbation transformations to the deep feature representation of each feature point in sequence to generate a corresponding new feature vector set, then calculating the squared Euclidean distance between each new feature vector and the original deep feature representation and taking the average of all squared distance values, weighting the average result with the sensitivity coefficient to obtain the difference measure, and taking the negative exponent of the difference measure to obtain the reliability score of each feature point.
[0046] A multi-objective fitness function is constructed based on the reliability score, deep feature representation, and image coordinates of each feature point.
[0047] The specific process includes: quantifying the individual stability of each feature point using reliability scores; obtaining the feature difference between feature points using deep feature representation to assess feature diversity; calculating the uniformity of feature point spatial distribution using the image coordinates of each feature point; and combining the three indicators of individual stability, feature diversity, and spatial distribution uniformity into a single numerical output as a multi-objective fitness function through a weighted summation method.
[0048] It should be noted that the multi-objective fitness function refers to an evaluation index that simultaneously considers multiple mutually constraining optimization objectives. Its significance lies in balancing the needs of multiple dimensions such as feature matching accuracy, geometric consistency, and computational efficiency. Its effect is to guide the optimization process to find a globally optimal solution that takes into account all performance indicators rather than a locally optimal solution based on a single indicator.
[0049] Using the set of multiple initial candidate feature points as the search space, a multi-objective fitness function is used to perform multi-objective collaborative optimization, and a subset of feature points that is optimal in terms of individual reliability, spatial distribution uniformity, and feature diversity is selected.
[0050] The specific process includes treating the set of multiple initial candidate feature points as the solution space to be screened, using a multi-objective fitness function to score and evaluate different feature point combination schemes in the solution space, iteratively updating the feature point combination schemes to continuously approach the state with the highest individual reliability, the best spatial distribution uniformity, and the richest feature diversity, stopping the iteration when the scoring results reach the convergence condition, and determining the feature point combination scheme with the highest current score as the feature point subset that is optimal in terms of individual reliability, spatial distribution uniformity, and feature diversity.
[0051] It should be noted that the convergence condition refers to the stopping criterion for iterative updates during multi-objective collaborative optimization, which is achieved by monitoring the change in the evaluation value of the multi-objective fitness function in consecutive iterations.
[0052] The image blocks, coordinates, deep feature representations, and reliability scores in the feature point subset are structured and stored to form a high-reliability feature point benchmark library.
[0053] The specific process includes packaging image patch texture information, spatial location coordinates, deep feature representation vectors, and reliability scores into independent record entries, and storing all independent record entries in an orderly manner into a database to form a high-reliability feature point benchmark library that can be directly called upon in subsequent calibration tasks.
[0054] It should be noted that the high reliability feature point benchmark library refers to a database that stores feature points that have been rigorously screened and possess high texture richness, high spatial stability, and high environmental robustness. Its significance lies in providing a stable matching benchmark for real-time scenarios that is not affected by changes in lighting and weather. The effect is to reduce the false matching rate and improve the positioning accuracy and system robustness of license plate binding in complex dynamic environments.
[0055] S3. Construct an implicit 3D model based on the reference image, and render the image patch of each high-reliability feature point in the high-reliability feature point benchmark library under multiple lighting and weather conditions to generate a pair of training datasets.
[0056] An image feature coding layer is built based on a reference image, a visual feature pyramid layer is built using a dense feature extractor, a spatial geometric coding layer is built using a multi-resolution hash encoder, and a radiation attribute prediction layer is built using a multilayer perceptron.
[0057] The specific process includes: building an image feature encoding layer based on a reference image by extracting deep semantic features of the reference image using convolution operations; building a visual feature pyramid layer using a dense feature extractor by generating a visual feature map containing multi-scale information by performing feature extraction operations at different resolutions; building a spatial geometry encoding layer using a multi-resolution hash encoder to map three-dimensional spatial coordinates into a multi-resolution hash grid index to encode the scene's geometric structure; and building a radiation attribute prediction layer using a multilayer perceptron by mapping the fused geometric and visual features into pixel color and density values using fully connected transformations. These four layers together constitute a complete implicit three-dimensional representation structure.
[0058] It should be noted that a dense feature extractor is an algorithmic component that can output a dense feature map with the same spatial resolution as the input image. It consists of multiple convolutional operations, nonlinear activation functions, and upsampling operations cascaded together. A multi-resolution hash encoder is an algorithmic component that maps continuous three-dimensional spatial coordinates into discrete multi-resolution grid feature vectors. It consists of multiple levels of hash grid tables with different precisions, spatial coordinate hash mapping functions, and linear interpolation operations. A multilayer perceptron is a nonlinear function structure that maps input feature vectors into output radiation attribute values. It consists of multiple sequentially connected fully connected transformation layers and nonlinear activation functions. Deep semantic features refer to an abstract high-dimensional vector representation that integrates local visual texture, global spatial topology, and temporal motion patterns after iterative aggregation through multi-layer graph convolution and attention mechanisms. Its specific connotations include traffic element category information to which feature points belong, encoding of relative positional relationships in the scene, and identity information that is robust to changes in lighting and weather.
[0059] By cascading and linking the image feature coding layer, the multi-scale visual feature pyramid layer, the spatial geometric coding layer, and the radiation attribute prediction layer through feature fusion, an implicit 3D model is constructed.
[0060] The specific process includes merging the deep semantic features output by the image feature coding layer with the multi-scale visual feature map generated by the visual feature pyramid layer in the channel dimension using a concatenation operation; adding or concatenating the merged visual feature vector with the multi-resolution hash grid feature vector output by the spatial geometry coding layer element by element to form a fused feature representation; inputting the fused feature representation into the fully connected transformation layer and nonlinear activation function structure inside the radiation attribute prediction layer to establish a mapping relationship from spatial location to pixel color and density value; and synchronously updating all weight parameters inside the image feature coding layer, visual feature pyramid layer, spatial geometry coding layer and radiation attribute prediction layer through the backpropagation algorithm to realize parameter linking between each layer, forming an implicit 3D model that can express the 3D geometric structure and appearance radiation attributes of the scene.
[0061] Define a multidimensional environmental parameter vector that encompasses the physical properties of lighting and weather, and combine it with an implicit 3D model to generate rendered image blocks of each feature point under corresponding environmental conditions through a conditional rendering pipeline.
[0062] The specific process includes selecting light intensity, light direction angle, color temperature, and rain / snow / fog concentration as vector components; arranging these components in a fixed order to form a single vector structure, creating a multi-dimensional environmental parameter vector; injecting this multi-dimensional environmental parameter vector into the radiation attribute prediction layer of the implicit 3D model to adjust the output of pixel color and density values; using a ray casting algorithm to traverse the scene space expressed by the implicit 3D model and accumulating pixel colors based on the adjusted radiation attribute values; and extracting local image regions from the corresponding viewpoints for each feature point coordinate recorded in the high-reliability feature point benchmark library to form rendered image blocks containing different combinations of lighting and weather effects under corresponding environmental conditions.
[0063] It should be noted that the ray casting algorithm is a rendering method that synthesizes pixel colors by emitting rays from the center of the camera into the scene space and accumulating the radiation properties of sampled points along the ray path. Its significance lies in transforming the continuous scene geometry and appearance expressed by the implicit 3D model into a discrete 2D image. The effect is to generate high-quality rendered image blocks with realistic lighting and shadow details and continuously variable viewpoints.
[0064] The quality of rendered image patches is evaluated and filtered using a quality threshold to retain high-quality rendered image patches.
[0065] The specific process includes: using the Laplacian operator to obtain the edge sharpness value of each rendered image block and combining it with the information entropy algorithm to count the texture richness value of each rendered image block; weighted summing of the edge sharpness value and texture richness value to obtain a quality score representing the sharpness; comparing the quality score with a quality threshold; removing rendered image blocks with a quality score lower than the quality threshold; and identifying rendered image blocks with a quality score higher than or equal to the quality threshold as high-quality rendered image blocks.
[0066] It should be noted that the quality threshold is preset based on the statistical distribution law of edge sharpness and information entropy of high-quality image blocks. It is obtained by acquiring the average quality score of a large number of clear samples and selecting a certain proportion of the average as a benchmark. The exemplary value range is usually between 0.5 and 0.8.
[0067] High-quality rendered image patches are paired with image patches containing corresponding feature points under standard clear conditions to generate paired training datasets.
[0068] The specific process includes locating the feature point identity of each high-quality rendered image block according to the feature point index recorded in the high-reliability feature point benchmark library, extracting the original image block corresponding to the same feature point identity under standard clear conditions from the reference image or standard environment rendering result, combining each high-quality rendered image block with the extracted image block under standard clear conditions according to the feature point identity to form an image pair, and storing all the image pair sets as a pairwise training dataset.
[0069] It should be noted that standard clear conditions refer to an ideal environmental state in which the light intensity is within the normal range during the day, the direction of the light is the natural angle of incidence of sunlight, the color temperature is about 5,500 Kelvin, and there is no weather interference such as rain, snow, or fog. For example, a scene at noon with no clouds obstructing the view, extremely high air transparency, and direct sunlight.
[0070] S4. Train the feature descriptor subnetwork using paired training datasets to obtain the environment-invariant feature extractor.
[0071] Construct a dynamic memory associated with high-reliability feature points and initialize the feature descriptor network.
[0072] The specific process includes: allocating dynamically expandable storage space in memory; using the deep feature representation vector of each feature point in the high-reliability feature point benchmark library as the key value; using the multi-dimensional environment parameter vector used when generating the corresponding image block of the feature point as the environment label value; establishing a one-to-one mapping relationship between the deep feature representation vector and the environment label value; and writing it into the storage space to form a dynamic memory library that supports real-time read and write operations. At the same time, the transfer learning strategy is used to allocate initial weight parameters to the fully connected transformation layer and nonlinear activation function inside the feature descriptor subnetwork to complete the initialization operation of the feature descriptor subnetwork.
[0073] It should be noted that dynamic memory refers to a scalable data structure that stores high-reliability deep feature representations of feature points and corresponding environmental labels in real time. Its significance lies in providing diverse historical negative samples for contrastive learning to enhance feature discrimination power. The effect is to improve the generalization ability and matching robustness of the feature descriptor network in complex and ever-changing environments. Transfer learning strategy refers to the method of loading network weight parameters that have been pre-trained on large-scale general datasets as initial values into the feature descriptor network. Its significance lies in using existing knowledge to accelerate the convergence process of new tasks and alleviate the overfitting problem under small sample data. The effect is to improve the training efficiency and final feature extraction accuracy of the feature descriptor network in specific traffic scenarios.
[0074] Based on paired training datasets and dynamic memory, a feature descriptor subnetwork is trained using a course-contrastive learning method.
[0075] The specific process includes inputting image patches under standard clear conditions and rendered image patches under corresponding environmental conditions from the paired training dataset into the feature descriptor network to generate feature vectors; using historical feature representations stored in the dynamic memory as a negative sample set to construct a contrastive loss function; inputting training samples in batches according to the perturbation intensity of the environmental parameter vector from low to high to achieve progressive learning from simple to complex environments; updating the internal weight parameters of the feature descriptor network by minimizing the feature vector distance of the same feature point under different environments and maximizing the feature vector distance between different feature points, thus obtaining a feature descriptor network with environment invariance.
[0076] It should be noted that the course comparison learning method is a progressive learning strategy that organizes training samples in order of increasing difficulty of environmental perturbation. Its significance lies in guiding the feature descriptor network to first master the feature invariance in simple environments and then gradually adapt to complex and extreme conditions. The effect is to avoid the training process getting stuck in local optima and to improve the network's generalization ability under varying lighting and weather conditions.
[0077] The trained feature descriptor network is used as an environment-invariant feature extractor.
[0078] The specific process includes using the trained feature descriptor network as an environment-invariant feature extractor, saving all weight parameters and structural configurations optimized by the course comparison learning method within the feature descriptor network, and directly deploying the feature descriptor network with saved weight parameters and structural configurations into the image calibration process to extract feature vectors from input image patches. At this point, the feature descriptor network is transformed into an environment-invariant feature extractor that can output feature representations that are robust to environmental changes.
[0079] S5. Acquire real-time scene images from the checkpoint camera and use an environment-invariant feature extractor to extract qualified feature descriptors from the real-time scene images that correspond to the image regions in the high-reliability feature point benchmark library.
[0080] The system acquires real-time scene images from the camera mount and locates the corresponding image region in the real-time scene image based on the coordinates and scale information of each feature point in a high-reliability feature point benchmark library.
[0081] The specific process includes: using a camera to acquire real-time scene images at the current moment; reading the spatial coordinates and scale parameters of each feature point stored in a high-reliability feature point reference library; mapping the corresponding pixel center point position in the real-time scene image based on the spatial coordinates; determining the cropping range size based on the pixel center point based on the scale parameters; and extracting a local image block containing the pixel center point and conforming to the cropping range size from the real-time scene image as the corresponding image region in the real-time scene image.
[0082] It should be noted that the clipping range is obtained based on the scale parameters of each feature point recorded in the high-reliability feature point benchmark library.
[0083] Using an environment-invariant feature extractor, feature descriptors for the corresponding image regions are extracted, and the matching score between the feature descriptors and the benchmark feature descriptors stored in the high-reliability feature point benchmark library is calculated. The expression is as follows: ; in, Indicates the first [image region] extracted from the corresponding image region. The first feature descriptor is compared with the second feature point taken from the high-reliability feature point benchmark library. Matching scores between baseline feature descriptors This represents the index of the feature descriptor extracted from the corresponding image region. This represents the index of the benchmark feature descriptor read from the high-reliability feature point benchmark library. This indicates the first [number] in the high-reliability feature point benchmark library. Reliability score of each benchmark feature point This represents the first image region extracted from the corresponding image region. Each feature descriptor vector This indicates the first reference point read from the high-reliability feature point benchmark library. A baseline feature descriptor vector.
[0084] The specific process includes: inputting the located corresponding image region into the environment-invariant feature extractor, outputting a real-time feature descriptor vector; reading the benchmark feature descriptor vector and the corresponding reliability score from the high-reliability feature point benchmark library; calculating the Euclidean distance between the real-time feature descriptor vector and the benchmark feature descriptor vector; combining the corresponding reliability score with the Euclidean distance to obtain a weighted distance metric; and substituting the weighted distance metric into an expression containing exponential operations and fractional structures to calculate and output the matching score between the real-time feature descriptor and the benchmark feature descriptor.
[0085] Based on the matching score, qualified feature descriptors that meet the matching confidence threshold are selected from the extracted feature descriptors.
[0086] The specific process includes comparing the matching score between each real-time feature descriptor and the baseline feature descriptor with a matching confidence threshold, retaining real-time feature descriptors with matching scores higher than or equal to the matching confidence threshold, removing real-time feature descriptors with matching scores lower than the matching confidence threshold, and determining the retained real-time feature descriptors as qualified feature descriptors that meet the matching confidence threshold.
[0087] It should be noted that the matching confidence threshold is preset based on experience with the feature matching task and performance on the validation set (such as the balance between matching precision and recall). It is usually the optimal cutoff point determined by grid search or ROC curve analysis, with an exemplary value range of 0.7 to 0.9.
[0088] S6. Match the qualified feature descriptors with the pre-stored feature descriptors in the high-reliability feature point benchmark library to obtain successfully matched feature point pairs. Combine the corresponding two-dimensional coordinates of the image and the three-dimensional world coordinates to obtain the calibration parameters of the checkpoint camera for license plate binding.
[0089] The qualified feature descriptors are matched with the feature descriptors pre-stored in the high-reliability feature point benchmark library, and a set of candidate matching pairs is generated based on the nearest neighbor distance ratio test.
[0090] The specific process includes obtaining the Euclidean distance between each qualified feature descriptor and all pre-stored feature descriptors in the high-reliability feature point benchmark library through a distance metric algorithm, sorting them according to the distance, selecting the first nearest neighbor feature descriptor with the smallest distance and the second nearest neighbor feature descriptor with the second smallest distance, calculating the ratio of the first nearest neighbor distance to the second nearest neighbor distance, and combining the qualified feature descriptor with the first nearest neighbor feature descriptor into a valid match when the ratio is less than a preset judgment standard, and summarizing all generated valid match combinations to form a candidate match pair set.
[0091] It should be noted that the preset judgment criteria are based on the statistical distribution of the nearest neighbor distance ratios of a large number of known correct and incorrect matching point pairs. By analyzing the concentrated interval of the distance ratios of correct matching point pairs and the dispersed interval of the distance ratios of incorrect matching point pairs, the critical ratio that maximizes the distinction between correct and incorrect matches is selected as the judgment criterion. The distance metric algorithm is a method used to quantify the degree of difference between two feature vectors in a multidimensional space. Its significance lies in providing an objective similarity evaluation standard for feature matching to distinguish the performance of the same feature point in different environments and the essential differences between different feature points. The effect is to ensure that high-confidence matching pairs can be accurately screened and incorrect matches can be effectively eliminated, thereby improving the overall calibration accuracy.
[0092] Based on the spatial constraints of the candidate matching pair set and the feature points in the high-reliability feature point benchmark library, a joint correlation graph optimization problem is constructed, and a globally consistent matching pair set is obtained.
[0093] The specific process includes treating each matching pair in the candidate matching pair set as a graph node, defining the geometric consistency constraints between nodes as graph edge weights using the spatial positional relationships of feature points in the high-reliability feature point benchmark library, constructing a joint association graph structure that includes node matching confidence and edge geometric consistency constraints, searching for a subset of nodes in the joint association graph structure that maximizes the overall matching confidence and satisfies the geometric consistency constraints using a graph optimization algorithm, and determining the matching pairs corresponding to the searched node subsets as the globally consistent matching pair set.
[0094] It should be noted that graph optimization algorithms are mathematical solution methods based on graph theory principles that iteratively adjust node states to minimize the global error function. Their function is to comprehensively consider the matching confidence and geometric consistency constraints of each matching pair within the joint association graph structure, eliminating erroneous matches with spatial conflicts and correcting correct matches with minor deviations, outputting the optimal set of matching pairs that maintains global consistency in spatial geometric relationships. Geometric consistency constraints refer to the relative distance and angular relationship that matching point pairs should maintain in spatial location. This is obtained by projecting the known three-dimensional coordinates of pre-stored feature points in a high-reliability feature point benchmark library onto a two-dimensional image plane, and then calculating the theoretical Euclidean distance and orientation angle between any two points.
[0095] Geometric verification is performed on the set of globally consistent matching pairs, and interior points that meet the geometric conditions are selected as successfully matched feature point pairs.
[0096] The specific process includes: using the random sampling consensus algorithm to randomly select a small number of samples from the globally consistent matching pair set to estimate the transformation matrix; substituting the remaining matching pairs in the globally consistent matching pair set into the estimated transformation matrix to check the reprojection error; determining the matching pairs whose reprojection error is less than the geometric threshold as interior points that meet the geometric conditions; and determining all matching pairs determined as interior points as successfully matched feature point pairs.
[0097] It should be noted that the geometric threshold is preset based on the statistical distribution of camera imaging noise level and feature point localization accuracy. By analyzing the reprojection error histograms of a large number of correctly matched point pairs, the upper limit of the error that can cover more than 95% of the correctly matched points is selected as the geometric threshold. The random sample consensus algorithm is a method that estimates the mathematical model parameters by iteratively selecting the smallest sample set and counting the number of interior points that support the parameters, thereby robustly estimating the optimal model parameters in data containing a large number of outliers.
[0098] Figure 4The inlier rate as a function of rain, snow, and fog concentration is shown in the overall graph, illustrating the trend of inlier rate variation with rain, snow, and fog concentration under normal average conditions of illumination direction angle and color temperature. The blue line represents the present invention group, the orange line represents (without interactive graph), and the green line represents (without environmental robustness). The upper graph is the overall view, and the lower graph is a local magnification of the 0.60–1.00 range. The magnified window is marked with a red dashed box and a double-headed arrow, and the advantageous points in the high rain, snow, and fog range are marked with "maximum difference Δ", which intuitively demonstrates that the present invention has more stable geometric consistency under severe weather conditions.
[0099] Based on the two-dimensional coordinates and three-dimensional world coordinates of the image corresponding to the successfully matched feature point pairs, an optimization problem of weighted projection error is constructed, and the calibration parameters of the camera mount are obtained.
[0100] The specific process includes iteratively updating the perspective transformation matrix based on the two-dimensional coordinates and three-dimensional world coordinates of the image corresponding to the successfully matched feature point pairs until the stopping iteration condition is met, and using the latest perspective transformation matrix as the extrinsic parameter of the checkpoint camera, thereby establishing a mapping relationship from the license plate image coordinates to the three-dimensional geographic coordinates for license plate binding; wherein the stopping iteration condition is that the number of iterations reaches the maximum number of iterations, or the average projection error of all successfully matched feature point pairs is less than the preset average error value, or the rate of change of the average projection error obtained in two adjacent calculations is less than the preset rate of change.
[0101] In particular, during the update and iteration process of the perspective transformation matrix, if the projection error of a successfully matched feature point pair is greater than the preset maximum error value, then the average projection error is calculated after the successfully matched feature point pair is removed. If the current average projection error is less than the historical best result and greater than or equal to the preset average error value, then update the average projection error of all successfully matched feature point pairs to the current average projection error and perform weight updates. If the current average projection error is greater than or equal to the historical best result, then the weights are updated directly. The weight updates are as follows: Calculate the Gaussian weights of successfully matched feature point pairs whose projection errors are less than or equal to the first preset projection error value; calculate the Huber weights of successfully matched feature point pairs whose projection errors are greater than the first preset projection error value and less than the second preset projection error value; calculate the Tukey weights of successfully matched feature point pairs whose projection errors are greater than or equal to the second preset projection error value; perform weighted smoothing on the current weights of the successfully matched feature point pairs and the calculated weights; normalize the weighted smoothed weights of all successfully matched feature point pairs; and update the current weights of the successfully matched feature point pairs. The current weights of successfully matched feature point pairs are used to adjust the influence of successfully matched feature point pairs on the perspective transformation matrix update iteration process, so as to reduce the projection error calculated based on the perspective transformation matrix.
[0102] The formula for calculating Gaussian weights is: ; The formula for calculating Huber weights is:
[0103] ; The Tukey double-weighting formula is:
[0104] ; The formula for weighted smoothing is: ; in The calculated weights; The weights before the update; The weights are the weights after weighted smoothing; For error value, For standard deviation, The robustness threshold is typically chosen as 3. .
[0105] For example, the maximum number of iterations, the preset average error value, the preset rate of change, the preset maximum error value, the first preset projection error value, and the second preset projection error value can all be freely set according to actual needs. The preset rate of change can be selected as 1%, the preset maximum error value can be selected as 1000, the first preset projection error value can be selected as 50, and the second preset projection error value can be selected as 200.
[0106] It should be noted that the calibration parameters of a bayonet camera include internal and external parameters. The internal parameters can be provided by the bayonet camera manufacturer and do not need to be calibrated.
[0107] Assess the estimation uncertainty of calibration parameters and generate a calibration quality report.
[0108] The specific process includes using the variance of the calibration parameters as a measure of estimation uncertainty, classifying the calibration accuracy level based on the variance of the calibration parameters, the mean of the reprojection error, and the number of successfully matched feature points, and integrating the specific values of the calibration parameters, the corresponding measures of estimation uncertainty, and the calibration accuracy level into a structured document output as a calibration quality report.
[0109] Select calibration parameters that meet the preset quality requirements from the calibration quality report, and establish a mapping relationship from license plate image coordinates to three-dimensional geographic coordinates to bind the license plate.
[0110] The specific process includes reading the calibration parameters and corresponding calibration accuracy levels recorded in the calibration quality report, selecting calibration parameters whose calibration accuracy levels meet the preset quality requirements as valid calibration parameters, using the calibration parameters in the valid calibration parameters to construct camera projection inverse operation logic, converting the two-dimensional pixel coordinates of the license plate in the image into three-dimensional geographic coordinates in the real world through the camera projection inverse operation logic to form a mapping relationship from license plate image coordinates to three-dimensional geographic coordinates, and applying the mapping relationship to the license plate recognition results to realize the binding of the license plate with the specific geographic location.
[0111] It should be noted that the preset quality requirements are based on the specific requirements of the license plate binding task for geographic positioning accuracy. By analyzing the back projection error distribution of three-dimensional geographic coordinates under different calibration accuracy levels, the lowest calibration accuracy level and the upper limit of the variance of related parameters that can ensure that the license plate location positioning error is within the allowable range are selected as the quality requirements.
[0112] Figure 5 A heatmap of license plate binding success rate is presented, with the horizontal axis representing rain, snow, and fog concentration, and the vertical axis representing light intensity. Colors indicate the level of binding success rate. It can be seen that a high success rate is maintained even under extreme combinations such as "high rain, snow, and fog + low light," indicating that the conditional rendering training based on the implicit 3D model and multi-dimensional environmental parameter vectors, as well as the environment-invariant feature extractor, makes the calibration parameters more reliable and the 3D mapping more stable, thereby improving the license plate binding success rate and enhancing the generalization ability to unknown severe weather conditions.
[0113] In some embodiments, such as Figure 6 As shown, when selecting feature points: remove the areas outside the lanes in the image and the areas outside the lanes in the map, select the corresponding feature point pairs. In simple scenarios, fewer point pairs can be selected, while in complex scenarios, it is recommended to select multiple point pairs (such as more than 20 points) to calculate the perspective transformation matrix.
[0114] Based on the calculated perspective transformation matrix, the camera image is mapped to the map coordinate system, and the two images are superimposed as a verification image. For each pixel (x0, y0) of the output image, if the image is 1920*1080 in size, the x range is 0~1920, and the y range is 0~1080. The coordinates of the input image are calculated as follows:
[0115] ; Where M is the calculated perspective transformation matrix; Then perform bilinear interpolation: ; Among them, weight .
[0116] The results obtained are as follows Figure 7 As shown, the green layer is the result of mapping the image from the camera mount onto the map, which can be seen through... Figure 7 It is clear that the calibration error has been significantly reduced.
[0117] In summary, this invention achieves a leap from geometric detection to intelligent evaluation of semantics and stability by constructing a spatiotemporal feature interaction graph and performing graph convolution and attention interaction, thereby ensuring the quality and robustness of the calibration data from the source; and by utilizing the constructed implicit 3D model and the defined multidimensional environmental parameter vector, it achieves all-weather absolute robustness of feature extraction, enabling the calibration process to have the ability to generalize in the face of unknown severe weather.
[0118] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A method for calibrating images of a bayonet camera, characterized in that, include: Acquire a reference image of the checkpoint scene and extract multiple initial candidate feature points from the reference image; Based on multiple initial candidate feature points, the reliability score of each feature point is calculated, and high-reliability feature points are selected from the initial candidate feature points according to the reliability scores to form a high-reliability feature point benchmark library. An implicit 3D model is constructed based on the reference image, and the image patch of each high-reliability feature point in the high-reliability feature point benchmark library is rendered under multiple lighting and weather conditions to generate a pair of training datasets. The feature descriptor subnetwork is trained using paired training datasets to obtain an environment-invariant feature extractor; Acquire real-time scene images from the checkpoint camera and use an environment-invariant feature extractor to extract qualified feature descriptors from the image regions in the real-time scene images that correspond to the high-reliability feature point benchmark library; The qualified feature descriptors are matched with the feature descriptors pre-stored in the high-reliability feature point benchmark library to obtain successfully matched feature point pairs. The corresponding two-dimensional coordinates of the image and three-dimensional world coordinates are combined to obtain the calibration parameters of the checkpoint camera for license plate binding.
2. The image calibration method for a bayonet camera as described in claim 1, characterized in that, The process involves acquiring a reference image of the checkpoint scene and extracting multiple initial candidate feature points from the reference image. The specific steps are as follows: Collect multiple images of the same scene at different exposure times, and combine the images at different exposure times into a high dynamic range image as a reference image; Semantic segmentation is performed on the reference image to identify and determine high-value semantic regions belonging to permanent fixed structures in the reference image; Feature point detection is performed within high-value semantic regions, and multiple initial candidate feature points are extracted.
3. The image calibration method for a bayonet camera as described in claim 1, characterized in that, The specific steps for calculating the reliability score of each feature point are as follows: Based on the image patch, coordinate and scale information corresponding to multiple initial candidate feature points, a spatiotemporal feature interaction graph is constructed. Multi-round graph convolution and attention interaction are performed on the spatiotemporal feature interaction graph to obtain a deep feature representation of each feature point; Based on deep feature representation, the reliability score of each feature point is calculated.
4. The image calibration method for a bayonet camera as described in claim 1, characterized in that, The specific steps for forming a high-reliability feature point benchmark library are as follows: A multi-objective fitness function is constructed based on the reliability score, deep feature representation, and image coordinates of each feature point; Using a set of multiple initial candidate feature points as the search space, a multi-objective fitness function is used to perform multi-objective collaborative optimization, selecting the feature point subset that is optimal in terms of individual reliability, spatial distribution uniformity, and feature diversity. The image blocks, coordinates, deep feature representations, and reliability scores in the feature point subset are structured and stored to form a high-reliability feature point benchmark library.
5. The image calibration method for a bayonet camera as described in claim 1, characterized in that, The specific steps for constructing the implicit 3D model based on the reference image are as follows: An image feature coding layer is built based on a reference image, a visual feature pyramid layer is built using a dense feature extractor, a spatial geometric coding layer is built using a multi-resolution hash encoder, and a radiation property prediction layer is built using a multilayer perceptron. By cascading and linking the image feature coding layer, the multi-scale visual feature pyramid layer, the spatial geometric coding layer, and the radiation attribute prediction layer through feature fusion, an implicit 3D model is constructed.
6. The image calibration method for a bayonet camera as described in claim 1, characterized in that, The specific steps for generating the pairwise training dataset are as follows: Define a multidimensional environmental parameter vector that encompasses the physical properties of lighting and weather, and combine it with an implicit 3D model to generate rendered image patches of each feature point under corresponding environmental conditions through a conditional rendering pipeline. The quality of rendered image patches is evaluated and filtered using a quality threshold, retaining high-quality rendered image patches; High-quality rendered image patches are paired with image patches containing corresponding feature points under standard clear conditions to generate paired training datasets.
7. The image calibration method for a bayonet camera as described in claim 1, characterized in that, The specific steps for obtaining the environment-invariant feature extractor are as follows: Construct a dynamic memory library associated with high-reliability feature points and initialize the feature descriptor subnetwork; Based on a pairwise training dataset and a dynamic memory bank, a feature descriptor subnetwork is trained using a course-contrastive learning method. The trained feature descriptor network is used as an environment-invariant feature extractor.
8. The image calibration method for a bayonet camera as described in claim 7, characterized in that, The specific steps for extracting qualified feature descriptors from the real-time scene image that correspond to the high-reliability feature point benchmark library are as follows: Acquire real-time scene images from the checkpoint camera, and locate the corresponding image region in the real-time scene image based on the coordinates and scale information of each feature point in the high-reliability feature point benchmark library. Using an environment-invariant feature extractor, feature descriptors for the corresponding image regions are extracted, and the matching score between the feature descriptors and the benchmark feature descriptors stored in the high-reliability feature point benchmark library is calculated. Based on the matching score, qualified feature descriptors that meet the matching confidence threshold are selected from the extracted feature descriptors.
9. The image calibration method for a bayonet camera as described in claim 1, characterized in that, The obtained successfully matched feature point pairs, combined with their corresponding two-dimensional image coordinates and three-dimensional world coordinates, are used to obtain the calibration parameters of the checkpoint camera for license plate binding. The specific steps are as follows: The qualified feature descriptors are matched with the feature descriptors pre-stored in the high-reliability feature point benchmark library, and a set of candidate matching pairs is generated based on the nearest neighbor distance ratio test. Based on the spatial constraints of the candidate matching pair set and the feature points in the high-reliability feature point benchmark library, a joint correlation graph optimization problem is constructed, and a globally consistent matching pair set is obtained. Perform geometric verification on the set of globally consistent matching pairs, and select the interior points that meet the geometric conditions as successfully matched feature point pairs; Based on the two-dimensional coordinates and three-dimensional world coordinates of the image corresponding to the successfully matched feature point pairs, the perspective transformation matrix is iteratively updated until the stopping iteration condition is met, and the latest perspective transformation matrix is used as the extrinsic parameter of the checkpoint camera, thereby establishing a mapping relationship from license plate image coordinates to three-dimensional geographic coordinates for license plate binding. The stopping iteration conditions are: the number of iterations reaches the maximum number of iterations, or the average projection error of all successfully matched feature point pairs is less than the preset average error value, or the rate of change of the average projection error obtained from two adjacent calculations is less than the preset rate of change.
10. The image calibration method for a bayonet camera as described in claim 9, characterized in that, During the update and iteration process of the perspective transformation matrix, if the projection error of a successfully matched feature point pair is greater than the preset maximum error value, the average projection error is calculated after the successfully matched feature point pair is removed. If the current average projection error is less than the historical best result and greater than or equal to the preset average error value, then update the average projection error of all successfully matched feature point pairs to the current average projection error and perform weight updates. If the current average projection error is greater than or equal to the historical best result, then the weights are updated directly. The weight updates are as follows: Calculate the Gaussian weights of successfully matched feature point pairs whose projection errors are less than or equal to the first preset projection error value; calculate the Huber weights of successfully matched feature point pairs whose projection errors are greater than the first preset projection error value and less than the second preset projection error value; calculate the Tukey weights of successfully matched feature point pairs whose projection errors are greater than or equal to the second preset projection error value; perform weighted smoothing on the current weights of the successfully matched feature point pairs and the calculated weights; normalize the weighted smoothed weights of all successfully matched feature point pairs; and update the current weights of the successfully matched feature point pairs. The current weights of successfully matched feature point pairs are used to adjust the influence of successfully matched feature point pairs on the perspective transformation matrix update iteration process, so as to reduce the projection error calculated based on the perspective transformation matrix.
