A visual recognition system and method for a dial gauge in a polar outdoor environment

By constructing four parallel sub-networks for adaptive interference processing, and combining multi-scale feature extraction and robust correction algorithms, the problem of low accuracy in instrument detection under polar outdoor environments was solved, achieving high-precision and high-robust automatic identification.

CN123161218APending Publication Date: 2026-11-24DALIAN UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611665138.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-27
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing pointer-type instrument automatic recognition technology fails to detect in polar outdoor environments due to multiple interferences such as strong light reflection, ice and snow obstruction, lens frost, and low temperature image noise. It has low accuracy and lacks adaptive preprocessing mechanisms and dedicated data support.

Method used

Four parallel sub-networks are used to process polar-specific interference. Adaptive fusion is achieved by dynamically allocating weights through a lightweight parameter prediction head and Softmax normalization. Combined with multi-scale feature extraction and attention gating mechanism, a robust correction algorithm with confidence weighting and occlusion quality perception is introduced to perform temperature compensation correction and achieve high-precision recognition.

Benefits of technology

In the complex polar environment, the instrument detection recall rate is improved by about 30%, and the absolute error of the reading is reduced to within 1.5%. It adapts to the variable polar conditions and ensures high robustness and high accuracy of automatic identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123161218A_ABST
    Figure CN123161218A_ABST
Patent Text Reader

Abstract

A visual recognition system and method for pointer-type instruments in polar outdoor environments is disclosed, belonging to the interdisciplinary field of computer vision and polar environment monitoring technology. It is implemented based on a pointer-type instrument visual recognition system. Step 1: Acquire the original image of the polar outdoor instrument; Step 2: Based on the original image, adaptive processing is performed using four sub-networks to address four types of environmental interference, resulting in an enhanced image; Step 3: Extract discriminative multi-scale features from the enhanced image and locate the instrument dial area, outputting the dial bounding box; Step 4: Based on the dial bounding box, crop the dial area image from the enhanced image, perform pointer key point detection and joint attitude correction, and output the corrected pointer angle; Step 5: Output the instrument reading according to the pre-set instrument range and scale distribution. This invention does not rely on any hardware modifications and can achieve high-precision, high-robust automatic recognition in polar environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the interdisciplinary field of computer vision and polar environment monitoring technology, and relates to a pointer-type instrument visual recognition system and method for polar outdoor environments, which is applicable to scenarios such as outdoor instrument monitoring at polar research stations and reading of industrial instruments in low-temperature environments. Background Technology

[0002] Currently, computer vision-based automatic recognition technology for pointer-type instruments has been extensively studied. However, most existing solutions are designed for normal temperature, normal lighting, indoor or urban outdoor environments. When applied to polar outdoor scenarios, they face the following prominent problems: Chinese invention patent CN112560839A proposes an automatic identification method and system for pointer-type instrument readings. It uses template matching to extract the instrument area from a panoramic image and corrects the tilted dial to a circle through ellipse fitting and projection transformation, which can improve the accuracy of instrument identification under different shooting angles. However, the correction process of this method depends on the complete visibility of the dial edge, and template matching requires a high structural similarity between the instrument image and the template. In polar scenes, ice and snow cover causes the dial edge to be incomplete, and a large number of dial feature points are lost in template matching. Therefore, in the polar environment, the incomplete dial edge causes both ellipse fitting and template matching to fail simultaneously, and the recognition accuracy cannot be guaranteed.

[0003] Chinese invention patent CN113343969A proposes an intelligent digital display method for pointer-type instruments based on GBS-YOLOv5s. It detects the pointer instrument area through an improved target detection network and uses ellipse fitting and perspective transformation for tilt correction. This method can only improve the accuracy of instrument detection in complex industrial environments. However, since its correction method also relies on the integrity and visibility of key points and does not have a preprocessing mechanism for interference such as ice and snow or frost, the correction fails when key points are missing due to ice and snow in polar regions. Therefore, it is also not suitable for polar environments.

[0004] In summary, existing methods lack adaptive preprocessing mechanisms for scenarios with multiple interferences, such as strong polar light reflections (including backlighting), ice and snow obstruction, lens frost, and low-temperature image noise. They also fail to consider the impact of extremely low temperatures on the imaging system and lack dedicated polar scene data support. Therefore, there is an urgent need for an instrument vision recognition method specifically designed for extreme polar outdoor environments, integrating dedicated datasets and adaptive processing of multiple interferences. Summary of the Invention

[0005] To address the problems of existing technologies, this invention provides a visual recognition system and method for pointer-type instruments in polar outdoor environments. Specifically, it is a system and method capable of achieving high-precision and robust automatic recognition of pointer-type instruments in extreme and harsh outdoor environments such as the Antarctic and Arctic. This invention solves the problems of detection failure and low reading accuracy caused by multiple interferences in polar outdoor environments, such as strong light reflection, ice and snow obstruction, lens frost, low temperature image noise, and tilted instrument installation. This invention does not rely on any hardware modification; it achieves high-precision and robust automatic recognition in polar environments solely through model algorithm optimization and the construction of a dedicated dataset. It should be noted that the solution of this invention can be deployed on embedded or edge computing devices in polar fields. Such devices include at least one image acquisition interface and a processor, utilizing existing security cameras or inspection robot cameras to acquire instrument images.

[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows: A visual recognition method for pointer-type instruments designed for polar outdoor environments includes the following steps: Step 1: Acquire raw images from polar outdoor instruments .

[0007] By utilizing the image acquisition interface of embedded or edge computing devices deployed in the polar field, and calling the API of existing security cameras or cameras built into inspection robots at the research station, raw instrument images captured by polar outdoor cameras can be obtained. Original image After being collected, the data is temporarily stored in memory as input for subsequent modules. Specifically: Step 1.1, determine the image acquisition source. Based on the on-site deployment, select existing security cameras at the research station or cameras built into the inspection robot as the acquisition equipment; prioritize fixed security cameras, and if the instruments are not within their field of view, use the mobile acquisition by the inspection robot instead.

[0008] Step 1.2: Call the camera driver API. Based on the camera model, call the corresponding software development kit (SDK) or standard video capture interface to establish a data connection channel.

[0009] Step 1.3: Acquire and temporarily store the original image. At set intervals or as needed, read one frame of the image, adjust the required resolution, standardize the format, and temporarily store it in memory to obtain the original image. .

[0010] Step 2: Based on the original image obtained in Step 1, four sub-networks are used for adaptive processing to address four types of environmental interference unique to the polar regions. These four environmental interferences include strong light reflection, ice and snow occlusion, lens frost, and low-temperature noise. The four sub-networks include a de-reflection sub-network, a de-snow / de-occlusion sub-network, a de-frost sub-network, and a low-temperature noise reduction sub-network. First, the four sub-networks run in parallel, each processing one type of interference. Second, a lightweight parameter prediction head is used to automatically analyze the original image and assign weights to the outputs of the four sub-networks. Finally, the enhanced image is obtained through weighted summation. This achieves joint adaptive enhancement when multiple disturbances coexist. This step draws upon the general technical concepts of "multi-branch parallel processing" and "adaptive weighted fusion," making specific improvements and innovative combinations for the polar environment. Details are as follows: Step 2.1: In parallel, four sub-networks are invoked to process interference and generate four feature maps.

[0011] Original image The input image is simultaneously fed into four parallel sub-networks. Each sub-network processes a specific polar-specific environmental disturbance and generates four feature maps, including feature maps. Figure 1 ,feature Figure 2 ,feature Figure 3 ,feature Figure 4 The details are as follows: A de-reflection network is used to handle strong light reflections: based on Retinex theory, the input image is decomposed into illumination and reflection components. By suppressing the illumination component in high-brightness areas while preserving the reflection component, the occlusion of the dial area by strong light reflections is reduced. The processing method involves nonlinearly compressing the illumination component L and then recombining it with the reflection component R to obtain the de-reflected features. Figure 1 .

[0012] A snow removal / occlusion removal sub-network is used to handle snow and ice occlusion: a lightweight deep convolutional inpainting network is employed. During the training phase, it learns the mapping relationship from "snowy / occluded" images to "snow-free / occluded" images; during the inference phase, the input image is directly forward-propagated to perform content inpainting on the snow and ice occluded regions, and the inpainted features are output. Figure 2 The desnowing / de-occlusion subnetwork only uses forward propagation during the inference phase and does not involve backpropagation, so the computational cost is manageable.

[0013] The defrost subnetwork is used to handle lens frost: it estimates the concentration distribution of frost fog in the input image using dark channel priors, combines high-frequency information enhancement, sharpens edges and restores contrast in blurred areas, eliminates the blurring effect caused by lens frost, and outputs features. Figure 3 .

[0014] A low-temperature noise reduction subnetwork is used to handle low-temperature noise: it embeds a learnable bilateral filtering module, which adaptively adjusts the filtering coefficients based on gradient information of local image regions. A stronger filter is applied to smooth regions to suppress thermal noise, while a weaker filter is maintained in edge regions to preserve details, outputting features. Figure 4 .

[0015] Step 2.2 (Run simultaneously with Step 2.1): Original image As input images, they are simultaneously fed into the "lightweight parameter prediction head" to calculate the adaptive fusion weights corresponding to the four types of environmental disturbances.

[0016] First, the input image is fed into a lightweight parameter prediction head. The prediction head performs convolutional and fully connected layer calculations. The input image passes through convolutional and fully connected layers, and outputs four raw scores corresponding to the four types of environmental interference: the score corresponding to the de-photon network. The score corresponding to the desnow / de-occlusion subnetwork The score corresponding to the defrost subnetwork. The score corresponding to the low-temperature noise reduction subnetwork Then, using the Softmax formula to... Convert to first weight (Weights corresponding to the de-reflection network). Convert to second weight (Weights corresponding to the desnowing / demasking subnetwork) Convert to third weight (The weights corresponding to the defrost subnetwork). Convert to fourth weight (Weights corresponding to the low-temperature noise reduction sub-network), and + + + =1. The formula for calculating Softmax normalization is: Where j is an integer ranging from 1 to 4, representing the index number of the j-th sub-network; This represents the k-th original score. =1, 2, 3, 4; molecule : indicates that the j-th original fraction is... It becomes a positive number (exponential function). It has a property: The larger, It increases dramatically; the denominator This means adding the four index values ​​together as a total baseline. Dividing each index value by the sum will always result in a value between 0 and 1, and the sum of the four values ​​will strictly equal 1.

[0017] First weight Second weight Third weight Fourth weight This reflects the severity of each of the four types of interference in the current input image; for example, when the image has severe frosting, Automatically enlarges; when the image is severely reflective, Automatically increases in size.

[0018] Step 2.3, based on the first weight obtained in step 2.2 Second weight Third weight Fourth weight and the features of step 2.1 Figure 1 ,feature Figure 2 ,feature Figure 3 ,feature Figure 4 The enhanced image is obtained by weighted fusion. The features output by the four sub-networks are then combined. Figure 1 ~Features Figure 4 Multiply by the corresponding weights, and then add them element by element to obtain the final enhanced image. : in, , , , These represent the features of the de-reflection sub-network, the de-snow / de-occlusion sub-network, the de-frost sub-network, and the low-temperature noise reduction sub-network, respectively. Figure 1 ,feature Figure 2 ,feature Figure 3 ,feature Figure 4 .

[0019] Through adaptive weighted fusion, the system can automatically adjust the processing strategy for different weather conditions and interference combinations: the weight of the anti-reflection sub-network is increased when the sun is shining brightly, the weight of the desnow / de-occlusion sub-network is increased when there is a blizzard, the weight of the de-frost sub-network is increased when the lens is frosted, and the weight of the low temperature noise reduction sub-network is increased when the lens is extremely cold. It can adapt to the complex and ever-changing outdoor environment of the polar regions without manual parameter adjustment, and finally obtain an enhanced image with good detail preservation and effective suppression of interference.

[0020] Step 3, the enhanced image obtained in Step 2 Perform multi-scale feature extraction based on classic detection networks (such as YOLO), extract discriminative multi-scale features from the enhanced image, locate the instrument panel region, and output the instrument panel bounding box B.

[0021] This step addresses two unique challenges specific to polar scenes: firstly, the instrument may occupy a small portion of the image; secondly, the background contains significant interference from ice and snow textures. Unlike conventional detection methods that directly employ fixed-scale features, this step constructs a feature pyramid to obtain multi-scale feature maps at three different scales. A special small-target perception feature layer is added to enhance the response to small-sized dials, and an attention gating mechanism is introduced to suppress the response to ice and snow backgrounds, thereby accurately detecting the dial's position even against complex backgrounds. Specifically: Step 3.1, Enhanced image based on step 2 Extract multi-scale feature maps. After scaling to a uniform size, multi-scale feature extraction based on classic detection networks (such as YOLO) is performed. Three-scale feature maps are extracted through convolution and pooling operations: shallow feature map F1, mid-level feature map F2, and deep feature map F3. From F1 to F3, the feature map resolution decreases layer by layer while the semantic level increases layer by layer. Together, these three maps constitute a multi-scale feature representation from details to high-level semantics. The shallow feature map F1 retains the richest spatial detail information and is used for high-resolution refinement of the dial bounding box in step 3.5; the mid-level feature map F2 and the deep feature map F3 are used to construct the small target perception feature layer.

[0022] Step 3.2: Based on the multi-scale feature map from Step 3.1, construct a small target perception feature layer; To enhance the detection capability for small-sized watch faces, the deep feature map F3 is upsampled using bilinear interpolation to align its spatial dimensions with those of the mid-layer feature map F2. Then, the upsampled F3 and F2 are concatenated along the channel dimension, and a 1×1 convolutional layer is used to reduce the number of channels to the same level as F2, resulting in a fused feature map. The calculation process is expressed as follows: in, Indicates channel splicing. Indicates bilinear upsampling. This represents a 1×1 convolution. Through step 3.2, the fused features retain the spatial details of the mid-level features while injecting strong semantic information from the deep features, thus enhancing the detection capability of small-sized watch faces.

[0023] Step 3.3, based on the fused feature map from Step 3.2 An attention gating mechanism is introduced to calculate the spatial attention weight map.

[0024] To suppress interference from irrelevant backgrounds such as snow and ice, an attention gating mechanism is introduced. Apply a 1×1 convolutional layer to reduce the number of channels to 1, and then... The activation function compresses the value at each spatial location to 0,1 The interval is used to obtain the spatial attention weight map. : Each element represents the importance of the corresponding spatial location. The larger the value, the higher the probability that the location belongs to the dial area, and the smaller the value, the higher the probability that the location belongs to the background (such as snow or ice).

[0025] Step 3.4, based on the spatial attention weight map from Step 3.3 Output a weighted multi-scale feature map. Then, use the spatial attention weight map... With fusion feature map Element-wise multiplication yields the final weighted multi-scale feature map. : Here, ⊙ represents element-wise multiplication. Through this attention-weighted approach, the model automatically enhances the feature responses of the dial area and suppresses the responses to the snow and ice background, thereby improving detection accuracy.

[0026] Step 3.5, based on the weighted multi-scale feature map from Step 3.4 Combined with the shallow feature map F1, the dial bounding box B is output; Will Together with the shallow feature map F1, the data is fed into the detection head, and the detection head... At each spatial location, the presence of a dial and the coordinate offset of its bounding box are predicted. Simultaneously, the shallow feature map F1 provides high-resolution spatial detail information to refine the localization accuracy of the dial bounding box. After non-maximum suppression (NMS) to remove duplicate detections, the dial bounding box with the highest confidence is output as B=(x,y,w,h), where... x, y) represent the coordinates of the top-left corner of the bounding box, and w and h represent the width and height of the dial bounding box. This step only outputs the position of the dial in the image, not the cropped image. Step 4 will output the image based on the dial bounding box B. The image of the dial area is cropped out from the middle.

