A method, device and medium for preventing burns to infrared cameras
By using predictions based on spatiotemporal data and device attitude data, combined with the verification of the PTZ camera's trajectory and the wide-angle visible light camera, a hierarchical linkage protection system for infrared cameras was achieved. This solved the problems of insufficient warning time and misjudgment, ensuring the continuity and accuracy of the monitoring process.
Patent Information
- Application Number
- CN202611135803.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-29
- Publication Date
- 2026-11-17
AI Technical Summary
Outdoor infrared cameras are vulnerable to direct sunlight when monitoring flying objects. Existing protection measures lack sufficient warning time and cannot effectively distinguish between sunlight and other strong light interference, leading to misjudgment or untimely protection.
The sun's azimuth is calculated based on spatiotemporal data and device attitude data. The collision area between the infrared camera and the sun is predicted by combining the gimbal's running trajectory. The location image information of strong light is obtained by using a wide-angle visible light camera to verify the strong light target and output graded linkage anti-scalding commands.
It enables macroscopic early warning of solar threats, accurately identifies solar targets, actively avoids collision zones, ensures the continuity and accuracy of the monitoring process, and minimizes interference with the normal monitoring field of view.
Smart Images

Figure CN123123698A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of outdoor infrared monitoring equipment protection technology, specifically to a method, device, and medium for preventing infrared cameras from being burned. Background Technology
[0002] Infrared cameras operating outdoors are vulnerable to direct sunlight when monitoring flying objects and other similar scenarios. Traditional protection methods typically rely on image sensors to issue warnings when the sun enters the field of view. However, infrared cameras have a narrow field of view and extremely short warning times, often insufficient to take effective protective actions, resulting in irreversible damage to the photosensitive elements. Furthermore, existing mechanisms are prone to misjudgment due to cloud cover or interference from non-solar light sources (such as searchlights), causing the camera to take unnecessary evasive maneuvers and interrupting normal monitoring tasks. Summary of the Invention
[0003] One of the purposes of this application is to provide a method, device, storage medium and electronic device for preventing burns to infrared cameras, so as to solve the technical problems in the prior art of insufficient anti-burn warning time and inability to effectively distinguish between the sun and other strong light interference, resulting in misjudgment or untimely protection, and to achieve the technical effect of predicting collision risks in advance, accurately identifying solar targets and executing hierarchical linkage protection.
[0004] To solve the above-mentioned technical problems, the embodiments of the present invention are implemented as follows: Firstly, a method for preventing burns to an infrared camera is provided, comprising the following steps: Step S001: Obtain the sun's azimuth based on spatiotemporal data, and calculate the dynamic prediction during the danger period by combining it with equipment attitude data; Step S002: Based on the gimbal's operating trajectory and the dynamic prediction during the dangerous period, predict the collision area between the infrared camera and the sun to obtain the trajectory prediction; Step S003: Obtain the strong light position image information of the wide-angle visible light camera during the danger period, and perform strong light target verification based on the strong light position image information and dynamic prediction during the danger period; Step S004: Based on the strong light target verification results and combined with trajectory prediction, output graded linkage anti-burn commands.
[0005] The second aspect also discloses a device for preventing burns to infrared cameras, which includes: The hazard prediction module is used to obtain the sun's azimuth based on spatiotemporal data and calculate dynamic predictions for the hazard period by combining equipment attitude data. The collision prediction module is used to predict the collision area between the infrared camera and the sun based on the gimbal's operating trajectory and dynamic prediction during the dangerous period, and to obtain the trajectory prediction. The target verification module is used to acquire the strong light position image information of the wide-angle visible light camera during dangerous periods, and to perform strong light target verification by combining the strong light position image information with dynamic prediction during dangerous periods. The instruction execution module is used to output graded and linked anti-burn instructions based on the strong light target verification results and trajectory prediction.
[0006] According to a third aspect of this application, a computer-readable storage medium is provided, the storage medium storing a computer program that, when executed by a processor, implements the method described in the first aspect of this application.
[0007] According to a fourth aspect of this application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method described in the first aspect of this application.
[0008] The beneficial effects of the above-described technical solutions provided in the embodiments of the present invention include at least the following: This invention provides a method and apparatus for preventing burns to infrared cameras. First, it calculates the sun's position and dynamically predicts the danger period based on spatiotemporal data and device attitude data, achieving macroscopic early warning of solar threats and overcoming the deficiency of insufficient warning time when relying solely on image sensors to detect the sun. Next, by constructing a gimbal motion trajectory model and cross-referencing it with the sun's position, trajectory prediction is obtained. This proactively predicts and avoids collision areas, rather than passively triggering avoidance, thus ensuring the initiative and continuity of the monitoring process. Then, images are acquired using a wide-angle visible light camera and strong light target verification is performed. The predicted position calculated by astronomical calculations is compared with the actual captured strong light position, effectively eliminating interference from cloud cover or artificial strong light, ensuring the accuracy of threat identification. Finally, based on the verification results and trajectory prediction, a graded, linked anti-burn command is output. When a real solar threat is confirmed, graded actions, from adjusting the shutter speed to replanning the trajectory, are executed based on the spatial angle, protecting the infrared sensor while minimizing interference with the normal monitoring field of view. Therefore, the technical solution provided in this application, through the collaborative mechanism of spatiotemporal prediction, trajectory prediction, visual verification, and hierarchical linkage, not only effectively solves the problems of response lag and susceptibility to interference leading to false avoidance, but also achieves the optimal balance between equipment protection and monitoring continuity.
[0009] Other features and advantages of the invention will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the written description and the accompanying drawings.
[0010] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0011] Figure 1 A flowchart illustrating a method for preventing burns to an infrared camera, provided as an embodiment of the present invention; Figure 2 A flowchart for dynamic prediction during dangerous periods provided in an embodiment of the present invention; Figure 3 A flowchart for trajectory prediction provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of an infrared camera anti-burn device according to an embodiment of the present invention. Detailed Implementation
[0012] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0013] The embodiments of this application can be applied to supply chain management scenarios for various enterprises, especially those requiring the integration of multiple heterogeneous supply chain systems and intelligent demand matching and global optimization. For ease of understanding, key terms involved in this application are first explained. These explanations are only for illustrating their meaning in the context of this application and should not be construed as an undue narrowing of the scope of the claims.
[0014] Before describing the specific solutions, the key terms used in the claims will be explained: Dynamic prediction during hazardous periods: This refers to the prediction and determination of the time period corresponding to when the sun enters a potentially hazardous azimuth range relative to the principal optical axis of the infrared camera, based on solar azimuth and equipment attitude data. It is a dynamic time window prediction result.
[0015] Trajectory prediction: refers to the information obtained by analyzing the collision between the future trajectory of the gimbal and the spatial orientation of the sun, and the information about high-risk sections or specific collision locations in the predicted trajectory of the gimbal that may collide with the sun.
[0016] Strong light target verification: This refers to the process of comparing and verifying the location information of strong light actually captured by a wide-angle visible light camera with the information of the sun's position predicted based on astronomical calculations, in order to confirm the authenticity of the strong light target.
[0017] Two-dimensional offset angle: refers to the angular deviation of the direction of sunlight relative to the principal optical axis of the infrared camera in both the horizontal and vertical directions, calculated by combining the sun's azimuth information with the device's own attitude data.
[0018] Spatial angle: refers to the angle between the spatial pointing ray of the infrared camera's main optical axis carried by the gimbal and the spatial direction vector of the sun relative to the device at a certain future moment.
[0019] Centroid of a strong light target: refers to the geometric center pixel coordinates of the light spot of the strong light target, calculated from the oversaturated or high-brightness pixel region in an image captured by a wide-angle visible light camera using image processing algorithms.
[0020] Predicted solar pixel: refers to the theoretical imaging position coordinates of the sun obtained by mapping the solar spatial azimuth coordinates calculated based on spatiotemporal data onto the pixel plane of a wide-angle visible light camera through a camera imaging model.
[0021] Euclidean distance: refers to the straight-line distance between the centroid pixel coordinates of a bright target and the predicted pixel coordinates of the sun on the image pixel plane.
[0022] Tiered linkage: refers to a protection strategy that implements multiple levels of different response actions, ranging from slight adjustment to mandatory avoidance, based on the verification results of strong light targets and the urgency of solar threats (such as the size of the spatial angle D(t)).
[0023] Before describing the embodiments of the present invention in detail, the design concept of the present invention will be summarized below.
[0024] This invention provides a method for preventing burns to infrared cameras, the specific implementation of which is as follows. Figure 1 As shown, the core of this invention includes: First, calculating the sun's azimuth and dynamically predicting the danger period based on spatiotemporal data and equipment attitude data, achieving macroscopic early warning of solar threats and overcoming the deficiency of insufficient warning time when relying solely on image sensors to detect the sun. Next, by constructing a gimbal motion trajectory model and cross-comparing it with the sun's azimuth, trajectory prediction is obtained, enabling proactive prediction and avoidance of collision areas rather than passive triggering of avoidance, thus ensuring the initiative and continuity of the monitoring process. Then, images are acquired through a wide-angle visible light camera and strong light target verification is performed. The predicted position calculated by astronomical calculations is compared with the actual captured strong light position, effectively eliminating interference from cloud cover or artificial strong light, ensuring the accuracy of threat identification. Finally, based on the verification results and trajectory prediction, a graded linkage anti-scorch command is output. When a real solar threat is confirmed, graded actions from adjusting the shutter speed to trajectory replanning are executed based on the spatial angle, protecting the infrared sensor while minimizing interference with the normal monitoring field of view.
[0025] First embodiment: Please refer to the first aspect. Figure 1 A flowchart illustrating a method for preventing burns to infrared cameras is shown. Figure 1 As shown, the method includes steps S001 to S004.
[0026] Step S001: Obtain the sun's azimuth based on spatiotemporal data, and calculate the dynamic prediction during the danger period by combining it with equipment attitude data; Step S002: Based on the gimbal's operating trajectory and the dynamic prediction during the dangerous period, predict the collision area between the infrared camera and the sun to obtain the trajectory prediction; Step S003: Obtain the strong light position image information of the wide-angle visible light camera during the danger period, and perform strong light target verification based on the strong light position image information and dynamic prediction during the danger period; Step S004: Based on the strong light target verification results and combined with trajectory prediction, output graded linkage anti-burn commands.
[0027] In this embodiment, to address the problems of insufficient warning time and susceptibility to interference leading to false avoidance in existing technologies that rely solely on image sensors, this application constructs a closed-loop protection chain of prior prediction, trajectory prediction, visual verification, and graded response. First, step S001 accurately calculates the sun's azimuth using spatiotemporal data and correlates it with equipment attitude data, achieving dynamic prediction of potential danger windows caused by direct sunlight, providing a high-precision spatiotemporal reference for subsequent accurate assessment. Second, step S002 integrates the sun's azimuth with the future trajectory of the gimbal, using spatial geometric calculations to identify potential collision areas where the infrared camera and the sun might intersect—that is, trajectory prediction—thus elevating the timing of protective action from passive response to proactive prediction. Next, step S003 activates a wide-angle visible light camera during dangerous periods to acquire real images from the physical world, matching the position of the strong light target in the image with the theoretical sun's azimuth predicted in step S001 for verification. This step is crucial, effectively distinguishing between real direct sunlight and interference sources such as cloud and fog light, and artificial lighting from the perspective of actual visual perception. Finally, step S004 uses the quantitative results of the previous steps and trajectory prediction as dual criteria to determine whether to trigger and what level of protection command to trigger. This achieves a complete closed loop from information perception to decision execution, jointly solving the problems of delayed response and susceptibility to interference leading to false avoidance in existing technologies. It achieves the comprehensive effect of maximizing the continuity of monitoring tasks while protecting infrared photosensitive elements.
[0028] For example: Assume an infrared monitoring system deployed at an airport to monitor flying objects in the airspace above the runway, employing the method described in this application. Step S001 calculates the true altitude and azimuth of the sun at the current moment based on the airport's precise longitude, latitude, and current standard time. Simultaneously, step S001 reads the current horizontal azimuth and pitch angles of the gimbal, calculating the two-dimensional offset angle of the sun relative to the principal optical axis of the infrared camera. If this offset angle falls within a preset danger threshold, "dynamic prediction during danger" information is generated. Subsequently, step S002 intervenes, acquiring the current cruise path plan of the gimbal and modeling the future trajectory based on the gimbal's current angular velocity. By calculating the spatial angle between the future gimbal attitude and the sun's azimuth, step S002 analyzes that according to the current cruise plan, the principal optical axis of the infrared camera will sweep across the sun's location in a few minutes, thus outputting a clear "trajectory prediction" result, indicating a collision risk. Immediately following, step S003 is activated, and a coaxially mounted wide-angle visible light camera performs high-frequency image acquisition within the predicted danger azimuth range. The image processing algorithm identifies a bright spot and calculates its centroid coordinates. Simultaneously, step S003 projects the sun's azimuth calculated in step S001 onto the pixel plane of the wide-angle visible light camera using the camera's intrinsic parameter matrix, obtaining a theoretical prediction point. The Euclidean distance between the bright spot's centroid and the theoretical prediction point is calculated to determine if the spot is indeed the sun. Finally, step S004 receives a verification signal confirming it is the sun and the "collision trajectory prediction" from step S002, triggering a high-risk anti-scalding command. This causes the gimbal to accelerate its deflection, actively skipping the dangerous azimuth zone, thus protecting the expensive infrared sensor.
[0029] For further examples, please refer to... Figure 2Regarding step S001 mentioned above, step S001 achieves macro-scale early warning, solving the problem of identification when the sun is still outside the infrared field of view but is already in a potentially threatening position. This process starts with high-precision spatiotemporal data, first accurately deriving the solar declination angle and solar hour angle, representing the relative position of the sun and the earth, from longitude, latitude, and standard time. Next, based on the principles of spherical astronomy, these angles, along with the latitude of the device, are substituted into the astronomical spherical trigonometry formula to accurately calculate the sun's true altitude and azimuth angle in the local horizontal coordinate system at the current moment, achieving sensorless perception of the sun's spatial position. Finally, this step does not directly use the sun's absolute position, but rather correlates it with the real-time acquired device attitude data (i.e., the direction of the infrared camera's principal optical axis) to obtain the two-dimensional offset angle of the sun's rays relative to the principal optical axis. By setting an early warning margin threshold and determining whether this two-dimensional offset angle falls within its range, a dynamic "danger period" is ultimately defined. This mechanism transforms the real-time data stream of the two-dimensional offset angle into a time window prediction, providing an accurate time boundary for subsequent trajectory layer collision prediction and avoiding the enormous computing power overhead of searching for the sun in all weather and space.
[0030] This step S001 specifically includes: Step S011: Obtain the location information of the device, which includes longitude, latitude, and current standard time. Calculate the current solar declination angle and solar hour angle based on the location information.
[0031] Step S012: Calculate the true altitude and azimuth of the sun at the current moment using the astronomical spherical trigonometric formula based on the latitude, solar declination angle, and solar hour angle.
[0032] In one embodiment, the calculation of the aforementioned true solar altitude and azimuth angles specifically utilizes astronomical spherical trigonometry formulas:
[0033] Among them, Alt sun For the true elevation angle, Az sun φ is the azimuth angle. lat Let φ be the latitude, δ be the declination angle, and ω be the hour angle. This calculation is performed by a processor located within the gimbal device. First, the processor obtains real-time longitude, latitude, and precise UTC standard time via a built-in satellite positioning module, such as GPS or BeiDou. Because there is a time difference between true solar time and mean solar time, the processor needs to correct the standard time based on the date and longitude to obtain true solar time, and then calculate the hour angle ω. Simultaneously, δ is calculated using a date-declination angle lookup table or a simplified algorithm. Then, the processor sets the latitude φ... latSubstituting δ and ω into the first formula, since the solar altitude angle typically ranges between ±90 degrees, the true altitude angle (Alt) can be obtained by solving the arcsine function. sun Finally, φ lat δ and the calculated Alt sun Substitute into the second formula, and combine with the latitude φ lat True elevation angle Alt sun The sine and cosine values of the declination angle δ can be used to solve for the solar azimuth angle Az using the inverse cosine function. sun It should be noted that the angle obtained by using the arccosine is usually between 0 and 180°. The processor also needs to determine the actual quadrant of the azimuth angle based on the sign of the hour angle ω. Typically, in the morning when ω < 0, the azimuth angle is represented by Az. sun This indicates that the azimuth angle ω>0 in the afternoon is represented by 360°-Az. sun Furthermore, by employing the aforementioned astronomical spherical trigonometric formula, compared to using empirical formulas or lookup tables, it can provide high-precision solar positions over long periods and large areas. Moreover, the formula is rigorous, ensuring the reliability of the prediction results and providing a solid data foundation for all subsequent spatial mapping and collision calculations.
[0034] Step S013: Obtain the device attitude data and combine it with the actual elevation angle and azimuth angle to calculate the two-dimensional offset angle of the sun relative to the principal optical axis of the infrared camera. Based on the two-dimensional offset angle, determine the information of the dangerous period.
[0035] The example is as follows: First, longitude, latitude, and time constitute a unique spatiotemporal coordinate system, determining the sun's absolute position in the sky. The declination angle δ describes the seasonal variation of the sun's direct point, while the hour angle ω describes the sun's apparent diurnal motion from east to west throughout the day. Calculating these two parameters is fundamental to accurately locating the sun. Next, using the astronomical spherical trigonometry formula, the latitude φ... lat Using the solar declination angle δ and solar hour angle ω as inputs, the solar altitude angle Alt with the ground observation point as the origin is accurately solved. sun and azimuth angle Az sun This step transforms abstract spatiotemporal data into concrete celestial coordinates referenced to the horizon. Finally, the gimbal's own attitude data, i.e., its current orientation, is obtained, and the sun's horizon coordinates are converted into relative coordinates relative to the principal optical axis of the infrared camera, i.e., a two-dimensional offset angle. Specifically, the sun's horizon coordinates are obtained through astronomical algorithms. The camera's main optical axis direction is read in real time by the gimbal encoder. Next, the relative coordinates of the two coordinates are calculated to generate a two-dimensional relative offset angle. The difference between the two absolute coordinates is calculated on the horizontal (azimuth) and vertical (pitch) orthogonal axes: horizontal relative deflection angle. Vertical relative deflection angle The output two-dimensional offset angle at this time This refers to the relative coordinates of the sun with respect to the principal optical axis of the infrared camera. When At that time, it means the camera was facing the sun.
[0036] In this embodiment, a field of view (FOV) larger than that of the infrared lens is set. IR Warning sector threshold θ warn This method allows for the proactive and dynamic prediction of a danger zone in advance. As long as the sun's two-dimensional offset corner falls within this threshold range, it means the sun is approaching the edge of the infrared camera's field of view. The advantage of this approach is that it eliminates the need for time-consuming image scanning of the entire sky. Through low-cost mathematical calculations, it can macroscopically predict the spatial location and time window of the potential threat posed by the sun before it actually burns up the sensor. This provides valuable preparation time for subsequent precise perception and avoidance actions, solving the inherent problem of insufficient early warning time in traditional passive photosensitive detection.
[0037] For further examples, please refer to... Figure 3 Regarding step S002 mentioned above, the prediction of the collision area between the infrared camera and the sun based on the gimbal's operating trajectory and dynamic prediction during the dangerous period, and the resulting trajectory prediction, specifically includes: Step S021: Constructing a gimbal motion trajectory model and predicting the gimbal's attitude trajectory at future moments; Step S022: Cross-comparing the sun's azimuth with the gimbal's attitude trajectory to calculate the spatial angle; Step S023: Analyzing the spatial angle and the dynamic prediction during the dangerous period to obtain the collision trajectory azimuth, thus obtaining the trajectory prediction. This process combines static dangerous zone analysis with dynamic equipment motion prediction. The core of constructing the gimbal motion trajectory model lies in making a short-term prediction of the future spatial attitude of the gimbal based on the current gimbal motion mode, generating a virtual gimbal attitude trajectory. Cross-comparing this predicted trajectory with the already determined sun azimuth and calculating the spatial angle between the two at each future moment essentially transforms the potential encounter problem of "sun-camera" from a qualitative judgment into a quantitative spatial distance measurement on a continuous timeline. Based on the above principles, this method can overcome the lag of traditional solutions that can only issue an alarm when the sun has entered or is very close to the field of view. It enables advanced prediction of collision events and can calculate the shortest spatial distance and possible intersection time between the two in advance.
[0038] In one embodiment, the steps for constructing the gimbal motion trajectory model and predicting the gimbal attitude trajectory at future moments, as mentioned above, include: first, obtaining the current angular velocity vector of the gimbal and outputting the angular velocity vector. ; Construct a gimbal motion trajectory model. By modeling the gimbal's uniform motion at its current angular velocity, predict the gimbal's attitude at future moments using this motion trajectory model. This gimbal motion trajectory model is as follows:
[0039] Among them, t future For predicted future moments, Pan cam (t future ) represents the future moment t future The horizontal azimuth angle predicted by the time-to-time gimbal. cam (t future ) represents the future moment t future The pitch angle predicted by the gimbal, ω pan Let ω be the current horizontal rotational angular velocity of the gimbal. tilt This represents the current vertical pitch angular velocity of the gimbal. The prediction model is a simplified linear motion model. In the actual implementation, the processor calculates the angular velocities ω along both axes in real time by reading feedback data from the gimbal motor encoder. pan and ω tilt Assuming that the gimbal's motion commands or state do not change abruptly within an extremely short future time window, the angular velocity remains constant. Based on this, in the future t... future The gimbal attitude angle after a given moment is strictly equal to the current attitude angle plus the product of angular velocity and time. This prediction method has the advantages of low computational cost and fast response speed, making it very suitable for dangerous prediction scenarios with high real-time requirements. It should be noted that since actual gimbal movement may involve complex situations such as acceleration and deceleration, this model mainly provides a short-term, high-precision prediction method based on the current trend. Its beneficial effect is that, through simple linear extrapolation, the system can provide the basic data for future gimbal attitude trajectory for subsequent dynamic collision cross-comparison with extremely low computational overhead.
[0040] In one embodiment, the spatial angle is calculated by cross-comparing the solar azimuth with the gimbal attitude trajectory, as mentioned above. The formula for calculating the spatial angle is as follows:
[0041] in, Let t be the spatial angle between the principal optical axis ray of the gimbal and the direction of the sun. The azimuth angle of the sun in the absolute coordinate system of the device is given by... It was transformed. The elevation angle of the sun in the absolute coordinate system of the device is given by... This formula, derived from spherical trigonometry, precisely calculates the angle between two three-dimensional spatial direction vectors. It achieves high-precision angle quantization by unifying the predicted gimbal attitude and solar azimuth into the same reference coordinate system. This spatial angle... It is a core quantitative indicator for determining whether the sun has entered the camera's field of view and the degree of intrusion, providing a precise mathematical basis for subsequent threshold decisions in hierarchical linkage.
[0042] In a further embodiment, the spatial angle and the dynamic prediction analysis during the dangerous period are used to obtain the collision trajectory orientation, thereby obtaining trajectory prediction.
[0043] The example demonstrates how a time-space dual verification mechanism can be established to accurately pinpoint high-risk sections in the future movement path of the gimbal. The specific analysis process is as follows: Setting the safety warning angle threshold: The safety warning angle threshold is set based on the optical characteristics of the infrared lens. It is usually set as the sum of the infrared lens's half field of view and the system response and mechanical motion margin.
[0044] Dual temporal and spatial verification logic: Within the constructed predicted future time series, each discrete future moment is verified sequentially. Time dimension verification: Determine whether the predicted time falls within the "dangerous period" calculated in step S001. If it is not within this window, it is directly determined that there is no collision risk at that time. Spatial dimension verification: If the predicted time is within the dangerous period, then the spatial angle corresponding to that time calculated in step S022 is further retrieved to determine whether it is less than the safety warning angle threshold. If it is greater than or equal to the threshold, it indicates that there is still a sufficient safe distance.
[0045] Collision trajectory orientation extraction and trajectory prediction generation: The system determines the gimbal prediction attitude point at a given moment as a "high-risk collision point" if and only if both the predicted moment and the conditions of "being within a dangerous period" and "the spatial angle being less than the safety warning angle threshold" are met simultaneously. After traversing the entire prediction time series, the system extracts and continuously aggregates all high-risk collision points that meet the conditions to generate one or more "collision trajectory orientation" intervals.
[0046] The final trajectory prediction result includes at least the time interval of the expected collision, the horizontal azimuth and pitch angle intervals corresponding to the collision trajectory, and the shortest spatial angle and its corresponding time. Through the above-mentioned advanced prediction mechanism, the system can know the collision and intersection time in advance before the gimbal actually arrives at the dangerous position, thus reserving sufficient system response time for subsequent jump trajectory replanning or physical avoidance.
[0047] In a further embodiment, regarding the aforementioned step S003, step S003 includes: When entering the danger zone, high-frequency image information is acquired to identify the set of pixel coordinates of the strong light target and calculate its centroid. The solar danger azimuth coordinates are mapped onto the pixel plane of the auxiliary visible light camera through the camera intrinsic parameter matrix to obtain the predicted solar pixel point. The centroid of the strong light target is then calculated based on the predicted solar pixel point. The Euclidean distance between the centroid of the strong light target and the theoretically predicted point is calculated, and the strong light target is verified based on the Euclidean distance. This step is the bridge connecting the theoretical prediction world and the physical reality world. Identifying the centroid of the strong light target extracts a meaningful spatial location from a massive number of image pixels. Mapping the solar danger azimuth coordinates—calculated in step S001 and belonging to the three-dimensional world coordinate system—to the two-dimensional pixel plane through the camera intrinsic parameter matrix achieves the conversion from an astronomical perspective to a machine vision perspective. At this point, two points exist simultaneously on the image plane: one is the centroid of the strong light target actually "seen" by the algorithm, and the other is the theoretically predicted point of "where the sun should be seen." By calculating the Euclidean distance between these two points, the identity of the strong light target can be verified. Based on the above principles, this spatial coordinate mapping and verification method enables the anti-burn system to "distinguish between false and true light". Its beneficial effect is that it can accurately distinguish between dangerous direct sunlight and safe or non-lethal interference light such as artificial strong light and cloud diffused light, thus solving the problem of accidental avoidance immediately.
[0048] Specifically, in a preferred embodiment, the logic for verifying strong light targets based on Euclidean distance is as follows: if the Euclidean distance is less than a set pixel tolerance threshold, and the coordinates of the sun's azimuth match the coordinates of the strong light target, then the strong light target is determined to be the sun, and a confirmation signal is output; if the Euclidean distance is greater than or equal to the pixel tolerance threshold, then it is determined to be interference light, and a rejection signal is output. This judgment logic sets clear and quantifiable verification standards. Only when the measured position of the strong light in the image highly coincides with the position predicted by astronomical theory within the tolerance range is the target identified as the dangerous sun. This method effectively utilizes the strong constraint of spatial location, because the position of artificial light sources or cloud reflections is usually random and extremely difficult to coincide with the precisely calculated position of the sun's projected pixels. Using this strict dual-condition judgment can maximize the confidence in confirming the threat of direct sunlight and reduce the probability of false alarms caused by artificial light (such as searchlights, navigation lights, etc.).
[0049] In one embodiment, corresponding to step S004 above, the method outputs graded anti-scalding commands based on the strong light target verification result and trajectory prediction. The strong light target verification result of the previous level directly determines the "quality" of the command: if the output is a rejection signal, it means that the threat is a false alarm, and even if there is overlap in trajectory prediction, there is no need to perform avoidance, thus avoiding unnecessary monitoring interruption. If the output is a confirmation signal, it is considered a real direct solar threat. At this time, the result of trajectory prediction determines the "quantity" of the command, that is, the level of response. For example, when the spatial angle D(t) indicates that the sun is still outside the core field of view of the infrared camera, but the approach trend is obvious, a warning-level command can be output, only controlling the shutter speed or reducing the sensor gain to maintain continuous monitoring; when the spatial angle D(t) shows that the sun has entered or is about to enter the core field of view, and the trajectory prediction shows that the two paths will overlap, a high-risk command is directly output to control the gimbal to change its attitude or jump over the conflict area to implement hard avoidance. Based on the above principles, the beneficial effect of this hierarchical and interconnected instruction output mechanism is that it achieves a dynamic balance between the absolute safety requirement of "burn prevention" and the business requirement of "monitoring continuity," avoiding an overreaction of "one-size-fits-all" approach and realizing precise and flexible protection.
[0050] It should be noted that in some optional implementations, the specific execution details of the graded linkage command mentioned in step S004 can be further refined. As a preventative measure, the warning-level command can specifically shorten the electronic shutter time of the infrared camera to below a safe exposure threshold, or reduce the photosensitive gain, to prevent temporary blindness or chronic damage caused by excessively bright areas. At this time, the gimbal attitude remains unchanged to ensure that the center of the monitoring image is not lost. When a high-risk hard avoidance is triggered, the command execution module can directly modify the gimbal's cruise path point sequence, adopting a "skip-style" cruise mode to calculate and generate a new trajectory that bypasses the predicted dangerous solar azimuth range. If the current system is in a free state of manual control or no preset cruise, but the infrared main optical axis is pointing directly at the sun, the command can control the gimbal to deflect rapidly in the vertical or horizontal direction with the minimum safe deflection angle, so that the main optical axis is removed from the direct sunlight area. In addition, regarding the recovery mechanism after avoidance, when step S003 continuously monitors the disappearance of the strong light target in the wide-angle visible light camera or when D(t) calculated in step S002 increases back to above the safety threshold, the threat is determined to be eliminated. The instruction execution module can control the pan-tilt unit to reset to the original preset monitoring posture at a smooth rate and gradually restore the shutter time and gain of the infrared camera to normal, thus completing the entire closed-loop control of the burn prevention.
[0051] For example, the following is an illustration through a practical application scenario: For example, the following is an illustration through a practical application scenario: Assume an airport's intrusion prevention system is deployed in Beijing (north latitude). East longitude The infrared camera using this method monitors the airspace above the runway. At 14:30 on December 22nd (winter solstice), the system was performing a patrol scan.
[0052] 1. Step S001 Operation Process (Dynamic Prediction During Hazardous Periods): Spatiotemporal data acquisition and calculation: The system acquires the local latitude and longitude and the current time 14:30. The solar declination angle is calculated based on the date. The solar hour angle is calculated based on time and longitude. Substituting the values into the spherical trigonometry formula, the true solar altitude angle at the current moment can be calculated. True azimuth (Southwest direction).
[0053] Relative deflection angle and danger period determination: Read the current attitude of the gimbal as the horizontal azimuth angle. Pitch angle Calculate the two-dimensional offset angle: horizontal relative deflection angle. Vertical relative deflection angle Set the warning threshold to horizontal. ,vertical Because the offset corner falls within the threshold, the system determines that the sun has entered the "potentially dangerous azimuth range" and outputs the corresponding dynamic prediction time window for the dangerous period.
[0054] 2. Step S002 Operation Process (Track Prediction): Modeling the motion trajectory of the gimbal: Obtaining the current horizontal rotational angular velocity of the gimbal. Vertical pitch angular velocity Predicting the future through trajectory modeling The gimbal posture a few seconds later: .
[0055] Spatial angle calculation: The predicted gimbal attitude is compared with the azimuth in the solar absolute coordinate system ( Substitute the values into the formula to calculate the spatial angle between the gimbal's principal optical axis and the sun in the next 5 seconds. Calculations yielded .
[0056] Spatiotemporal dual verification and trajectory prediction generation: setting the infrared lens half field of view to... Warning safety angle threshold The system performs dual spatiotemporal verification: in the spatial dimension, the predicted... (Collision space constraints are satisfied); in the time dimension, the next 5 seconds (14:30:05) are still within the danger period determined in step S001. Since both spatiotemporal conditions are met, the system determines that a direct-line collision will occur in 5 seconds. The predicted orientation at that moment is... High-risk collision points are marked and "high-risk collision trajectory prediction" results are generated.
[0057] 3. Step S003 Operation Process (Strong Light Target Verification): Physical sensing and centroid extraction: Due to entering a dangerous period, the system activates the coaxial wide-angle visible light camera (field of view). A wide-angle camera captured images at high frequency in the predicted danger zone, detecting a bright spot. Image processing determined the centroid pixel coordinates of this bright target to be... .
[0058] Spatial mapping and distance calculation: The system will calculate the absolute coordinates of the sun in step S001. By mapping the intrinsic parameter matrix of the wide-angle camera onto the pixel plane, the theoretically predicted pixel value of the sun is obtained. .
[0059] Verification output: Calculate the Euclidean distance between the centroid and the theoretically predicted point: Pixels. Set the pixel tolerance threshold to 15 pixels. Because Since the orientation is consistent, the system determines that the bright light target is the real sun and outputs a "confirmation signal".
[0060] 4. Step S004 Operation Process (Graded Linkage Burn Prevention Command): The system receives the "confirmation signal" in step S003 and the "high-risk collision trajectory prediction" in step S002.
[0061] Soft adjustment: At the current moment (approximately 3-4 seconds before collision), Before approaching the core field of view, the system first outputs a "soft adjustment" command, forcibly shortening the electronic shutter of the infrared lens from the default 20ms to 0.5ms to prevent overexposure of strong light from damaging the sensor.
[0062] Hard avoidance and trajectory replanning: When spatial angle As the infrared half-field of view shrinks over time (approaching the core field of view), the system outputs a "hard avoidance and trajectory replanning" command. The original cruise path is directly abandoned. The scanning point controls the pan-tilt unit to tilt downwards rapidly. (become) Instantly avoid the direct sunlight.
[0063] Reset: 10 minutes later, the sun continued to set. Steps S001 and S002 calculated that the sun had left the danger zone of the equipment's cruise trajectory (the spatiotemporal dual verification was no longer satisfied). Step S003 no longer captured the corresponding strong light. The system output a reset command, the gimbal smoothly returned to its original pitch angle, the electronic shutter gradually returned to 20ms, and the original airspace monitoring was seamlessly restored.
[0064] This application also provides a device for preventing burns to infrared cameras, the device comprising: The hazard prediction module 10 is used to obtain the sun's azimuth based on spatiotemporal data and calculate the dynamic prediction during the hazard period by combining the equipment attitude data. The collision prediction module 20 is used to predict the collision area between the infrared camera and the sun based on the gimbal's running trajectory and dynamic prediction during the dangerous period, and obtain trajectory prediction. The target verification module 30 is used to acquire the strong light position image information of the wide-angle visible light camera during the danger period, and to perform strong light target verification based on the combination of the strong light position image information and dynamic prediction during the danger period. The instruction execution module 40 is used to output graded and linked anti-burn instructions based on the strong light target verification results and trajectory prediction.
[0065] It should be understood that the device embodiment and the method embodiment are based on the same inventive concept, and the implementation principle and beneficial effects of each module can be found in the method embodiment.
[0066] This application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the steps of the infrared camera burn prevention method as described in any of the above embodiments. This electronic device has the same technical effects as the corresponding method.
[0067] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the infrared camera burn prevention method as described in any of the above embodiments. This computer-readable storage medium has the same technical effects as the corresponding method.
[0068] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. This disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims. Thus, if these modifications and variations of the invention fall within the scope of the claims of the invention and their equivalents, the invention is also intended to include these modifications and variations.
Claims
1. A method for preventing burns to an infrared camera, characterized in that the steps include... include: Step S001: Obtain the sun's azimuth based on spatiotemporal data, and calculate the dynamic prediction during the danger period by combining it with equipment attitude data; Step S002: Based on the gimbal's operating trajectory and the dynamic prediction during the dangerous period, predict the collision area between the infrared camera and the sun to obtain the trajectory prediction; Step S003: Obtain the strong light position image information of the wide-angle visible light camera during the danger period, and perform strong light target verification based on the strong light position image information and dynamic prediction during the danger period; Step S004: Based on the strong light target verification results and combined with trajectory prediction, output graded linkage anti-burn commands.
2. The method for preventing burns to an infrared camera according to claim 1, characterized in that, Step S001 includes: The device's location information is obtained, including longitude, latitude, and current standard time. The current solar declination angle and solar hour angle are calculated based on the location information. Calculate the true altitude and azimuth of the sun at the current moment using the astronomical spherical trigonometry formula based on latitude, solar declination angle, and solar hour angle. By acquiring equipment attitude data and combining it with the actual elevation and azimuth angles, the two-dimensional offset angle of the sun relative to the principal optical axis of the infrared camera is calculated, and the dangerous period is determined based on the two-dimensional offset angle.
3. The method for preventing burns to an infrared camera according to claim 2, characterized in that, The formulas for calculating the true altitude and azimuth of the sun are as follows: ; in, This is the true elevation angle. It is the azimuth angle. Latitude For declination angle and It is the hour angle.
4. The method for preventing burns to an infrared camera according to claim 1, characterized in that, Step S002 includes: Construct a model of the gimbal's motion trajectory and predict the gimbal's attitude trajectory at future moments; The spatial angle is calculated by cross-comparing the sun's azimuth with the gimbal's attitude trajectory. The collision trajectory orientation is obtained by dynamically predicting and analyzing the spatial angle and the dangerous period, thus obtaining trajectory prediction.
5. The method for preventing burns to an infrared camera according to claim 4, characterized in that, To construct a model of the gimbal's motion trajectory and predict its attitude trajectory in future moments, the steps include: first, obtaining the current angular velocity vector of the gimbal and outputting the angular velocity vector... ; A gimbal motion trajectory model is constructed. By modeling the gimbal's uniform motion at its current angular velocity, the future gimbal attitude is predicted. The gimbal motion trajectory modeling includes: ; in, For predicted future moments, For the future The horizontal azimuth angle predicted by the time-to-gimbal camera. For the future The pitch angle predicted by the time-to-time gimbal. This represents the current horizontal rotational angular velocity of the gimbal. This represents the current vertical pitch rate of the gimbal.
6. The method for preventing burns to an infrared camera according to claim 4, characterized in that, The formula for calculating the spatial angle is: ; in, D ( t Let t be the spatial angle between the principal optical axis ray of the gimbal and the direction of the sun at a future time t. The azimuth angle of the sun in the absolute coordinate system of the device is given by... It was transformed. The elevation angle of the sun in the absolute coordinate system of the device is given by... It was converted from.
7. The method for preventing burns to an infrared camera according to claim 1, characterized in that, Step S003 includes: When entering the danger zone, high-frequency image information is acquired to identify the set of pixel coordinates of the strong light target and calculate the centroid of the strong light target. The coordinates of the dangerous position of the sun are mapped onto the pixel plane of the auxiliary visible light camera through the camera's intrinsic parameter matrix to obtain the predicted pixels of the sun. Then, the centroid of the strong light target is calculated based on the predicted pixels of the sun. The Euclidean distance is calculated between the centroid of the strong light target and the theoretically predicted point, and the strong light target is verified based on the Euclidean distance.
8. The method for preventing burns to an infrared camera according to claim 7, characterized in that, The method of verifying strong light targets based on Euclidean distance is as follows: if the Euclidean distance is less than the set pixel tolerance threshold, and the coordinates of the sun's azimuth are consistent with the coordinates of the strong light target, then the strong light target is determined to be the sun, and a confirmation signal is output; if the Euclidean distance is greater than or equal to the pixel tolerance threshold, then it is determined to be interference light, and a rejection signal is output.
9. A device for preventing burns to an infrared camera, characterized in that, include: The hazard prediction module is used to obtain the sun's azimuth based on spatiotemporal data and calculate dynamic predictions for the hazard period by combining equipment attitude data. The collision prediction module is used to predict the collision area between the infrared camera and the sun based on the gimbal's operating trajectory and dynamic prediction during the dangerous period, and to obtain the trajectory prediction. The target verification module is used to acquire the strong light position image information of the wide-angle visible light camera during dangerous periods, and to perform strong light target verification by combining the strong light position image information with dynamic prediction during dangerous periods. The instruction execution module is used to output graded and linked anti-burn instructions based on the strong light target verification results and trajectory prediction.
10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the method for preventing burns to an infrared camera as described in claims 1-8.