[0027] Step 4: Based on the dial bounding box B=(x,y,w,h) output in Step 3, the enhanced image obtained in Step 2... The dial area image is cropped out, and pointer key point detection and pose joint correction are performed on the dial area image to output the corrected pointer angle θ.

[0028] The core objective of this step is to correct the elliptical dial in the image, which may appear elliptical due to instrument tilt or shooting angle deviation, into a perfectly circular dial as seen from a frontal view, and to calculate the true pointer angle unaffected by tilt. The coordinate system of the corrected dial is called the frontal view coordinate system—in this coordinate system, the dial plane is parallel to the imaging plane, the dial is perfectly circular, and the pointer rotation angle can be directly used for reading calculation.

[0029] Unlike existing methods that treat all dial feature points equally, this step addresses the unique challenge of polar ice and snow cover by designing a joint correction algorithm that integrates confidence weighting, occlusion quality perception, and temperature compensation. This enables the system to accurately estimate the transformation matrix even under extreme conditions where parts of the dial are covered by ice and snow. Details are as follows: Step 4.1, based on the dial bounding box B from step 3, from the enhanced image Cropping out the dial area image Specifically, from In the middle, B=(x,y,w,h) The determined rectangular area is cropped to obtain the dial area image. This serves as the input for subsequent keypoint detection.

[0030] Step 4.2, crop the dial area image from step 4.1. Keypoint detection is performed using a lightweight keypoint regression network. This network has a multi-task output structure with two branches: a dial keypoint branch, which directly regresses the coordinates of three keypoints; and a dial feature point branch, which regresses the coordinates of dial feature points distributed on the dial circumference, as detailed below: The key point branch of the dial: The positions of three key points were detected: the center O of the dial. Pointer tip P Pointer tail Q The number of pointer angles used in step 4.6 after correction is fixed at 3, and no confidence level screening is performed. The dial feature point branch detects the coordinates of N dial feature points distributed on the dial circumference, and then calculates the confidence score of each dial feature point for use in steps 4.3 and 4.4 for occlusion quality perception and weighted homography matrix estimation.

[0031] Furthermore, the confidence score of the dial feature points is defined as follows: The parameters are defined and have physical meanings as follows: ∈[0,1] represents the texture sharpness of the neighborhood of the dial feature point, taken from the normalized local variance value of the feature response output by the desnowing / de-occlusion sub-network in step 2. When the dial feature point is located on a sharp scale line or the edge of the pointer, the local variance is relatively large. The local variance is close to 1; when the dial feature points are obscured by ice and snow or located in a blurred area, the local variance is small. Approaching 0. This item follows The confidence level increases monotonically, and the clearer the texture, the higher the confidence level.

[0032] ∈[0,1] represents the edge intensity of the dial feature point, normalized using the Canny operator response. The greater the edge intensity, the more clearly the point lies on the image boundary, and the higher the probability that it belongs to a valid dial feature point.

[0033] σ t =0.15 is the texture sensitivity adjustment parameter, which controls the degree of influence of the texture sharpness item on the confidence level; =15 is the slope parameter of the edge strength Sigmoid curve, which controls the steepness of the transition from low to high edge strength; τ=0.3 is the edge strength threshold.

[0034] For temperature-related noise model, The ambient temperature is (°C). The calibration temperature is the room temperature (e.g., 20°C). This is the lower limit of the sensor's nominal operating temperature (e.g., -20°C). Current ambient temperature. ≥ hour, =0, confidence level is not affected by temperature; current ambient temperature. hour, =1, confidence level reaches maximum penalty due to low-temperature noise; current ambient temperature is between and In between, It increases linearly from 0 to 1 as the temperature decreases. =0.1 is the temperature influence coefficient, which controls the penalty intensity of temperature on the confidence level.

[0035] First item For texture sharpness index, when When =1, it reaches its maximum value of 1. When =0, it decays to near 0; the second term For the edge strength Sigmoid term, when When τ approaches 1, <<τ approaches 0; the third term This is a temperature penalty term, with a value of 1 when the temperature is normal and less than 1 when the temperature is too low. The three factors are multiplied together; poor performance in any one dimension will significantly reduce the confidence level.

[0036] Step 4.3: Based on the confidence scores of the dial feature points obtained in Step 4.2, calculate the occlusion quality perception factor. Assess the severity of the current dial being obscured by ice and snow.

[0037] in, The convex hull area formed by all valid dial feature points with confidence scores higher than the threshold (typically 0.5); The reference convex hull area is the area of ​​the complete instrument panel, where the reference convex hull area is pre-calibrated; ) represents the variance of the confidence scores of the dial feature points, reflecting the degree of unevenness in the distribution of confidence scores of the dial feature points; =0.7 is the occlusion ratio influence coefficient; γ=0.3 is the confidence level non-uniformity penalty coefficient. The physical meaning is: when the area of ​​the convex hull of the effective dial feature points is close to the area of ​​the complete dial and the confidence level of each point is uniformly distributed, A value close to 1 indicates slight occlusion; when the effective dial feature point area shrinks or the confidence level distribution is uneven, ... A decrease indicates severe occlusion.

[0038] Step 4.4: Based on the valid dial feature points (confidence scores higher than the threshold of 0.5) and their confidence scores selected in Step 4.3, and combined with the occlusion quality perception factor from Step 4.3, establish the objective function for weighted homography matrix estimation. The number of valid dial feature points after selection is denoted as M, where M ≤ N.

[0039] Traditional homography matrix estimation uses the equal-weighted least squares formula, and its optimal solution is: in, =(x i ,y i ,1) T Here are the homogeneous coordinates of the effective dial feature points in the image of the dial area to be corrected. =(x i ,y i ,1) T To correspond to the homogeneous coordinates of the target point in the front view coordinate system, Let be the 3×3 homography matrix to be solved. Indicates in Among all possible values, find the solution that minimizes the objective function.

[0040] This invention introduces confidence-weighted calculation and occlusion quality compensation, and proposes an improved objective function (original formula): in: For comprehensive weighting, the confidence level of effective dial feature points and the global occlusion degree are combined, where The confidence scores for the dial feature points defined in step 4.2; Let H be the current projection residual of the i-th valid dial feature point, that is, the position of this point after mapping from the image of the dial area to be corrected to the front view coordinate system under the current estimated H. Compared with standard position The Euclidean distance between them; Here, μ is the residual penalty function, and μ = 2.0 is the residual sensitivity coefficient. =0.5 is the robust adjustment coefficient.

[0041] When the residual When approaching 0, ≈0, the penalty term has no additional effect; when the residual is large, When the value is close to 1, the error at that point is amplified. 1+λ The coefficient is λ=0.5, which is the robust adjustment coefficient. This function applies an extra penalty to outliers with large residuals, which is equivalent to the influence function in robust regression, effectively suppressing the interference of erroneous dial feature points caused by ice and snow occlusion on the H estimate.

[0042] Step 4.5: Solve for the weighted homography matrix based on the objective function in Step 4.4, and perform temperature compensation correction. Solving the optimization problem yields the weighted estimated homography matrix. Then, a temperature compensation correction term is introduced: in, The camera intrinsic parameter matrix calibrated at room temperature: in, This represents the focal length (in pixels) in the horizontal direction at room temperature. This represents the focal length (in pixels) in the vertical direction at room temperature. and These represent the principal point coordinates, which are fixed hardware parameters of the lens. Once manufactured, they do not change with environmental factors such as temperature and humidity.

[0043] K t Here is the camera intrinsic parameter matrix at the current temperature: Actual focal length at current temperature: .

[0044] η=5×10 -5 Here, is the temperature-focal length expansion coefficient (dimension 1 / ℃), t is the current ambient temperature (℃), and t0 is the temperature at room temperature during calibration. The homography matrix is ​​corrected to compensate for the image scaling effect caused by temperature changes, ensuring system stability under high-precision reading requirements (error <1.5%).

[0045] Step 4.6, based on the weighted homography matrix corrected by temperature compensation in Step 4.5 In step 4.2 (a), the three key points detected by the dial key point branch are mapped to the front view coordinate system, and the corrected pointer angle is calculated. The three key points include the center O, the pointer tip P, and the pointer tail Q. The center O, pointer tip P, and pointer tail Q are then mapped to the front view coordinate system. Mapping to the front view coordinate system: Obtain the center of the circle in the coordinate system of the front view. pointer tip pointer tail Then calculate the pointer direction vector. The corrected pointer angle is obtained as follows: Among them, (y,x) This is a two-parameter arctangent function that returns the distance from the point on the positive x-axis to the point. x,y The included angle ranges from (-π, π). To ensure the angle changes monotonically (0°~360°), quadrant correction is performed based on the position of the pointer tail Q': if θ < 0, then θ θ+2π, and determine the pointer direction based on the position of Q' relative to O'. Finally, output the corrected pointer angle θ (unit: degrees).

[0046] Step 5: Based on the corrected pointer angle θ output in Step 4, perform reading mapping according to the preset instrument range and scale distribution, convert the corrected pointer angle into a specific reading, and output the instrument reading; Step 5.1, determine the instrument's measuring range and angular range: pre-calibrate the instrument's physical measuring range. , ] and its corresponding pointer angle range[ , For linear scale instruments, a linear mapping relationship is used; for non-linear scale instruments, a lookup table for angles to readings is pre-established.

[0047] Step 5.2, based on the pointer angle in step 4 Based on the range and angle range specified in step 5.1, perform an angle-to-reading mapping conversion. For linear scale instruments, the linear mapping formula is used: Where V represents the output reading. For non-linear scale instruments, the nearest neighbor scale value corresponding to θ is found in the lookup table, and the accurate reading is calculated through linear interpolation.

[0048] Step 5.3: Based on the mapping results of Step 5.2, output structured instrument readings: format the reading V as numerical data, attach the instrument type identifier and timestamp, output in a structured format, or upload it to the research station's data center via a communication protocol for subsequent recording, analysis and early warning.

[0049] This invention also provides a visual recognition system for pointer-type instruments designed for polar outdoor environments, comprising an image acquisition module, a combined interference adaptive preprocessing module, a multi-scale feature extraction module, a pointer key point detection and attitude joint correction module, and a reading mapping module. Specifically: Image Acquisition Module: This image acquisition module is mainly used to acquire raw image data of the pointer instrument to be identified from the polar outdoor environment. It covers three functional units: source determination, camera driver invocation, and raw image acquisition and temporary storage. It performs unified format conversion and memory storage of image data to ensure the integrity and accuracy of the raw image and provides high-quality input data for subsequent modules.

[0050] The combined interference adaptive preprocessing module is connected to the image acquisition module. Taking the original image as input, it adaptively processes four types of environmental interference unique to the polar regions (strong light reflection, snow and ice occlusion, lens frost, and low-temperature noise). It encompasses four parallel sub-network processing units, adaptive weight prediction, and weighted fusion, supporting joint adaptive enhancement when multiple interferences coexist. The four parallel sub-network processing units include a de-reflection sub-network (suppressing strong light reflection based on Retinex theory), a de-snow / de-occlusion sub-network (using a lightweight deep convolutional inpainting network to repair snow and ice occlusion), a de-frost sub-network (using dark channel priors and high-frequency information enhancement to eliminate frost blur), and a low-temperature noise reduction sub-network (embedding a learnable bilateral filter module to suppress thermal noise). Each sub-network performs specific processing for one type of interference, generating four feature maps simultaneously. The adaptive weight prediction unit consists of a lightweight parameter prediction head that automatically analyzes the original image and outputs four raw scores. These scores are then normalized using Softmax to obtain four adaptive fusion weights, which dynamically change according to the severity of interference in the input image. The weighted fusion unit multiplies the feature maps output by the four sub-networks with their corresponding weights and then adds them element by element, outputting an enhanced image with good detail preservation and effective suppression of interference, which is then fed back to the multi-scale feature extraction module.

[0051] Multi-scale feature extraction module: This module integrates with a combined interference adaptive preprocessing module. Taking the enhanced image as input, it addresses two major challenges in polar scenarios: the small size of the instrument panel and interference from background ice and snow textures. It encompasses four functional units: feature pyramid construction, small target perception feature layer construction, attention-gated weighting, and dial bounding box output. This supports accurate dial position detection against complex ice and snow backgrounds. A feature pyramid is constructed to obtain three feature maps at different scales (shallow feature map F1, mid-level feature map F2, and deep feature map F3), extracting multi-scale feature representations from details to high-level semantics. The shallow feature map F1 retains the richest spatial detail information for subsequent high-resolution refinement and localization of the dial bounding box. Based on this, the deep feature map F3 is upsampled and concatenated with the mid-level feature map F2 along the channel, then dimensionality-reduced using a 1×1 convolution to construct a small target perception feature layer, enhancing the response capability for small-sized dials. Simultaneously, an attention gating mechanism is introduced to suppress interference from irrelevant backgrounds such as snow and ice by calculating spatial attention weight maps, enhancing the feature response of the dial area. Finally, the weighted multi-scale feature map and the shallow feature map F1 are fed into the detection head, and the dial bounding box B=(x,y,w,h) with the highest confidence is output and fed back to the pointer key point detection and pose joint correction module.

[0052] The pointer keypoint detection and pose joint correction module integrates a combined interference adaptive preprocessing module and a multi-scale feature extraction module. It takes an enhanced image and a dial bounding box B as input and encompasses six functional units: dial region cropping, keypoint detection and feature point confidence calculation, occlusion quality perception, weighted homography matrix estimation, temperature compensation correction, and pointer angle calculation. It supports accurate estimation of the transformation matrix even under extreme conditions where parts of the dial are covered by ice and snow. The dial region cropping unit crops the dial region image from the enhanced image based on B, which serves as input for subsequent keypoint detection. The keypoint detection and feature point confidence calculation unit employs a lightweight keypoint regression network with a multi-task output structure. The dial keypoint branch directly regresses the coordinates (in pixels) of three keypoints (dial center, pointer tip, and pointer tail) without confidence filtering, used for pointer angle calculation. The dial feature point branch detects the coordinates of dial feature points distributed on the dial circumference and calculates confidence scores, used for occlusion quality perception and weighted homography matrix estimation. The occlusion quality perception unit assesses the severity of ice and snow occlusion on the dial based on the confidence scores of the dial feature point branches, providing global occlusion information for subsequent weighted homography matrix estimation. The weighted homography matrix estimation unit replaces traditional equal weights with comprehensive weights and combines a residual penalty function to suppress outlier interference, estimating the homography matrix required for dial tilt correction. The temperature compensation correction unit corrects the camera intrinsic parameter matrix and homography matrix in real time based on the current ambient temperature, compensating for imaging drift at extremely low temperatures. The pointer angle calculation unit maps the three key points detected by the dial key point branches to the front view coordinate system, calculates and outputs the corrected pointer angle θ. The output results are fed back to the reading mapping module.

[0053] Reading Mapping Module: This module connects to the pointer key point detection and attitude joint correction module. It takes the corrected pointer angle θ as input and includes three functional units: range and angle range calibration, angle-to-reading mapping conversion, and structured reading output. It supports converting pointer angles into specific instrument readings. Based on the pre-set instrument range and scale distribution, a linear mapping relationship is used for linear scale instruments, and a lookup table from angle to reading is pre-established for non-linear scale instruments. Finally, the reading is formatted as numerical data, with an instrument type identifier and timestamp, and output in a structured format, or uploaded to the research station's data center via a communication protocol for subsequent recording, analysis, and early warning.

[0054] The key technological innovation of this invention lies in: (1) Multi-interference parallel divide-and-conquer and adaptive fusion mechanism (step 2): For the first time, four dedicated sub-networks are constructed for four types of polar environmental interference. The automatic perception of interference intensity and dynamic allocation of fusion weights are achieved through lightweight parameter prediction head and Softmax normalization, so that the system can adaptively adjust the processing strategy in multi-interference coupling scenarios. (2) Multi-scale feature extraction method that combines small target perception and background suppression (step 3): Construct a small target perception feature layer by cross-layer feature fusion, and combine it with attention gating mechanism to suppress ice and snow background interference, so as to solve the technical contradiction between small-sized dial detection and complex background interference in polar scenes. (3) Confidence weighting and robust correction method for occlusion perception (steps 4.2-4.4): The confidence scores of the dial feature points are constructed by multiplying and fusing the three physical dimensions of texture clarity, edge strength and temperature noise. The occlusion quality perception factor and weighted homography matrix estimation with residual penalty are introduced so that the algorithm can still accurately estimate the transformation matrix when the dial feature points are occluded by ice and snow. (4) Temperature compensation correction mechanism (step 4.5): For the first time, a temperature-focal length linear model is established in the instrument identification, and the camera intrinsic parameter matrix is ​​corrected in real time to compensate for the low temperature imaging drift.

[0055] The beneficial effects of this invention are as follows: This invention designs a combined interference adaptive preprocessing module, employing a four-sub-network parallel divide-and-conquer architecture (step 2.1). It incorporates four dedicated processing sub-networks: a de-reflection sub-network, a de-snow / de-occlusion sub-network, a de-frost sub-network, and a low-temperature noise reduction sub-network. Through a lightweight parameter prediction head and Softmax normalization, weights are dynamically allocated to achieve adaptive weighted fusion, balancing detail preservation and interference suppression. Each of the four sub-networks is responsible for a specific type of polar-specific interference, with weights adaptively adjusted according to the severity of interference in the input image. This allows it to adapt to diverse environments such as polar daytime strong light reflections, blizzards, frost, and extreme cold without manual parameter tuning. In simulated polar environment tests, the instrument's recall rate increased by approximately 30% and the absolute error of the reading decreased to within 1.5% after adopting this invention.

[0056] This invention optimizes the feature pyramid structure by adding a small-sized dial perception feature layer through cross-layer feature fusion (deep features are upsampled by bilinear interpolation and then concatenated with mid-layer features along the channel, followed by 1×1 convolutional dimensionality reduction). It also introduces an attention gating mechanism to suppress invalid responses against icy and snowy backgrounds. Polar instruments often have a diameter <64 pixels in images, resulting in significant attenuation of small target information in deep feature maps. The fusion layer balances spatial details and semantic information, enhancing the representation of small-sized dial features. The gating mechanism strengthens the dial region response and suppresses background interference. Together, these improvements enhance the recall rate for small-sized dial detection and the recognition accuracy against complex icy and snowy backgrounds.

[0057] This invention proposes a joint algorithm for pointer keypoint detection and pose correction, integrating three mechanisms: quantifying feature reliability using the confidence score of dial feature points (combining texture sharpness, edge strength, and a temperature-related noise model); proposing a robust correction method for occlusion perception using an occlusion quality perception factor to evaluate the degree of dial occlusion; and employing a weighted homography matrix estimation model with a residual penalty function. This invention uses a comprehensive weighting method instead of the traditional equal-weighted least squares method to suppress outliers. Incorrect dial feature points caused by ice and snow occlusion can contaminate the transformation matrix in traditional equal-weighted estimation. This invention uses a combination of confidence weighting and residual penalty to suppress outliers, eliminating reliance on complete dial feature points. The algorithm can adapt to ±30° instrument tilt and reliably completes attitude correction even when the dial is partially covered with snow or frost.

[0058] This invention introduces a temperature compensation correction mechanism for the first time in instrument identification, establishing a temperature-focal length linear model and introducing a temperature-focal length expansion coefficient η to correct the camera's intrinsic parameter matrix and homography matrix in real time. At low temperatures, the thermal expansion and contraction of the lens causes focal length drift and image scaling effects. This systematic error originates from the change of camera physical parameters with temperature. Traditional homography matrix estimation does not include any temperature compensation term in its objective function, therefore it cannot be eliminated by conventional algorithms. However, by introducing a temperature compensation term at the homography matrix estimation level, low-temperature imaging drift can be quantitatively corrected. After this compensation, the reading error remains <1.5% even under extremely cold conditions of -40℃.

[0059] This invention is the first to construct a dedicated dataset for polar outdoor pointer-type instruments, such as... Figure 4 The study employs a two-level approach: "on-site original data collection" and "interference simulation expansion," covering original samples from polar day and polar night, as well as various weather conditions, and synthesizing interference samples coupled with reflection, snow spots, frost, and low-temperature noise. Attached Figure Description

[0060] Figure 1 This is a block diagram of the overall functional modules of the system; Figure 2 Diagram of the internal sub-network structure of the combined interference adaptive preprocessing module; Figure 3 This is a schematic diagram illustrating the principle of instrument tilt correction. Figure 4 Flowchart for building polar-specific datasets Figure 5 This is a flowchart of the method of the present invention. Detailed Implementation

[0061] The present invention will be further described below with reference to specific embodiments.

[0062] A visual recognition method for pointer-type instruments designed for polar outdoor environments, such as... Figure 5 As shown, it includes the following steps: Step 1: Acquire raw images from polar outdoor instruments .

[0063] In this case study, an outdoor barometer at China's Great Wall Station in Antarctica was used as the identification target. This barometer, installed in the meteorological observation field of the research station, has a dial diameter of approximately 150mm, a measuring range of 800-1050 hPa, and a white dial with black graduations and pointers. The region has complex meteorological conditions, with an average annual temperature of approximately -15℃ and winter lows reaching -40℃, frequently accompanied by strong winds, blizzards, and dense fog. Multiple 2-megapixel security cameras have been deployed within the research station, one of which, a fixed camera, covers the barometer at a distance of approximately 5 meters and an angle of approximately 30°.

[0064] Step 1.1: Determine the image acquisition source. Based on the on-site deployment, an existing security camera at the research station was selected as the image acquisition device. This camera is a Hikvision DS-2CD2T25F series network camera, which has network access capabilities and can acquire video streams via the RTSP protocol. The camera is fixedly installed on a pillar on the east side of the meteorological observation field, at a height of approximately 2.5 meters, looking down at the barometer.

[0065] Step 1.2: Call the camera driver API. Based on the camera model, call its corresponding software development kit (SDK) or standard video acquisition interface (such as the RTSP protocol) to establish a data connection channel with the camera. In this implementation case, the embedded device connects to the research station's local area network via Ethernet, uses the V4L2 driver framework and FFmpeg library for video stream decoding, and acquires real-time video stream from the camera via the RTSP protocol. The image resolution is 1920×1080 pixels, and the frame rate is 25fps.

[0066] Step 1.3: Acquire and temporarily store the original image. At a set acquisition interval (every 10 minutes in this implementation, adjusted to every 5 minutes during polar days to cover more lighting variations) or on-demand triggering, read a complete frame of image data. The image resolution is 1920×1080, and after converting the image format to RGB, it is temporarily stored in the device memory to obtain the original image. In a typical data acquisition in this implementation case, the barometer in the acquired original image was reflective due to partial snow cover and strong light, with the dial area occupying approximately 8% of the entire image area (approximately 150×150 pixels).

[0067] Step 2, process the original image Perform adaptive preprocessing of combined interference to output enhanced image. .

[0068] In this case study, four types of interference existed simultaneously in the polar outdoor environment: the day was sunny with a temperature of -25°C and a wind speed of approximately 15 m / s; the previous night's snowfall had resulted in a 2 mm thick layer of snow covering the barometer surface, along with light frost on the dial glass; strong sunlight caused localized glare on the dial area; and the CMOS sensor generated significant thermal noise under low-temperature conditions. These interferences occurred simultaneously and were coupled with each other, making it impossible to effectively handle them with a single preprocessing method.

[0069] This step follows from the original image obtained in step 1. This method adaptively processes four environmental disturbances unique to the polar regions (strong light reflection, ice and snow obstruction, lens frost, and low-temperature noise). Unlike conventional single-disturbance processing methods, this step achieves joint adaptive enhancement when multiple disturbances coexist through four parallel sub-networks and an automatic weight allocation mechanism. The four sub-networks operate in parallel, each processing one type of disturbance; a lightweight parameter prediction head automatically analyzes the input image, assigns weights to the outputs of the four sub-networks, and finally obtains the enhanced image through weighted summation. This step draws upon the general technical concepts of "multi-branch parallel processing" and "adaptive weighted fusion," making specific improvements and innovative combinations for the polar environment. The specific steps are as follows: Step 2.1: Four sub-networks are invoked in parallel to process interference, generating four feature maps. The original image... Simultaneously, four parallel sub-networks are input: a de-reflection sub-network, a snow / occlusion de-network, a frosting sub-network, and a low-temperature noise reduction sub-network. Each sub-network processes a polar-specific environmental disturbance and generates four feature maps. , , , (The core technologies of these four sub-networks are all known and mature technologies, but this invention selects and combines them for the specific scenario of polar instrument identification.) In this implementation, all four sub-networks adopt a lightweight architecture, with the number of parameters controlled within 1M, and can be deployed on embedded devices. The four parallel processing sub-networks are as follows: De-reflection network: Based on Retinex theory, it transforms images... The process decomposes the light component (L) into illumination and reflection components. By suppressing the illumination component in high-brightness areas while preserving the reflection component, the glare from strong light reflections on the dial area is reduced. The processing method involves nonlinearly compressing the illumination component (L) and then recombining it with the reflection component (R) to obtain the de-reflected features. Figure 1 In this implementation, the de-photonics network effectively identified the highlight areas on the dial surface caused by direct sunlight and successfully suppressed overexposure in these areas.

[0070] Snow Removal / Occlusion Removal Sub-network: A lightweight deep convolutional inpainting network is employed. During the training phase, this network learns the mapping relationship from "snowy / occluded" images to "snow-free / occluded" images. During the inference phase, the input image is directly forward-propagated to perform content inpainting on the snow-occluded areas, and the inpainted features are output. Figure 2 This network uses forward propagation only during the inference phase and does not involve backpropagation, thus keeping computational overhead manageable. In this implementation, the snow removal / de-occlusion sub-network identified approximately 15% of the pixel area on the barometer surface as being covered by snow and successfully recovered the dial texture of the occluded area.

[0071] Defrost sub-network: Utilizes dark channel priors to estimate the concentration distribution of frosting in the image, combines high-frequency information enhancement, and performs edge sharpening and contrast restoration on blurred areas to eliminate the blurring effect caused by lens frost, outputting features. Figure 3 In this implementation, the defrost sub-network detected slight frost (approximately 25% fogging) on ​​the dial glass surface. After estimating the fogging concentration distribution through the dark channel prior, targeted edge sharpening and contrast restoration were performed.

[0072] Low-Temperature Noise Reduction Subnetwork: This network embeds a learnable bilateral filtering module. This module adaptively adjusts the filtering coefficients based on gradient information from local image regions, applying stronger filtering to smooth areas to suppress thermal noise and maintaining weaker filtering intensity in edge regions to preserve details, outputting features. Figure 4 In this implementation, the low-temperature noise reduction subnetwork effectively suppresses random noise in the image, taking into account the thermal noise characteristics of the CMOS sensor at -25℃.

[0073] Step 2.2 (run concurrently with Step 2.1): Original image Simultaneously, the "Lightweight Parameter Prediction Head" is accessed to calculate the adaptive fusion weights for four types of interference, which are respectively the first weight. Second weight Third weight Fourth weight .

[0074] First, the original image The input is a lightweight parameter prediction head, which internally performs convolutional and fully connected computations, and outputs four raw scores. , , , Then, the Softmax formula is used to convert the original scores. (j takes values ​​from 1 to 4) Convert to their respective weights (Limited to 0~1, and the sum of the four weights is 1). The Softmax normalization calculation formula is: The weights corresponding to the de-reflection network are obtained respectively. The weights corresponding to the desnowing / de-occlusion subnetwork The weights corresponding to the frosting subnetwork. The weights corresponding to the low-temperature noise reduction subnetwork .

[0075] Among them, molecules : indicates that the j-th original fraction is... It becomes a positive number (exponential function). It has a property: The larger, It increases dramatically; the denominator This means adding the four index values ​​together as a total baseline. Then, dividing each index value by the sum will always result in a value between 0 and 1, and the sum of the four results will strictly equal 1.

[0076] These weights reflect the severity of each of the four types of interference in the current input image. In this implementation, the input image contains strong glare and slight frost, therefore... (Weights corresponding to the de-reflection network) and (The weights corresponding to the defrost subnetwork) are automatically increased; and since the snowfall occurred 12 hours before the data collection, the snow interference in the current image is relatively weak. and Automatically decrease. The specific weight allocation is as follows: =0.35, =0.10, =0.48, =0.07, this set of weights effectively reflects the actual working conditions in the current image where reflection and frost interference are the most serious, and low temperature noise interference is relatively minor.

[0077] These weights reflect the severity of each of the four types of interference in the current input image; for example, when the image has severe frost, Automatically enlarges; when the image is severely reflective, Automatically increases in size.

[0078] Step 2.3, based on the weight values ​​from Step 2.2 and the features from Step 2.1. Figure 1 ~Features Figure 4 The enhanced image is obtained by weighted fusion. The features output by the four sub-networks are then combined. Figure 1 ~Features Figure 4 Multiply by the corresponding weights, and then add them element by element to obtain the final enhanced image. : in, , , , These represent feature maps for the anti-reflection sub-network, the anti-snow / anti-occlusion sub-network, the anti-frost sub-network, and the low-temperature noise reduction sub-network, respectively. , , , The adaptive fusion weights represent four types of interference. In this implementation, the dial area is clearly distinguishable in the enhanced image after weighted fusion, snow accumulation is effectively repaired, reflective areas are suppressed, frost blur is eliminated, and noise is filtered out.

[0079] Through this adaptive weighted fusion, the system can automatically adjust the processing strategy for different weather conditions and interference combinations: the weight of the anti-reflection sub-network is increased when the sun is shining brightly, the weight of the desnow / de-occlusion sub-network is increased when there is a blizzard, the weight of the de-frost sub-network is increased when the lens is frosted, and the weight of the low temperature noise reduction sub-network is increased when the temperature is extremely cold. It can adapt to the complex and ever-changing outdoor environment of the polar regions without manual parameter adjustment, and finally obtain an enhanced image with good detail preservation and effective suppression of interference.

[0080] Step 3, the enhanced image obtained in Step 2 Perform multi-scale feature extraction based on classic detection networks (such as YOLO), extract discriminative multi-scale features from the enhanced image, locate the instrument panel region, and output the instrument panel bounding box B.

[0081] This step addresses two challenges unique to polar environments: first, the instrument may occupy a small area in the image (in this implementation, the barometer dial area occupies approximately 8% of the image area, about 150×150 pixels, which is a typical small target); second, the background contains a large amount of ice and snow texture interference (such as the white snow around the dial, ice crystal reflections, etc.). Unlike conventional detection methods that directly use fixed-scale features, this step constructs a feature pyramid to obtain multi-scale feature maps at three different scales, specifically adding a small target perception feature layer to enhance the response to the small dial, and introducing an attention gating mechanism to suppress the response to the ice and snow background, thereby accurately detecting the dial position in complex backgrounds; the specific steps are as follows: Step 3.1, Enhanced image based on step 2 Extract multi-scale feature maps. After scaling to a uniform size (640×640), multi-scale feature extraction based on classic detection networks (such as YOLO) is performed. Three scales of multi-scale feature maps are extracted through convolution and pooling operations: F1 resolution is 160×160; F2 resolution is 80×80; and F3 resolution is 40×40. From F1 to F3, the feature map resolution decreases layer by layer while the semantic level increases layer by layer. Together, these three layers constitute a multi-scale feature representation from details to high-level semantics. The shallow feature map F1 retains the richest spatial detail information and is used for high-resolution refinement of the dial bounding box in step 3.5; the mid-level feature map F2 and the deep feature map F3 are used to construct the small target perception feature layer.

[0082] Step 3.2: Based on the multi-scale feature map from Step 3.1, construct a small target perception feature layer; To enhance the detection capability for small-sized watch faces, the deep feature F3 is upsampled using bilinear interpolation to align its spatial dimensions with those of the mid-level feature F2. Then, the upsampled F3 and F2 are concatenated along the channel dimension, followed by a 1×1 convolutional layer to reduce the number of channels to the same level as F2, resulting in a fused feature map. The calculation process is expressed as follows: in, () indicates channel splicing. () indicates bilinear upsampling. () indicates a 1×1 convolution. Through step 3.2, the fused features retain the spatial details of the mid-level features (the precise edge position of the dial) while injecting strong semantic information from the deep features (the semantic difference between the dial and the snow), thus enhancing the detection capability of small-sized dials. In this implementation, the response intensity of the dial region on the fused feature map is approximately 25% higher than that of a single feature layer, ensuring that small-sized dials (150×150 pixels) are not missed in subsequent detections.

[0083] Step 3.3, based on the fusion features of step 3.2 An attention gating mechanism is introduced to calculate the spatial attention weight map.

[0084] To suppress interference from irrelevant backgrounds such as snow and ice, an attention gating mechanism is introduced. Firstly, attention gating is... Apply a 1×1 convolutional layer to reduce the number of channels to 1, and then... The activation function compresses the values ​​at each spatial location into the (0,1) interval, resulting in a spatial attention weight map. : Each element represents the importance of its corresponding spatial location. A higher value indicates a higher probability that the location belongs to the dial area, while a lower value indicates a higher probability that the location belongs to the background (such as snow or ice). In this implementation case, the attention weight map outputs a high weight of approximately 0.85 in the dial area and a low weight of approximately 0.15 in the surrounding snow area, effectively distinguishing the dial target from the snow and ice background.

[0085] Step 3.4, based on the attention weight map from Step 3.3 Output a weighted multi-scale feature map. Combine the spatial attention weight map M with the fused features. Element-wise multiplication yields the final weighted multi-scale feature map. : Here, ⊙ represents element-wise multiplication. Through this attention-weighted approach, the model automatically enhances the feature response of the dial area and suppresses the response to the snowy background, thereby improving detection accuracy. In this implementation, the feature response of the dial area is significantly enhanced after weighting, while the response to the snowy background is suppressed by approximately 70%.

[0086] Step 3.5, based on the weighted multi-scale feature map from Step 3.4 Combine the shallow feature map F1 to output the dial bounding box; Will Together with the shallow feature map F1, the data is fed into the detection head, and the detection head... At each spatial location, the presence of a dial and the coordinate offset of the bounding box are predicted. Simultaneously, the shallow feature map F1 provides high-resolution spatial detail information to refine the localization accuracy of the bounding box. After non-maximum suppression (NMS) to remove duplicate detections, the dial bounding box with the highest confidence is output as B=(x,y,w,h), where (x,y) are the coordinates of the top-left corner of the bounding box, and w and h are the width and height of the bounding box. In this implementation, the dial bounding box output by the detection head is B=(320,240,155,152) (coordinates and dimensions in pixels), with a detection confidence of 0.94, and the dial center point is located at (397,316). This step only outputs the position of the dial in the image, not the cropped image. Step 4 will calculate the position of the dial based on B... The image of the dial area is cropped out from the middle.

[0087] Step 4: Based on the dial bounding box B=(x,y,w,h) output in Step 3, perform pointer key point detection and attitude joint correction on the dial area, and output the corrected pointer angle θ.

[0088] The core objective of this step is to correct the elliptical dial in the image, which may appear elliptical due to instrument tilt or shooting angle deviation, into a perfectly circular dial as seen from a frontal view, and to calculate the true pointer angle unaffected by tilt. The coordinate system of the corrected dial is called the frontal view coordinate system—in this coordinate system, the dial plane is parallel to the imaging plane, the dial is perfectly circular, and the pointer rotation angle can be directly used for reading calculation.

[0089] Unlike existing methods that treat all dial feature points equally, this step addresses the unique challenge of polar ice and snow cover by designing a joint correction algorithm that integrates confidence weighting, occlusion quality perception, and temperature compensation. This enables the system to accurately estimate the transformation matrix even under extreme conditions where parts of the dial are covered by ice and snow. The specific steps are as follows: Step 4.1, based on the dial bounding box B from step 3, from the enhanced image Cropping out the dial area image Specifically, from The image of the dial area is obtained by cropping the rectangular region defined by B=(320,240,155,152). (Size 155×152 pixels), used as input for subsequent keypoint detection. In this implementation, the dial is basically centered in the cropped dial area image, but there is a slight tilt (about 12° clockwise), and the pointer points at about 62° (i.e., the air pressure value is about 857 hPa).

[0090] Step 4.2, crop the dial area image from step 4.1. Keypoint detection is performed using a lightweight keypoint regression network. The network is designed with a multi-task output structure, containing two branches: Key points on the dial: The positions of three key points were detected: dial center O Pointer tip P Pointer tail Q The three keypoints used in step 4.6 for calculating the corrected pointer angle are fixed at three and no confidence level is applied. In this implementation case, the coordinates of the three keypoints output by the keypoint regression network are: center O=(78,76), pointer tip P=(85,38), and pointer tail Q=(72,112) (the coordinate unit is pixels, with the upper left corner of the dial area image as the origin).

[0091] Dial feature point branch: Detect the coordinates of 16 dial feature points distributed on the dial circumference and calculate the confidence score of each dial feature point for occlusion quality perception and weighted homography matrix estimation in steps 4.3 and 4.4.

[0092] The confidence score is defined as: The parameters are defined and have physical meanings as follows: ∈[0,1] represents the texture sharpness of the neighborhood of the dial feature point, taken from the normalized local variance value of the feature response output by the desnowing / de-occlusion sub-network in step 2. When the dial feature point is located on a sharp scale line or the edge of the pointer, the local variance is relatively large. The local variance is close to 1; when the dial feature points are obscured by ice and snow or located in a blurred area, the local variance is small. Approaching 0. This item follows The confidence level increases monotonically; the clearer the texture, the higher the confidence level. In this implementation, 16 dial feature points were detected (distributed on the dial circumference and the pointer path).

[0093] ∈[0,1] represents the edge intensity of the dial feature point, normalized using the Canny operator response. A higher edge intensity indicates that the point is located on a clear image boundary, and therefore has a higher probability of being a valid dial feature point. In this implementation, dial feature points located at the pointer tip and the scale line... Values ​​are approximately 0.85 to 0.95, and these are dial feature points located in the blank areas of the dial. The value is approximately 0.2 to 0.4.

[0094] σ t =0.15 is the texture sensitivity adjustment parameter, which controls the degree of influence of the texture sharpness item on the confidence level; =15 is the slope parameter of the edge strength Sigmoid curve, which controls the steepness of the transition from low to high edge strength; τ=0.3 is the edge strength threshold.

[0095] For temperature-related noise model, The ambient temperature is (°C). The calibration temperature is the room temperature (e.g., 20°C). This is the lower limit of the sensor's nominal operating temperature (e.g., -20°C). Current ambient temperature. ≥ hour, =0, confidence level is not affected by temperature; current ambient temperature. hour, =1, confidence level reaches maximum penalty due to low-temperature noise; current ambient temperature is between and In between, It increases linearly from 0 to 1 as the temperature decreases. =0.1 is the temperature influence coefficient, which controls the penalty strength of temperature on the confidence level. In this implementation case, the current ambient temperature is -25℃, and the room temperature calibration temperature is... =20℃, the lower limit of the sensor's nominal operating temperature. =-20℃. Since -25℃ < -20℃, the ambient temperature has exceeded the lower limit of the sensor's nominal operating temperature. =1, meaning the temperature penalty reaches its maximum value. Correspondingly, the temperature penalty factor is... The smaller the value, the stronger the penalty for confidence level.

[0096] First item For texture sharpness index, when When =1, it reaches its maximum value of 1. When =0, it decays to near 0; the second term For the edge strength Sigmoid term, when When τ approaches 1, <<τ approaches 0; the third term The temperature penalty term is 1 when the temperature is normal and less than 1 when the temperature is too low. Multiplying these three factors, poor performance in any dimension will significantly reduce the confidence score. In this implementation case, among the 16 detected dial feature points, 14 had confidence scores of approximately 0.85–0.95, while the two dial feature points located at the edge of snow had confidence scores below 0.15. The system automatically filtered out… A total of 14 valid dial feature points with a value >0.5 were used in subsequent calculations.

[0097] Step 4.3: Based on the confidence score from Step 4.2, calculate the occlusion quality perception factor. Assess the severity of the current dial being obscured by ice and snow.

[0098] in, The convex hull area formed by all valid dial feature points with a confidence level higher than the threshold (set to 0.5); The reference convex hull area is the area of ​​the complete instrument panel, and the reference convex hull area is pre-calibrated; γ represents the variance of the confidence scores of each dial feature point, reflecting the degree of unevenness in the distribution of confidence scores of dial feature points; β=0.7 is the occlusion ratio influence coefficient; γ=0.3 is the confidence score unevenness penalty coefficient. The physical meaning is: when the area of ​​the convex hull of the effective dial feature points is close to the area of ​​the complete dial and the confidence level of each point is uniformly distributed, A value close to 1 indicates slight occlusion; when the effective dial feature point area shrinks or the confidence level distribution is uneven, ... A decrease indicates severe occlusion.

[0099] In this implementation case, the effective dial feature points ( There are 14 in total (>0.5), and their convex hull areas are... Covers the entire dial reference convex hull area 72% of =0.72. Variance of confidence level for dial feature points. =0.08. Substitute into the formula to calculate: =1-0.7×(1-0.72)-0.3×0.08=1-0.196-0.024=0.78. This result indicates that the dial has approximately 22% occlusion, but the majority of effective dial feature points still exist, supporting subsequent weighted homography matrix estimation.

[0100] Step 4.4: Based on the confidence score in Step 4.2 and the occlusion quality perception factor in Step 4.3, establish the objective function for weighted homography matrix estimation.

[0101] Traditional homography matrix estimation uses the equal-weighted least squares formula, and its optimal solution is: in, =(x i ,y i ,1) T Let be the homogeneous coordinates of the dial feature points in the instrument image to be corrected. =(x i ,y i ,1) T To correspond to the homogeneous coordinates of the target point in the front view coordinate system, Let be the 3×3 homography matrix to be solved. Indicates in Among all possible values, find the solution that minimizes the objective function.

[0102] This invention introduces confidence-weighted calculation and occlusion quality compensation, and proposes an improved objective function: in: The weighted average incorporates confidence levels at the dial feature point level and global occlusion levels. In this implementation, the weighted average... Values ×0.78, the overall weight of effective high-confidence dial feature points is approximately 0.66~0.74. Let H be the current projection residual of the i-th dial feature point, which is the distance between the point's position after mapping from the original image to the front view and the standard position under the current estimated H. Here, μ is the residual penalty function, and μ = 2.0 is the residual sensitivity coefficient. =0.5 is the robust adjustment coefficient.

[0103] When the residual When approaching 0, ≈0, the penalty term has no additional effect; when the residual is large, When the value is close to 1, the error at that point is amplified. 1+λ The coefficient is λ=0.5, which is the robust adjustment coefficient. In this implementation case, the projection residuals of the 14 effective dial feature points are all less than 2 pixels. The solution of the weighted objective function is basically consistent with the standard homography matrix estimation method. However, due to the effect of the comprehensive weight, the two low-confidence dial feature points located at the edge of the snow cover hardly contribute to the result, thus ensuring the accuracy of the correction result.

[0104] This function applies an extra penalty to outliers with large residuals, which is equivalent to the influence function in robust regression, effectively suppressing the interference of erroneous dial feature points caused by ice and snow occlusion on the H estimate.

[0105] Step 4.5: Solve for the weighted homography matrix based on the objective function in Step 4.4, and perform temperature compensation correction. Solving the above optimization problem yields the weighted estimated homography matrix H. Then, a temperature compensation correction term is introduced: Where K0 is the camera intrinsic parameter matrix calibrated at room temperature: in, This represents the focal length (in pixels) in the horizontal direction at room temperature. This represents the focal length (in pixels) in the vertical direction at room temperature. and Principal Point coordinates are fixed hardware parameters of the lens and do not change with environmental factors such as temperature and humidity once manufactured.

[0106] K t Here is the camera intrinsic parameter matrix at the current temperature: Actual focal length at current temperature: .

[0107] η=5×10 -5 t is the temperature-focal length expansion coefficient (dimension 1 / ℃), t is the current ambient temperature (℃), and t0 is the temperature at room temperature during calibration.

[0108] In this implementation case, the current ambient temperature t = -25℃, the calibration temperature t0 = 20℃, then the temperature difference t - t0 = -45℃. The focal length correction factor is: 1 + =1+5×10 -5×(-45)=0.99775 That is, the effective focal length at the current temperature is 99.775% of the value calibrated at room temperature. (This is achieved through...) The homography matrix is ​​corrected to compensate for the image scaling effect caused by temperature changes, ensuring system stability under high-precision reading requirements (error <1.5%).

[0109] Step 4.6, based on the homography matrix corrected by temperature compensation in Step 4.5 In step 4.2 (a), the three key points detected by the dial key point branch (center O, pointer tip P, pointer tail Q) are mapped to the front view coordinate system, and the corrected pointer angle is calculated. Specifically, the center O, pointer tip P, and pointer tail Q are first mapped using... Mapping to the front view coordinate system: Obtain the center of the circle in the coordinate system of the front view. pointer tip pointer tail Then calculate the pointer direction vector. The corrected pointer angle is obtained as follows: Among them, (y,x) This is a two-parameter arctangent function that returns the distance from the positive x-axis to the point x,y. The included angle is in the range of (-π, π). In this implementation example, under the corrected front view, the center O′=(78, 76) and the pointer tip P′=(87, 34) (previously (85, 38)). The calculation yields: (34-76, 87-78)= (-42, 9) ≈ -77.9°. To ensure monotonic angle change (0°~360°), the negative angle is converted to a positive angle: -77.9° + 360° = 282.1°. Further calibration is performed based on the barometer scale distribution: the pointer rotation range of this barometer corresponds to 0°~270°, with a measurement range of 800~1050 hPa. 282.1° exceeds the normal angle range. After dial reference calibration, the actual deflection angle of the pointer relative to the 0° scale is 62.3°. The final output corrected pointer angle θ = 62.3°.

[0110] Step 5: Based on the corrected pointer angle θ output in Step 4, perform reading mapping according to the preset instrument range and scale distribution, convert the corrected pointer angle into a specific reading, and output the instrument reading.

[0111] Step 5.1, determine the instrument's measuring range and angular range: pre-calibrate the instrument's physical measuring range. , ] and its corresponding pointer angle range[ , For linear scale instruments, a linear mapping relationship is used; for non-linear scale instruments, a lookup table from angle to reading is pre-established. In this implementation case, the barometer is a linear scale instrument with a range of 800~1050hPa, and the corresponding pointer angle range is 0°~270° (0° corresponds to 800hPa, and 270° corresponds to 1050hPa).

[0112] Step 5.2, based on the pointer angle in step 4 Based on the range and angle range specified in step 5.1, perform an angle-to-reading mapping conversion. For linear scale instruments, the linear mapping formula is used: Where V is the output reading. In this implementation example, θ = 62.3°. =0°, =270° =800hPa, =1050hPa, substituting into the formula, we get: V = 800 + 62.3 - 0.270 - 0 × (1050 - 800) = 800 + 62.3 - 270 × 250 = 800 + 57.7 = 857.7 hPa. After comparing with the on-site manual measurement (857 hPa), the result was found to be accurate.

[0113] Step 5.3: Based on the mapping results of Step 5.2, output structured instrument readings: format the reading V as numerical data, attach the instrument type identifier and timestamp, output in a structured format, or upload it to the research station's data center via a communication protocol for subsequent recording, analysis and early warning.

[0114] The readings were uploaded to the research station's data center via the MQTT protocol and were consistent with the on-site manual reading of 857 hPa, verifying the accuracy of the method of the present invention.

[0115] Performance verification: In a three-month continuous test (theoretical simulation, based on extreme lighting data such as polar night), the recognition success rate was greater than 98%, and the processing time for a single image was less than 150ms, which is a significant improvement over the traditional YOLOv8 model that did not use the present invention (the accuracy rate was only 73% under the same conditions).

[0116] This embodiment also provides a pointer-type instrument visual recognition system for polar outdoor environments, including an image acquisition module, a combined interference adaptive preprocessing module, a multi-scale feature extraction module, a pointer key point detection and attitude joint correction module, and a reading mapping module, as detailed below: Image acquisition module: such as Figure 1 As shown, the system first acquires raw images of polar outdoor instruments from existing security cameras or inspection robot cameras at the polar research station through the image acquisition module. This module comprises three functional units: a source determination unit, a camera driver invocation unit, and a raw image acquisition and temporary storage unit. Based on this specific implementation case, the source determination unit scans available security cameras within the research station's local area network and confirms the online status of the devices via the ONVIF protocol; the camera driver invocation unit calls the corresponding SDK, using the V4L2 driver framework and FFmpeg library, and acquires a real-time video stream at 1920×1080 resolution and 25fps via the RTSP protocol; the raw image acquisition and temporary storage unit reads a complete frame of image data at a set acquisition interval, converts the image format from YUV to RGB, and temporarily stores it in memory, eliminating dropped or corrupted images caused by network fluctuations to ensure the quality of the raw images. Integrity and availability. Figure 1 In the system's overall functional block diagram shown, the image acquisition module corresponds to step 1 and is the starting point of the data flow; its output... It is the input source for the entire recognition process, providing high-quality input data for subsequent preprocessing modules.

[0117] Combined interference adaptive preprocessing module: such as Figure 1 and Figure 2 As shown, this combined interference adaptive preprocessing module is connected to the image acquisition module to receive the original image. This module is designed for adaptive processing of four environmental disturbances unique to polar regions (strong light reflection, snow and ice occlusion, lens frost, and low-temperature noise). It comprises four parallel sub-network processing units, adaptive weight prediction, and weighted fusion. In this specific implementation, the four parallel sub-network processing units include a de-reflection sub-network (suppressing strong light reflection areas based on Retinex theory), a snow / occlusion removal sub-network (using a lightweight deep convolutional repair network to repair snow and ice occlusion areas), a frost removal sub-network (using dark channel priors and high-frequency information enhancement to eliminate lens frost blur), and a low-temperature noise reduction sub-network (embedding a learnable bilateral filter module to suppress low-temperature thermal noise). Each sub-network performs specialized processing for one type of disturbance, simultaneously generating four feature maps. , , , The adaptive weighted prediction unit consists of a lightweight parameter prediction head, based on the original image. Simultaneously, the data enters the prediction head, where it undergoes convolution and fully connected layer computation to output four raw scores. After Softmax normalization, four adaptive fusion weights are obtained. , , , The weighted fusion unit multiplies the feature maps output by the four sub-networks by their corresponding weights and then adds them element-wise to obtain the final enhanced image. .exist Figure 1 In this context, this module corresponds to step 2, and its output is... Simultaneously input the multi-scale feature extraction module (step 3) and the pointer keypoint detection and pose joint correction module (step 4), the latter indicated by arrows as auxiliary data flow. Figure 2 The diagram showing the internal sub-network structure of the combined interference adaptive preprocessing module clearly illustrates the data flow relationships of the four parallel sub-networks, the lightweight parameter prediction head, Softmax normalization, and weighted fusion, corresponding to steps 2.1 (processing of the four parallel sub-networks), 2.2 (adaptive weight prediction), and 2.3 (weighted fusion), respectively.

[0118] Multi-scale feature extraction module: such as Figure 1 As shown, the multi-scale feature extraction module is connected to the combined interference adaptive preprocessing module to receive the enhanced image. This module is used to extract discriminative multi-scale features from enhanced images, locate the dashboard region, and output the dashboard bounding box. It comprises four functional units: feature pyramid construction, small object perception feature layer construction, attention-gated weighting, and dashboard bounding box output. Based on this specific implementation case, the feature pyramid construction unit will... After scaling to a uniform size (640×640), the input is a feature pyramid structure based on a classic detection network. Convolution and pooling operations are used to extract feature maps F1 (160×160), F2 (80×80), and F3 (40×40) at three scales, forming a multi-scale feature representation from detail to semantics. The small object perception feature layer construction unit upsamples the deep feature F3 to 80×80 using bilinear interpolation, concatenates it with the mid-level feature F2 along the channel dimension, and then performs 1×1 convolution dimensionality reduction to obtain the fused feature map. Attention-gated weighted units The number of channels is reduced to 1 by applying a 1×1 convolution, and a spatial attention weight map M is obtained by using a sigmoid activation function. M is then compared with... Element-wise multiplication yields After being fed into the detection head, the output dial bounding box B=(x,y,w,h) is shown. Figure 1 In this module, which corresponds to step 3, the output B is the positional basis for the dial area cropping and posture correction in step 4.

[0119] Pointer key point detection and attitude joint correction module: Figure 3As shown, the pointer key point detection and pose joint correction module is connected to a multi-scale feature extraction module and a combined interference adaptive preprocessing module, receiving the dial bounding box B and the enhanced image. This module is used to perform pointer keypoint detection and joint attitude correction on the dial area, outputting the corrected pointer angle θ. It comprises six functional units: dial area cropping, keypoint detection and feature point confidence calculation, occlusion quality perception, weighted homography matrix estimation, temperature compensation correction, and pointer angle calculation. Based on this specific implementation case, the dial area cropping unit calculates the pointer angle according to B... Cropping out the dial area image The keypoint detection and feature point confidence calculation unit employs a lightweight keypoint regression network to detect three keypoints (dial center O, pointer tip P, and pointer tail Q) and simultaneously calculate the confidence score for each dial feature point. The occlusion quality sensing unit calculates the occlusion quality sensing factor. The system assesses the severity of the dial obscured by ice and snow. A weighted homography matrix estimation unit constructs an improved objective function, introducing comprehensive weights to replace traditional equal least squares. A temperature compensation correction unit corrects the homography matrix to compensate for image scaling effects caused by temperature changes. A pointer angle calculation unit maps keypoints to the front view coordinate system and calculates the pointer angle θ. Figure 1 In this module, which corresponds to step 4, the output θ is the basis for the reading mapping in step 5.

[0120] Reading mapping module: such as Figure 1 As shown, this reading mapping module connects to the pointer key point detection and attitude joint correction module, receives the corrected pointer angle θ, and converts the corrected pointer angle into a specific reading based on the pre-set instrument range and scale distribution, outputting a structured instrument reading. This module encompasses three functional units: range and angle calibration, angle-reading mapping conversion, and structured reading output. Based on this specific implementation case, the range and angle calibration unit pre-calibrates the barometer's physical range as 800~1050 hPa, corresponding to a pointer angle range of 0°~270°. The angle-reading mapping conversion unit uses a linear mapping formula for linear scale instruments and a lookup table combined with linear interpolation for non-linear scale instruments. The structured reading output unit formats the reading as numerical data, includes an instrument type identifier and timestamp, outputs it in JSON format, or uploads it to the research station's data center via a communication protocol. Figure 1 In this module, which corresponds to step 5, it is the endpoint of the entire recognition process.

[0121] The above embodiments are merely illustrative of the implementation methods of the present invention, but should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the protection scope of the present invention.

Claims

1. A visual recognition method for pointer-type instruments designed for polar outdoor environments, characterized in that, Includes the following steps: Step 1: Acquire raw images from polar outdoor instruments ; Step 2: Based on the original image from Step 1, four sub-networks are used for adaptive processing to address the four types of environmental disturbances unique to the polar regions. The four types of environmental interference include strong light reflection, ice and snow obstruction, lens frost, and low temperature noise. The four sub-networks include anti-reflection sub-network, anti-snow / anti-obstruction sub-network, anti-frost network, and low temperature noise reduction sub-network. First, the four sub-networks operate in parallel, each handling one type of interference; Secondly, a lightweight parametric prediction head is used to automatically analyze the original image and assign weights to the outputs of the four sub-networks; finally, the enhanced image is obtained by weighted summation. To achieve joint adaptive enhancement when multiple interferences exist simultaneously; Step 3, the enhanced image obtained in Step 2 Perform multi-scale feature extraction based on a classic detection network, extract discriminative multi-scale features from the enhanced image and locate the instrument panel region, and output the instrument panel bounding box B; By constructing a feature pyramid to obtain multi-scale feature maps of three different scales, adding a small target perception feature layer and introducing an attention gating mechanism, the watch face position can be accurately detected in complex backgrounds, and the watch face bounding box can be output. Step 4: Based on the dial bounding box B output in Step 3, the enhanced image obtained in Step 2... The dial area image is cropped out, and pointer key point detection and pose joint correction are performed on the dial area image to output the corrected pointer angle θ. Step 5: Based on the corrected pointer angle θ output in Step 4, perform reading mapping according to the preset instrument range and scale distribution, convert the corrected pointer angle into a specific reading, and output the instrument reading.

2. The visual recognition method for pointer-type instruments in polar outdoor environments according to claim 1, characterized in that, Step 1 specifically involves: Step 1.1, determine the image acquisition source; Step 1.2: Call the camera driver API to establish a data connection channel; Step 1.3: Acquire and temporarily store the original image; read one frame of the image at a set interval or as needed, adjust the resolution, and obtain the original image. .

3. The visual recognition method for pointer-type instruments in polar outdoor environments according to claim 2, characterized in that, Step 2 specifically involves: Step 2.1: In parallel, four sub-networks are invoked to process interference and generate four feature maps; Original image The input image is simultaneously fed into four parallel sub-networks. Each sub-network processes a specific polar-specific environmental disturbance and generates four feature maps: Feature Map 1, Feature Map 2, Feature Map 3, and Feature Map 4, as detailed below: De-reflection network is used to handle strong light reflections: Based on Retinex theory, the input image is decomposed into illumination and reflection components. The processing method is as follows: the illumination component L is nonlinearly compressed and then resynthesized with the reflection component R to obtain the de-reflected feature map. ; Snow removal / Occlusion removal subnetwork is used to handle snow and ice occlusion: a lightweight deep convolutional inpainting network is used to learn the mapping relationship from "snowy / occluded" images to "snowless / occluded" images during the training phase; During the inference phase, the input image is directly forward-propagated to perform content restoration on the ice-covered areas, and the restored feature map is output. ; The defrost sub-network is used to handle lens frost: it uses dark channel priors to estimate the concentration distribution of frost and fog in the input image, combines high-frequency information enhancement, performs edge sharpening and contrast restoration, and outputs feature map 3. ; The low-temperature noise reduction subnetwork is used to handle low-temperature noise: it embeds a learnable bilateral filter module and outputs a feature map. ; Step 2.2: Original Image The input image is fed into a lightweight parameter prediction head to calculate the adaptive fusion weights corresponding to the four types of environmental disturbances. First, the input image is fed into a lightweight parameter prediction head. The prediction head performs convolutional and fully connected layer calculations. The input image passes through convolutional and fully connected layers, and outputs four raw scores corresponding to the four types of environmental interference: the score corresponding to the de-photon network. The score corresponding to the desnow / de-occlusion subnetwork The score corresponding to the defrost subnetwork. The score corresponding to the low-temperature noise reduction subnetwork ; Then, using the Softmax formula to... Convert to first weight , Convert to first weight , Convert to third weight , Convert to fourth weight ,and + + + =1; Step 2.3, based on the first weight obtained in step 2.2 Second weight Third weight Fourth weight The enhanced image is obtained by weighted fusion of feature maps 1, 2, 3, and 4 from step 2.1; feature maps 1 to 4 output by the four sub-networks are multiplied by their corresponding weights and added element-wise to obtain the final enhanced image. : 。 4. The visual recognition method for pointer-type instruments in polar outdoor environments according to claim 3, characterized in that, Step 3 specifically involves: Step 3.1, Enhanced image based on step 2 Extract multi-scale feature maps; Will After scaling to a uniform size, multi-scale feature extraction based on a classic detection network is performed. Multi-scale feature maps of three scales are extracted through convolution and pooling operations, including shallow feature map F1, medium feature map F2, and deep feature map F3. From F1 to F3, the feature map resolution decreases layer by layer and the semantic level increases layer by layer. The three together constitute a multi-scale feature representation. Step 3.2: Based on the multi-scale feature map from Step 3.1, construct a small target perception feature layer; The deep feature map F3 is upsampled using bilinear interpolation to align its spatial dimensions with those of the mid-layer feature map F2. The upsampled F3 and F2 are then concatenated along the channel dimension, and a convolutional layer is used to reduce the number of channels to the same level as F2, resulting in a fused feature map. ; Step 3.3, based on the fused feature map from Step 3.2 An attention gating mechanism is introduced to calculate the spatial attention weight map; Apply a convolutional layer to reduce the number of channels to 1, and then... The activation function compresses the value at each spatial location to 0,1 The interval is used to obtain the spatial attention weight map. ; Step 3.4, Spatial attention weight map With fusion feature map Element-wise multiplication yields the final weighted multi-scale feature map. : Where ⊙ represents element-wise multiplication; Step 3.5, based on the weighted multi-scale feature map from Step 3.4 Combined with the shallow feature map F1, the dial bounding box B is output; Will Together with the shallow feature map F1, the data is fed into the detection head, and the detection head... At each spatial location, the existence of a dial and the coordinate offset of its bounding box are predicted; simultaneously, the shallow feature map F1 provides spatial detail information; after removing duplicate detections, the dial bounding box with the highest confidence is output as B=(x,y,w,h), where x, y) are the coordinates of the top left corner of the dial bounding box, and w and h are the width and height of the dial bounding box.

5. A visual recognition method for pointer-type instruments in polar outdoor environments according to claim 4, characterized in that, Step 4 specifically involves: The coordinate system in which the corrected dial is located is called the front view coordinate system. In the front view coordinate system, the dial plane is parallel to the imaging plane, the dial is a perfect circle, and the rotation angle of the pointer can be directly used for reading calculation. Step 4.1, based on the dial bounding box B from step 3, from the enhanced image Cropping out the dial area image This serves as the input for subsequent keypoint detection; Step 4.2, crop the dial area image from step 4.

1. Keypoint detection is performed using a lightweight keypoint regression network, which is designed as a multi-task output structure with two branches: a dial keypoint branch, which directly regresses the coordinates of three keypoints; The dial feature point branch regresses the coordinates of the dial feature points distributed on the dial circumference; The key point branch of the dial: The positions of three key points were detected: the center O of the dial. Pointer tip P Pointer tail Q ; The dial feature point branch: detects the coordinates of N dial feature points distributed on the circumference of the dial, and calculates the confidence score of each dial feature point; Step 4.3: Based on the confidence scores of the dial feature points obtained in Step 4.2, calculate the occlusion quality perception factor. Assess the severity of the current dial being obscured by ice and snow; in, The area of ​​the convex hull formed by all valid dial feature points with confidence scores higher than the threshold of 0.5; The reference convex hull area is the area of ​​the complete instrument panel, where the reference convex hull area is pre-calibrated; ) represents the variance of the confidence levels of the feature points on the dial. =0.7 is the occlusion ratio influence coefficient; γ=0.3 is the confidence level non-uniformity penalty coefficient; The physical meaning is: when the area of ​​the convex hull of the effective dial feature points is close to the area of ​​the complete dial and the confidence level of each point is uniformly distributed, A value close to 1 indicates slight occlusion; when the effective dial feature point area shrinks or the confidence level distribution is uneven, ... A decrease indicates severe occlusion; Step 4.4: Based on the valid dial feature points and their confidence scores selected in Step 4.3, and combined with the occlusion quality perception factor in Step 4.3, establish the objective function for weighted homography matrix estimation; the number of valid dial feature points after selection is denoted as M, where M≤N; By introducing confidence-weighted calculation and occlusion quality compensation, an improved objective function is obtained: in: =(x i ,y i ,1) T The homogeneous coordinates of the effective dial feature points in the image of the dial area to be corrected; =(x i ,y i ,1) T These correspond to the homogeneous coordinates of the target point in the front view coordinate system; The 3×3 homography matrix to be solved; Indicates in Among all possible values, find the solution that minimizes the objective function; , representing the comprehensive weight, which integrates the confidence level of effective dial feature points and the global occlusion degree, where The confidence scores for the dial feature points defined in step 4.2; The current projection residual of the i-th valid dial feature point; Represents the residual penalty function; Indicates the robust adjustment coefficient; Step 4.5: Solve the weighted homography matrix based on the objective function in Step 4.4, and perform temperature compensation correction. Solving the optimization problem yields the weighted homography matrix. Then, a temperature compensation correction term is introduced: in, This is the camera intrinsic parameter matrix calibrated at room temperature; K t This is the camera intrinsic parameter matrix at the current temperature; Step 4.6, based on the weighted homography matrix corrected by temperature compensation in Step 4.5 In step 4.2, the three key points detected by the dial key point branch are mapped to the front view coordinate system, and the corrected pointer angle is calculated. The three key points include the center O, the pointer tip P, and the pointer tail Q. The center O, pointer tip P, and pointer tail Q are then mapped to the front view coordinate system. Mapping to the front view coordinate system: Obtain the center of the circle in the coordinate system of the front view. pointer tip pointer tail ; Calculate the pointer direction vector The corrected pointer angle is obtained as follows: Among them, (y,x) It is a two-parameter arctangent function with a range of (-π, π).

6. The visual recognition method for pointer-type instruments in polar outdoor environments according to claim 5, characterized in that, In step 4.2: The confidence score of the dial feature points is defined as follows: in, ∈[0,1] represents the texture clarity of the neighborhood of the dial feature point; ∈[0,1] represents the edge intensity of the dial feature point; σ t =0.15 is the texture sensitivity adjustment parameter; =15 is the slope parameter of the edge strength Sigmoid curve; τ=0.3 is the edge strength threshold; =0.1 is the temperature influence coefficient; For the temperature-related noise model, specifically: in, The ambient temperature is in °C. This is the calibration temperature at room temperature, in °C. The lower limit of the sensor's nominal operating temperature; current ambient temperature. ≥ hour, =0, confidence level is not affected by temperature; current ambient temperature. hour, =1, confidence level reaches maximum penalty due to low temperature noise; current ambient temperature is between and In between, It increases linearly from 0 to 1 as the temperature decreases.

7. A visual recognition method for pointer-type instruments in polar outdoor environments according to claim 6, characterized in that, In step 4.5: Camera intrinsic parameter matrix calibrated at room temperature for: Camera intrinsic parameter matrix K at the current temperature t for: in, This indicates the focal length in the horizontal direction at room temperature. This indicates the focal length in the vertical direction at room temperature. and The principal point coordinates are the fixed hardware parameters of the lens.

8. A visual recognition method for pointer-type instruments in polar outdoor environments according to claim 6, characterized in that, In step 4.6, to ensure that the pointer angle changes monotonically, quadrant correction is performed based on the position of the pointer tail: if θ < 0, then θ θ+2π, and determine the pointer direction based on the position of Q' relative to O'; finally output the corrected pointer angle θ in degrees.

9. A visual recognition method for pointer-type instruments in polar outdoor environments according to claim 8, characterized in that, Step 5 specifically includes: Step 5.1, determine the instrument's measuring range and angular range: pre-calibrate the instrument's physical measuring range. , ] and its corresponding pointer angle range[ , For linear scale instruments, a linear mapping relationship is used; for non-linear scale instruments, a lookup table for angles to readings is pre-established. Step 5.2, based on the pointer angle in step 4 Based on the range and angle range in step 5.1, perform the angle-to-reading mapping conversion; For linear scale instruments, the linear mapping formula is used: Where V is the output reading; For non-linear scale instruments, the nearest neighbor scale value corresponding to θ is found in the lookup table, and the accurate reading is calculated by linear interpolation; Step 5.3: Based on the mapping results of step 5.2, output structured instrument readings.

10. A pointer-type instrument visual recognition system for polar outdoor environments, characterized in that, A pointer-type instrument visual recognition system for polar outdoor environments is adopted to implement the pointer-type instrument visual recognition method for any one of claims 1-9, comprising an image acquisition module, a combined interference adaptive preprocessing module, a multi-scale feature extraction module, a pointer key point detection and attitude joint correction module, and a reading mapping module; specifically: Image acquisition module: used to acquire raw images of the pointer-type instrument to be identified from the polar outdoor environment; Combined interference adaptive preprocessing module: connected to the image acquisition module, inputting the original image, adaptively processing it for the four types of environmental interference unique to the polar regions, outputting an enhanced image, and feeding it back to the multi-scale feature extraction module; Multi-scale feature extraction module: It connects to the combined interference adaptive preprocessing module, inputs the enhanced image, outputs the dial bounding box B=(x,y,w,h) with the highest confidence, and feeds it back to the pointer key point detection and pose joint correction module; Pointer key point detection and pose joint correction module: It connects to the combined interference adaptive preprocessing module and the multi-scale feature extraction module, inputs the enhanced image and the dial bounding box B, calculates and outputs the corrected pointer angle; the output result is fed back to the reading mapping module; Reading Mapping Module: Connects to the pointer key point detection and attitude joint correction module, inputs the corrected pointer angle, and outputs a structured instrument reading.

Citation Information

Patent Citations

  • Automatic identification method and system for pointer type instrument reading

    CN112560839A

  • Intelligent digital display method for pointer instrument based on GBS-YOLOv5s

    CN113343969A