Two-color infrared filter wheel imaging control method and related equipment thereof
By generating an external synchronization signal and establishing a correspondence between the edge and the band type, the filter wheel angle feedback data is obtained in real time, and alignment processing and position holding are performed. This solves the hard binding problem between the filter wheel's position and the exposure triggering sequence, and improves the synchronization accuracy and image quality of dual-color infrared imaging.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-31
- Publication Date
- 2026-03-31
AI Technical Summary
In existing mid-wave and full-wave dual-color switching infrared imaging systems, the position of the filter wheel and the exposure triggering sequence cannot be hard-binded, resulting in asynchronous switching and acquisition, and poor imaging stability, which is particularly prominent in high frame rate dual-color alternating acquisition scenarios.
By generating an external synchronization signal, a correspondence between the edge and the band type is established, real-time filter wheel angle feedback data is obtained, alignment processing is performed, a control pulse signal is generated to control the filter wheel to maintain at a preset angle position, and the infrared camera mechanism is triggered to perform exposure acquisition of the corresponding band.
It achieves high-sequence synchronization and stable control of filter switching and exposure acquisition, improving the synchronization accuracy and image quality of dual-color imaging.
Smart Images

Figure CN121762037A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of infrared thermal imaging recognition, and in particular to a dual-color infrared filter wheel imaging control method, device, electronic device and its storage medium. Background Technology
[0002] Infrared thermal imaging systems are widely used in target detection, surveillance and identification, and industrial temperature measurement. To take into account the radiation characteristics of targets at different temperatures and environmental adaptability, imaging modes with different bands, such as mid-wave and full-wave, are often used to acquire multi-spectral information. Existing mid-wave / full-wave dual-color switching infrared imaging schemes typically use a filter wheel to alternately insert different band filters in the optical path and acquire different band image frames on the same infrared sensor in a time-division manner, thereby forming a dual-color alternating image sequence.
[0003] Existing synchronous control of filter wheel switching and exposure acquisition mostly adopts open-loop or weak feedback methods: the filter wheel switching position has cumulative errors and uncertainty in positioning, making it difficult to ensure that the filter is accurately aligned with the optical axis every time; at the same time, the timing of filter wheel position switching and the timing of exposure triggering of the camera mechanism often depend on software scheduling or communication links, which have timing jitter and delay uncertainty, easily leading to exposure being triggered before the filter is fully in position, thus causing problems such as optical path offset, inter-frame asynchrony and image quality degradation, which are particularly prominent in high frame rate dual-color alternating acquisition scenarios.
[0004] Therefore, the existing dual-color filter wheel control method for mid-wave and full-wave dual-color switching infrared imaging has the problem that it is impossible to hard-bind the filter wheel position with the exposure triggering sequence, resulting in asynchronous switching and acquisition and poor imaging stability. Summary of the Invention
[0005] This invention provides a dual-color infrared filter wheel imaging control method to solve the problems of existing dual-color filter wheel control methods for mid-wave and full-wave dual-color switching infrared imaging, which cannot hard-bind the filter wheel position with the exposure triggering sequence, resulting in asynchronous switching and acquisition and poor imaging stability.
[0006] In a first aspect, the present invention provides a dual-color infrared filter wheel imaging control method, the method comprising the following steps: Once the initialization process is detected as complete, an external synchronization signal is generated. Based on the external synchronization signal, establish the correspondence between the edge of the external synchronization signal and the band type; Real-time acquisition of filter wheel angle feedback data; Based on the external synchronization signal and the angle feedback data, alignment processing is performed to determine the phase correspondence between the filter wheel angle and the edge of the external synchronization signal, and a control pulse signal is generated when the filter wheel reaches the preset angle position. The control pulse signal is the edge pulse of the external synchronization signal. Based on the control pulse signal, the filter wheel is controlled to maintain its position at a preset angle, and based on the correspondence between the edge of the external synchronization signal and the band type, the infrared camera is triggered to perform exposure acquisition of the corresponding band.
[0007] Optionally, generating an external synchronization signal after detecting the completion of the initialization process includes: Get the initialization completion flag; When the initialization completion indicator is set to initialization complete, an external synchronization signal is generated based on the timing reference corresponding to the crystal oscillator signal.
[0008] Optionally, establishing the correspondence between the edge of the external synchronization signal and the band type based on the external synchronization signal includes: The edge type of the external synchronization signal is determined, including rising edge type and falling edge type; Based on the rising edge type and falling edge type, the mapping relationship between the full wave type and the medium wave type is configured accordingly; Based on the mapping relationship, the detected edge type is determined as the corresponding band type.
[0009] Optionally, the step of performing alignment processing based on the external synchronization signal and the angle feedback data to determine the phase correspondence between the filter wheel angle and the edge of the external synchronization signal includes: Obtain the edge type of the external synchronization signal; When the external synchronization signal is detected as a rising edge, the target angle of the filter wheel is determined to be the first preset angle position so that the first filter cuts into the optical path; When the external synchronization signal is detected to be a falling edge, the target angle of the filter wheel is determined to be the second preset angle position so that the second filter cuts into the optical path; Based on the comparison between the angle feedback data and the target angle, it is determined whether the angle feedback data falls within a preset angle threshold range centered on the target angle; When the preset angle threshold range is met, the filter wheel is determined to have reached the target angle position and the alignment process is completed.
[0010] Optionally, generating a control pulse signal when the filter wheel reaches a preset angle position includes: Obtain the angle feedback data of the filter wheel; The angle feedback data is compared with the preset angle position to obtain the positioning determination result; When the positioning determination result indicates that the filter wheel has reached the preset angle position, a control pulse signal is generated.
[0011] Optionally, controlling the filter wheel to maintain its position at a preset angle based on the control pulse signal includes: Upon receiving the control pulse signal, it is determined that the filter wheel enters the position holding state; In the position-holding state, angle feedback data is continuously acquired; Based on the deviation data between the angle feedback data and the preset angle position, position holding control is performed so that the deviation meets the preset position holding threshold.
[0012] Optionally, the step of triggering the infrared camera to perform exposure acquisition in the corresponding band based on the correspondence between the edge of the external synchronization signal and the band type includes: Based on the correspondence between edge type and band type, the target band type is determined; Generate an exposure trigger command corresponding to the target band type, and send the exposure trigger command to the infrared camera module; The infrared sensor is controlled to perform exposure acquisition corresponding to the target band type according to the exposure trigger command, so as to obtain image frame data of the corresponding band.
[0013] Secondly, the present invention also provides a dual-color infrared filter wheel imaging control device, the dual-color infrared filter wheel imaging control device comprising: The first generation module is used to generate an external synchronization signal when the initialization process is detected to be complete. The first establishment module is used to establish the correspondence between the edge of the external synchronization signal and the band type based on the external synchronization signal; The first acquisition module is used to acquire the angle feedback data of the filter wheel in real time; The first processing module is used to perform alignment processing based on the external synchronization signal and the angle feedback data, determine the phase correspondence between the filter wheel angle and the edge of the external synchronization signal, and generate a control pulse signal when the filter wheel reaches the preset angle position; The first control module is used to control the filter wheel to maintain its position at a preset angle position based on the control pulse signal, and to trigger the infrared camera to perform exposure acquisition of the corresponding band based on the correspondence between the edge of the external synchronization signal and the band type.
[0014] Thirdly, the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps in the dual-color infrared filter wheel imaging control method provided by the present invention.
[0015] Fourthly, the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps in the dual-color infrared filter wheel imaging control method provided by the invention.
[0016] This invention generates an external synchronization signal upon detecting the completion of the initialization process; based on the external synchronization signal, it establishes a correspondence between the edge of the external synchronization signal and the band type; it acquires the angle feedback data of the filter wheel in real time; based on the external synchronization signal and the angle feedback data, it performs alignment processing to determine the phase correspondence between the filter wheel angle and the edge of the external synchronization signal, and generates a control pulse signal when the filter wheel reaches a preset angle position; based on the control pulse signal, it controls the filter wheel to maintain its position at the preset angle position, and triggers the infrared camera to perform exposure acquisition of the corresponding band based on the correspondence between the edge of the external synchronization signal and the band type. Through the above method steps, high-sequence synchronization and stable control of filter switching and exposure acquisition can be achieved, thereby improving the synchronization accuracy and image quality of dual-color imaging. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart of a dual-color infrared filter wheel imaging control method provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of an external synchronization signal provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of a dual-color filter wheel assembly structure provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of a dual-color imaging control process provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of a dual-color infrared filter wheel imaging control device provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] like Figure 1 As shown, Figure 1 This is a flowchart of a dual-color infrared filter wheel imaging control method provided in an embodiment of the present invention. The dual-color infrared filter wheel imaging control method includes the following steps: 101. Once the initialization process is detected to be complete, an external synchronization signal is generated.
[0021] In this embodiment of the invention, the above-mentioned dual-color infrared filter wheel imaging control method can be applied to a dual-color infrared filter wheel imaging control platform. The dual-color infrared filter wheel imaging control platform has functions such as optical path switching data processing, optical path switching data transmission and reception, and optical path switching data memory storage. It can be built based on a server or server cluster. The server or server cluster can be an electronic device with optical path switching data processing capability.
[0022] Before entering dual-color imaging, the aforementioned dual-color infrared filter wheel imaging control platform can perform an overall initialization process, including but not limited to ensuring that the filter wheel is in a controllable state, the angle feedback link is available, the trigger / synchronization link required for band switching has been established, and the infrared core is in a working state that can receive triggers and output image frames.
[0023] The aforementioned external synchronization signal can refer to the synchronization reference signal generated and output by the dual-color infrared filter wheel imaging control platform. It is used to unify the timing of filter wheel switching and infrared camera exposure acquisition in the time dimension. It can be understood as a periodic synchronization event sequence, and the edge of each occurrence is used to mark the timing node of a band switching / exposure trigger.
[0024] 102. Based on the external synchronization signal, establish the correspondence between the edge of the external synchronization signal and the band type.
[0025] In this embodiment of the invention, the aforementioned edge refers to the state transition event of the external synchronization signal, including rising edge and falling edge types; the band type refers to the spectral channel category used for infrared imaging, including mid-wave and full-wave.
[0026] The aforementioned dual-color infrared filter wheel imaging control platform can determine the current band type by identifying the edge type of the external synchronization signal during operation, thereby determining the filter to be inserted into the optical path and the exposure channel of the camera mechanism to be triggered.
[0027] The aforementioned correspondence refers to the mapping rule between the edge type and band type of the external synchronization signal. Specifically, it can be pre-configured so that one edge type corresponds to full wave and the other edge type corresponds to medium wave (or vice versa). The dual-color infrared filter wheel imaging control platform can convert the detected edge type into a determined band type according to this mapping rule.
[0028] In one possible embodiment, the aforementioned dual-color infrared filter wheel imaging control platform can perform edge recognition on the external synchronization signal after generating it, and pre-configure the mapping rules between edge type and band type, such as mapping the rising edge to the full-wave type and the falling edge to the mid-wave type (or vice versa). During operation, whenever the dual-color infrared filter wheel imaging control platform detects an edge event of the external synchronization signal, it determines the current target band type according to the aforementioned mapping rules, and uses the target band type as the unified basis for subsequent filter wheel target angle selection, positioning determination, and infrared core exposure triggering.
[0029] Through the above methods and steps, "synchronization edge events" can be stably converted into "band control semantics," avoiding ambiguity in band determination and mismatches introduced by software scheduling jitter, thereby improving the timing consistency of medium wave / full wave alternating acquisition and the accuracy of band marking in two-color image sequences.
[0030] 103. Real-time acquisition of the angle feedback data of the filter wheel.
[0031] In this embodiment of the invention, the aforementioned angle feedback data can be used to characterize the feedback information of the current angular position of the filter wheel. It can be obtained by identifying the angle signal through the aforementioned dual-color infrared filter wheel imaging control platform. It can be used as the feedback quantity for closed-loop control, enabling the aforementioned dual-color infrared filter wheel imaging control platform to perform alignment determination and position maintenance control based on the actual angular state, avoiding optical path offset caused by open-loop cumulative error. It is understood that the aforementioned angle feedback data can be an absolute angle, angular position code, or an equivalent angular state quantity, used to reflect whether the filter is in the target cutting position and the deviation from the target angle.
[0032] 104. Based on the external synchronization signal and angle feedback data, perform alignment processing to determine the phase correspondence between the filter wheel angle and the edge of the external synchronization signal, and generate a control pulse signal when the filter wheel reaches the preset angle position. The control pulse signal is the edge pulse of the external synchronization signal.
[0033] In this embodiment of the invention, the dual-color infrared filter wheel imaging control platform can, when the edge of the external synchronization signal arrives, combine angle feedback data to align and confirm whether the filter wheel has reached the target angle position, thereby completing the alignment process.
[0034] Specifically, the aforementioned dual-color infrared filter wheel imaging control platform can determine the target angle position based on the edge type and compare the angle feedback data with the target angle; when the angle feedback data meets the positioning conditions, the alignment is determined to be complete.
[0035] The above phase correspondence can be understood as the time alignment relationship between the filter wheel angle state and the edge event of the external synchronization signal. That is, at the moment the edge event occurs, or within the timing window corresponding to the edge event, the filter wheel should be at the target angle position corresponding to that edge.
[0036] The aforementioned preset angle positions can be understood as a set of target angle positions pre-set to ensure that the corresponding filter enters the optical path. Specifically, it may include a first preset angle position and a second preset angle position, which respectively correspond to the filter positions that should enter the optical path under two different wavelength types.
[0037] The aforementioned control pulse signal can refer to the trigger pulse signal generated when the filter wheel reaches the preset angle position, and the control pulse signal is defined as the edge pulse of the external synchronization signal, that is, its triggering time is consistent with the external synchronization edge event and is used to indicate that the edge has arrived and is in place.
[0038] In one possible embodiment, the aforementioned dual-color infrared filter wheel imaging control platform can, based on real-time acquisition of filter wheel angle feedback data, use an external synchronization signal as a timing reference. When the target edge of the external synchronization signal arrives, it reads the angle feedback data at the corresponding moment and compares the angle with the target angle position corresponding to the edge to complete the alignment determination. When the angle feedback data falls within a preset angle threshold range centered on the target angle, it is determined that the filter wheel and the edge of the external synchronization signal have established a phase correspondence. At the same time that the filter wheel reaches the preset angle position, a control pulse signal is generated, and the control pulse signal is defined as the edge pulse of the external synchronization signal to characterize the synchronization event of "edge arrival and position establishment".
[0039] By using the above methods and steps, the physical positioning state of the filter wheel can be hard-bound to the triggering of the external synchronization edge, avoiding cross-band and image blurring caused by exposure before the filter is in position, and improving the timing determinism, repeatability accuracy and stability of dual-color imaging during medium-wave / full-wave switching and exposure acquisition of the camera body.
[0040] 105. Based on the control pulse signal, the filter wheel is controlled to maintain its position at a preset angle, and based on the correspondence between the edge of the external synchronization signal and the band type, the infrared camera is triggered to perform exposure acquisition of the corresponding band.
[0041] In this embodiment of the invention, after the filter wheel reaches the preset angle position, the dual-color infrared filter wheel imaging control platform stabilizes the filter wheel angle in a controlled state near the target angle within the exposure-related timing window, thereby achieving the purpose of position maintenance.
[0042] It should be noted that the above position does not require the filter wheel to be completely stationary. The dual-color infrared filter wheel imaging control platform can continuously constrain and fine-tune the angle deviation based on the angle feedback data, so that the angle deviation is kept within the allowable range, thereby stabilizing the optical path alignment during exposure and acquisition, and reducing the impact of angle drift or disturbance on imaging consistency.
[0043] Upon receiving the trigger condition, the aforementioned infrared sensor performs exposure and readout of the corresponding band and outputs the corresponding band image frame data. The aforementioned dual-color infrared filter wheel imaging control platform can determine the target band type based on the correspondence between the edge and the band type, and trigger the sensor to complete the exposure acquisition of that band, forming a dual-color image sequence of alternating full-wave / mid-wave, providing band-marked image input for subsequent display, storage or algorithm processing.
[0044] In one possible embodiment, the aforementioned dual-color infrared filter wheel imaging control platform can, after generating a control pulse signal, use the control pulse signal as a position confirmation trigger event to cause the filter wheel to enter a position holding state. Within the exposure window, it continuously acquires angle feedback data and constrains and fine-tunes the angle deviation of the filter wheel so that the filter wheel meets a preset holding threshold condition near a preset angle position. Simultaneously, the aforementioned dual-color infrared filter wheel imaging control platform can determine the target band type based on the correspondence between the edge of the external synchronization signal and the band type, and trigger the infrared camera to perform exposure acquisition of the target band and output an image frame at the edge time corresponding to the aforementioned control pulse signal.
[0045] By using the above methods and steps, the optical path state of the filter aligned with the optical axis can be stabilized during exposure, and the alignment confirmation and band triggering can be unified into the same synchronous event, thereby improving the intra-frame sharpness, inter-frame consistency, and synchronization accuracy and imaging stability of the two-color image sequence in mid-wave / full-wave alternating acquisition.
[0046] In this embodiment of the invention, after the initialization process is detected to be complete, an external synchronization signal is generated; based on the external synchronization signal, a correspondence between the edge of the external synchronization signal and the band type is established; angle feedback data of the filter wheel is acquired in real time; alignment processing is performed based on the external synchronization signal and the angle feedback data to determine the phase correspondence between the filter wheel angle and the edge of the external synchronization signal, and a control pulse signal is generated when the filter wheel reaches a preset angle position; based on the control pulse signal, the filter wheel is controlled to maintain its position at the preset angle position, and based on the correspondence between the edge of the external synchronization signal and the band type, the infrared camera is triggered to perform exposure acquisition of the corresponding band. Through the above method steps, high-sequence synchronization and stable control of filter switching and exposure acquisition can be achieved, thereby improving the synchronization accuracy and image quality of dual-color imaging.
[0047] Optionally, in the step of generating an external synchronization signal after detecting that the initialization process is complete, an initialization completion flag can also be obtained; when the initialization completion flag is set to initialization complete, an external synchronization signal is generated based on the timing reference corresponding to the crystal oscillator signal.
[0048] In this embodiment of the invention, the dual-color infrared filter wheel imaging control platform can first obtain an initialization completion flag. The initialization completion flag is used to indicate that the platform has completed initialization actions such as startup self-test, filter wheel zero position confirmation, angle feedback link availability confirmation, and trigger link connection confirmation with infrared core. When the initialization completion marker is displayed, the dual-color infrared filter wheel imaging control platform generates an external synchronization signal based on the timing reference provided by the crystal oscillator signal. For example, the crystal oscillator signal is used as a timing reference to form a periodic external synchronization square wave, so that the external synchronization signal remains stable in frequency and phase and can be repeatedly identified.
[0049] By using the above methods and steps, we can avoid prematurely outputting the synchronization reference before initialization is complete or the system state is stable, which could lead to phase errors or incorrect triggering. At the same time, we can use the crystal oscillator timing reference to improve the stability and anti-jitter capability of the external synchronization signal, providing a reliable time reference for subsequent edge mapping, alignment processing and exposure triggering.
[0050] Optionally, the step of establishing the correspondence between the edge of the external synchronization signal and the band type based on the external synchronization signal further includes determining the edge type of the external synchronization signal; configuring the mapping relationship between the full wave type and the medium wave type based on the rising edge type and the falling edge type; and determining the detected edge type as the corresponding band type based on the mapping relationship.
[0051] In embodiments of the present invention, the aforementioned edge types can be used to characterize the state transition category of the external synchronization signal, including rising edge types and falling edge types, and can be achieved through methods such as... Figure 2The external synchronization signal diagram shown is used for illustration. The rising edge type represents the edge event when the external synchronization signal transitions from a low level to a high level, and the falling edge type represents the edge event when the external synchronization signal transitions from a high level to a low level. The full-wave filter corresponding to the rising edge type is the full-wave type configured accordingly. The origin of the edge type lies in the fact that the external synchronization signal is an identifiable periodic synchronization signal. The aforementioned dual-color infrared filter wheel imaging control platform can obtain timing nodes that can be used for triggering and judgment by identifying its edge events.
[0052] The above mapping relationship can be understood as a preset correspondence rule representing the relationship between edge type and band type. Specifically, it is a set of rules for configuring full wave type and medium wave type based on rising edge type and falling edge type, such as configuring "rising edge type corresponds to full wave type, falling edge type corresponds to medium wave type" or vice versa.
[0053] Generally, in two-color alternating imaging, different edge events can be assigned different band control semantics under the same synchronous beat, so as to coordinate the exposure of the filter wheel and the camera body in a consistent manner.
[0054] In one possible embodiment, after generating the external synchronization signal, the dual-color infrared filter wheel imaging control platform can perform edge identification on the external synchronization signal to determine the edge type (including rising edge type and falling edge type), and pre-configure the mapping relationship between the rising edge type and the falling edge type corresponding to the full-wave type and the medium-wave type, respectively. During operation, each time the dual-color infrared filter wheel imaging control platform detects the edge of the external synchronization signal, it determines the edge type as the corresponding band type based on the above mapping relationship, and uses the determined band type as the unified basis for subsequent filter wheel switching control and infrared core exposure triggering.
[0055] By using the above methods and steps, external synchronization edge events can be stably converted into explicit band control semantics, reducing band determination ambiguity and mismatch risks, thereby improving the timing consistency of medium wave / full wave alternating acquisition and the accuracy of band marking in two-color image sequences.
[0056] Optionally, in the step of performing alignment processing based on the external synchronization signal and angle feedback data to determine the phase correspondence between the filter wheel angle and the edge of the external synchronization signal, the method further includes obtaining the edge type of the external synchronization signal; when the external synchronization signal is detected as a rising edge, determining the target angle of the filter wheel as a first preset angle position so that the first filter enters the optical path; when the external synchronization signal is detected as a falling edge, determining the target angle of the filter wheel as a second preset angle position so that the second filter enters the optical path; comparing the angle feedback data with the target angle to determine whether the angle feedback data falls within a preset angle threshold range centered on the target angle; and when the preset angle threshold range is met, determining that the filter wheel has reached the target angle position and completing the alignment processing.
[0057] In embodiments of the present invention, it can be achieved through, as follows: Figure 3 The schematic diagram of the dual-color filter wheel assembly shown is used for explanation. The target angle mentioned above can refer to the desired angle reference determined by the dual-color infrared filter wheel imaging control platform after identifying the edge type of the external synchronization signal, so that the corresponding filter (first filter (2) or second filter (3)) on the filter wheel (1) is aligned with the optical axis. It can be determined by the fact that the two filters on the filter wheel (1) each correspond to an angle position of "cutting into the center of the optical path" geometrically. The platform needs to convert the external synchronization edge event into a comparable angle target. The purpose of the target angle is to provide a judgment benchmark for the angle feedback data output by the encoder (6), so that the dual-color infrared filter wheel imaging control platform can determine whether it is in position and whether it can enter the subsequent pulse triggering and exposure acquisition steps.
[0058] The aforementioned first preset angle position can refer to the preset angle position that the filter wheel (1) should reach when the first filter (2) needs to enter the optical path. When the dual-color infrared filter wheel imaging control platform detects that the external synchronization signal is a rising edge, it determines the target angle as the first preset angle position.
[0059] Specifically, the first preset angle position can be fixed in a specific window area of the filter wheel (1) according to the first filter (2). The window is aligned with the optical axis and corresponds to a calibrable and repeatable angle position, ensuring that the first filter (2) can stably align with the optical axis and enter the optical path each time the rising edge is triggered, thereby improving the repeatability of the frame in this band.
[0060] Similarly, the second preset angle position mentioned above can refer to the preset angle position that the filter wheel (1) should reach when the second filter (3) needs to enter the optical path. When the dual-color infrared filter wheel imaging control platform detects that the external synchronization signal is a falling edge, it determines the target angle as the second preset angle position.
[0061] Specifically, the second preset angle position can be fixed in another window area of the filter wheel (1) according to the second filter (3). The window is aligned with the optical axis and also corresponds to a calibrable and repeatable angle position, ensuring that the second filter (3) is stably aligned with the optical axis and enters the optical path each time the falling edge is triggered, thus ensuring the repeatability of switching of the other band channel.
[0062] The first and second filters mentioned above are filters used to configure full-wave or medium-wave light transmission.
[0063] In one possible embodiment, the dual-color infrared filter wheel imaging control platform compares the angle feedback data output by the encoder (6) with the target angle. Specifically, it may be to obtain the difference between the two and determine whether the difference meets the positioning condition. The angle feedback data represents the current actual angle of the filter wheel (1), while the target angle represents the expected angle that the current edge event should reach. The comparison between the two completes the positioning determination, so that "whether the actual state is aligned with the target" is transformed into a determinable positioning result, providing a basis for threshold interval judgment and positioning completion confirmation.
[0064] The aforementioned preset angle threshold range can refer to the allowable error range set with the target angle as the center. It is used to determine whether the angle feedback data can be regarded as "reaching the target angle position". It can generally be set according to the influence of mechanical tolerance, bracket (4) assembly deviation, brushless DC motor (5) running disturbance and encoder (6) sampling error during the rotation process of the filter wheel (1). It is understandable that the aforementioned preset angle threshold range can be used to suppress the positioning jitter and misjudgment caused by small angle fluctuations, ensure the stability of the filter cutting into the optical path, thereby improving the reliability of the alignment processing and the timing consistency of the two-color imaging.
[0065] Optionally, the step of generating a control pulse signal when the filter wheel reaches a preset angle position further includes acquiring angle feedback data of the filter wheel; comparing the angle feedback data with the preset angle position to obtain a positioning determination result; and generating a control pulse signal when the positioning determination result indicates that the filter wheel has reached the preset angle position.
[0066] In this embodiment of the invention, it is still based on as follows Figure 3To explain, the dual-color infrared filter wheel imaging control platform obtains the angle feedback data of the filter wheel (1) from the encoder (6); the angle feedback data is compared with the preset angle position to obtain the positioning determination result, wherein the preset angle position can be the first preset angle position or the second preset angle position, respectively corresponding to the target angle position when the filter wheel (1) cuts into the optical path with the first filter (2) or the second filter (3); when the positioning determination result indicates that the filter wheel (1) has reached the preset angle position, the dual-color infrared filter wheel imaging control platform generates a control pulse signal to indicate the trigger event of "positioning established", and serves as the timing basis for subsequent position holding and infrared core exposure triggering.
[0067] By using the above methods and steps, the generation of control pulses can be based on the confirmation of the encoder (6)'s position, avoiding false triggering caused by relying solely on timing or estimation, thereby improving the reliability of the filter entry optical path determination and the determinism of the dual-color imaging trigger timing.
[0068] Optionally, in the step of controlling the filter wheel to maintain its position at a preset angle position based on the control pulse signal, the method further includes determining that the filter wheel has entered a position holding state when the control pulse signal is received; continuously acquiring angle feedback data in the position holding state; and performing position holding control based on the deviation data between the angle feedback data and the preset angle position, so that the deviation meets the preset position holding threshold.
[0069] In this embodiment of the invention, the above-mentioned position holding state can be understood as follows: after the filter wheel reaches the preset angle position and generates a control pulse signal, the dual-color infrared filter wheel imaging control platform switches the filter wheel control mode to the "angle stable / deviation controlled" operating state, thereby avoiding the possibility of slight deviations due to mechanical disturbances, load fluctuations or control jitter in subsequent exposure windows.
[0070] The aforementioned deviation data may refer to the error information calculated by the dual-color infrared filter wheel imaging control platform based on the difference between the angle feedback data and the preset angle position. It is used to reflect the direction and magnitude of the deviation of the current actual angle of the filter wheel relative to the target angle.
[0071] The aforementioned preset position holding threshold can be used as an allowable error condition to determine whether the deviation data meets the holding requirements, and is used to limit the maximum allowable range or allowable interval of the deviation data. It can be set according to the error data of mechanical tolerance, sensor sampling error and operation disturbance in the actual system.
[0072] In one possible embodiment, when the dual-color infrared filter wheel imaging control platform receives a control pulse signal, it determines that the filter wheel has entered a position holding state; in the position holding state, the dual-color infrared filter wheel imaging control platform continuously acquires angle feedback data; and based on the deviation data between the angle feedback data and the preset angle position, it performs position holding control so that the deviation meets the preset position holding threshold.
[0073] By using the above methods and steps, the angle of the filter wheel can be continuously constrained and finely adjusted after the position is confirmed, reducing the angle drift and disturbance within the exposure window, thereby improving the stability of the filter alignment with the optical axis and the consistency of dual-color imaging.
[0074] Optionally, in the step of triggering the infrared camera to perform exposure acquisition of the corresponding band based on the correspondence between the edge of the external synchronization signal and the band type, the method further includes determining the target band type based on the correspondence between the edge type and the band type; generating an exposure trigger command corresponding to the target band type and sending the exposure trigger command to the infrared camera; controlling the infrared camera to perform exposure acquisition corresponding to the target band type according to the exposure trigger command, and obtaining image frame data of the corresponding band.
[0075] In this embodiment of the invention, the dual-color infrared filter wheel imaging control platform can determine the target band type based on the correspondence between edge type and band type; subsequently, the dual-color infrared filter wheel imaging control platform generates an exposure trigger command corresponding to the target band type and sends the exposure trigger command to the infrared camera module; after the infrared camera module receives the exposure trigger command, the dual-color infrared filter wheel imaging control platform controls the infrared camera module to perform exposure acquisition corresponding to the target band type according to the exposure trigger command, thereby obtaining image frame data of the corresponding band.
[0076] Through the above methods and steps, external synchronization edge events can be stably mapped into explicit band acquisition commands, and the infrared sensor can output image frame data in an orderly manner according to the target band. This improves the timing consistency of mid-wave / full-wave alternating acquisition and the accuracy of image frame band marking, and reduces imaging anomalies caused by mis-triggered or mis-band acquisition.
[0077] More specifically, it can be based on, for example Figure 4The schematic diagram of the dual-color imaging control process is shown below. After the aforementioned mid-wave / full-wave switchable dual-color infrared filter wheel platform based on closed-loop control starts, it first enters the initialization phase. The motor drive board completes self-initialization, and a reference clock is generated by a hardware crystal oscillator. Based on this, the motor drive board generates an external synchronization square wave signal as a unified timing reference for the entire process. Subsequently, the process is divided into two parallel synchronous links: "physical optical path switching" and "electronic imaging acquisition." In the physical optical path switching link, the motor drive board generates a motor drive control response and drives the filter wheel to rotate when the external synchronization edge arrives. Simultaneously, it acquires the motor encoder signal and feeds it back to the motor drive board. Based on encoder angle feedback, the filter wheel is rotated to the preset angle position required by the corresponding edge (e.g., rising edge corresponds to the first preset angle position, falling edge corresponds to the second preset angle position), thereby completing the physical switching of the corresponding filter entering the optical path; in the electronic imaging acquisition link, the infrared core synchronously responds to the external synchronization signal and completes the edge-band type correspondence determination with the motor drive board. When the corresponding edge is detected and the filter wheel is in position, the infrared core is triggered to perform exposure acquisition in the corresponding band, completing the electronic image acquisition; when both physical switching and electronic acquisition are completed, one "dual-band imaging cycle" is completed, and the next cycle begins when the next external synchronization edge arrives.
[0078] The above method can ensure the stability of the external synchronization cycle by using a crystal oscillator reference clock, realize the closed-loop confirmation of the filter wheel's position by using encoder angle feedback, and unify the binding of "edge event - position status - exposure trigger", thereby reducing the timing jitter introduced by software scheduling and link delay, avoiding crossband and imaging blur problems caused by exposure before the filter is in position, and improving the timing determinism, repeatability accuracy and stability of dual-color imaging in alternating acquisition of medium wave / full wave.
[0079] like Figure 5 As shown, this embodiment of the invention also provides a dual-color infrared filter wheel imaging control device 500, which includes: The first generation module 501 is used to generate an external synchronization signal after detecting that the initialization process is complete; The first establishment module 502 is used to establish the correspondence between the edge of the external synchronization signal and the band type based on the external synchronization signal; The first acquisition module 503 is used to acquire the angle feedback data of the filter wheel in real time. The first processing module 504 is used to perform alignment processing based on the external synchronization signal and the angle feedback data, determine the phase correspondence between the filter wheel angle and the edge of the external synchronization signal, and generate a control pulse signal when the filter wheel reaches the preset angle position. The first control module 505 is used to control the filter wheel to maintain its position at a preset angle position based on the control pulse signal, and to trigger the infrared camera to perform exposure acquisition of the corresponding band based on the correspondence between the edge of the external synchronization signal and the band type.
[0080] Optionally, the first generation module 501 mentioned above includes: The first generation submodule is used to obtain the initialization completion flag; The second generation submodule is used to generate an external synchronization signal based on the timing reference corresponding to the crystal oscillator signal when the initialization completion flag is set to initialization completion.
[0081] Optionally, the first establishment module 502 mentioned above includes: The first establishment submodule is used to determine the edge type of the external synchronization signal, wherein the edge type includes rising edge type and falling edge type; The second submodule is used to configure the mapping relationship between the full-wave type and the medium-wave type based on the rising edge type and the falling edge type. The third submodule is used to determine the detected edge type as the corresponding band type based on the mapping relationship.
[0082] Optionally, the first acquisition module 503 mentioned above includes: The first acquisition submodule is used to acquire the edge type of the external synchronization signal; The second acquisition submodule is used to determine the target angle of the filter wheel as a first preset angle position when the external synchronization signal is detected as a rising edge, so that the first filter cuts into the optical path; The third acquisition submodule is used to determine the target angle of the filter wheel as the second preset angle position when the external synchronization signal is detected to be a falling edge, so that the second filter can cut into the optical path; The fourth acquisition submodule is used to compare the angle feedback data with the target angle to determine whether the angle feedback data falls within a preset angle threshold range centered on the target angle. The fifth acquisition submodule is used to determine the target angle position of the filter wheel and complete the alignment process when the preset angle threshold range is met.
[0083] Optionally, the first processing module 504 mentioned above includes: The first processing submodule is used to acquire the angle feedback data of the filter wheel; The second processing submodule is used to compare the angle feedback data with the preset angle position to obtain the positioning determination result; The third processing submodule is used to generate a control pulse signal when the positioning determination result is that the filter wheel has reached the preset angle position.
[0084] Optionally, the first control module 505 mentioned above further includes: The first control submodule is used to determine that the filter wheel enters the position holding state when the control pulse signal is received; The second control submodule is used to continuously acquire angle feedback data in the position holding state; The third control submodule is used to perform position holding control based on the deviation data between the angle feedback data and the preset angle position, so that the deviation meets the preset position holding threshold.
[0085] Optionally, the first control module 505 mentioned above includes: The fourth control submodule is used to determine the target band type based on the correspondence between the edge type and the band type; The fifth control submodule is used to generate an exposure trigger command corresponding to the target band type and send the exposure trigger command to the infrared camera module; The sixth control submodule is used to control the infrared sensor to perform exposure acquisition corresponding to the target band type according to the exposure trigger command, so as to obtain image frame data of the corresponding band.
[0086] like Figure 6 As shown, this embodiment of the invention also provides an electronic device 600, including a processor, which can execute any of the above-described dual-color infrared filter wheel imaging control methods.
[0087] Specifically, it includes a processor 601 and a memory 602, as well as a computer program stored in the memory 602 and capable of running on the processor 601, which executes the dual-color infrared filter wheel imaging control method, wherein: The processor 601 executes the calculator program for the dual-color infrared filter wheel imaging control method stored in the memory 602, and performs the following steps: Once the initialization process is detected as complete, an external synchronization signal is generated. Based on the external synchronization signal, establish the correspondence between the edge of the external synchronization signal and the band type; Real-time acquisition of filter wheel angle feedback data; Based on the external synchronization signal and the angle feedback data, alignment processing is performed to determine the phase correspondence between the filter wheel angle and the edge of the external synchronization signal, and a control pulse signal is generated when the filter wheel reaches the preset angle position. The control pulse signal is the edge pulse of the external synchronization signal. Based on the control pulse signal, the filter wheel is controlled to maintain its position at a preset angle, and based on the correspondence between the edge of the external synchronization signal and the band type, the infrared camera is triggered to perform exposure acquisition of the corresponding band.
[0088] Optionally, the processor 601 executes the step of generating an external synchronization signal after detecting the completion of the initialization process, including: Get the initialization completion flag; When the initialization completion indicator is set to initialization complete, an external synchronization signal is generated based on the timing reference corresponding to the crystal oscillator signal.
[0089] Optionally, the processor 601 executes the step of establishing the correspondence between the edge of the external synchronization signal and the band type based on the external synchronization signal, including: The edge type of the external synchronization signal is determined, including rising edge type and falling edge type; Based on the rising edge type and falling edge type, the mapping relationship between the full wave type and the medium wave type is configured accordingly; Based on the mapping relationship, the detected edge type is determined as the corresponding band type.
[0090] Optionally, the processor 601 performs the alignment processing based on the external synchronization signal and the angle feedback data to determine the phase correspondence between the filter wheel angle and the edge of the external synchronization signal, including: Obtain the edge type of the external synchronization signal; When the external synchronization signal is detected as a rising edge, the target angle of the filter wheel is determined to be the first preset angle position so that the first filter cuts into the optical path; When the external synchronization signal is detected to be a falling edge, the target angle of the filter wheel is determined to be the second preset angle position so that the second filter cuts into the optical path; Based on the comparison between the angle feedback data and the target angle, it is determined whether the angle feedback data falls within a preset angle threshold range centered on the target angle; When the preset angle threshold range is met, the filter wheel is determined to have reached the target angle position and the alignment process is completed.
[0091] Optionally, the processor 601 executes the step of generating a control pulse signal when the filter wheel reaches a preset angle position, including: Obtain the angle feedback data of the filter wheel; The angle feedback data is compared with the preset angle position to obtain the positioning determination result; When the positioning determination result indicates that the filter wheel has reached the preset angle position, a control pulse signal is generated.
[0092] Optionally, the processor 601 executes the control pulse signal-based control of the filter wheel to maintain its position at a preset angle, including: Upon receiving the control pulse signal, it is determined that the filter wheel enters the position holding state; In the position-holding state, angle feedback data is continuously acquired; Based on the deviation data between the angle feedback data and the preset angle position, position holding control is performed so that the deviation meets the preset position holding threshold.
[0093] Optionally, the processor 601 executes the correspondence between the edge and band type based on the external synchronization signal, triggering the infrared camera to perform exposure acquisition in the corresponding band, including: Based on the correspondence between edge type and band type, the target band type is determined; Generate an exposure trigger command corresponding to the target band type, and send the exposure trigger command to the infrared camera module; The infrared sensor is controlled to perform exposure acquisition corresponding to the target band type according to the exposure trigger command, so as to obtain image frame data of the corresponding band.
[0094] This invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the dual-color infrared filter wheel imaging control method or the application-side dual-color infrared filter wheel imaging control method provided in this invention, and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0095] Those skilled in the art will understand that implementing all or part of the processes in the above embodiments can be done by a computer program instructing related hardware, and can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0096] The above description discloses only preferred embodiments of the present invention and should not be construed as limiting the scope of the present invention. Therefore, equivalent variations made in accordance with the claims of the present invention are still within the scope of the present invention.
Claims
1. A method for controlling imaging of a two-color infrared filter wheel, characterized by, The method comprises the steps of: generating an external synchronization signal when detecting that the initialization process is completed; establishing a corresponding relationship between the edge of the external synchronization signal and the waveband type based on the external synchronization signal; obtaining angle feedback data of the filter wheel in real time; performing alignment processing based on the external synchronization signal and the angle feedback data, determining the phase corresponding relationship between the filter wheel angle and the edge of the external synchronization signal, and generating a control pulse signal when the filter wheel reaches a preset angle position, the control pulse signal being an edge pulse of the external synchronization signal; controlling the filter wheel to perform position holding at the preset angle position based on the control pulse signal, and triggering the infrared movement to perform exposure collection of the corresponding waveband based on the corresponding relationship between the edge of the external synchronization signal and the waveband type.
2. The dual-color infrared filter wheel imaging control method of claim 1, wherein, The method comprises the steps of: obtaining an initialization completion identifier; generating an external synchronization signal based on a timing reference corresponding to a crystal oscillator signal when the initialization completion identifier indicates that the initialization is completed.
3. The dual-color infrared filter wheel imaging control method of claim 1, wherein, The method comprises the steps of: determining the edge type of the external synchronization signal, the edge type including a rising edge type and a falling edge type; correspondingly configuring a mapping relationship of the full wave type and the medium wave type based on the rising edge type and the falling edge type; determining the detected edge type as the corresponding waveband type based on the mapping relationship.
4. The dual-color infrared filter wheel imaging control method of claim 1, wherein, The method comprises the steps of: obtaining the edge type of the external synchronization signal; determining a target angle of the filter wheel as a first preset angle position to make a first filter cut into the light path when detecting that the external synchronization signal is a rising edge; determining a target angle of the filter wheel as a second preset angle position to make a second filter cut into the light path when detecting that the external synchronization signal is a falling edge; comparing the angle feedback data with the target angle to determine whether the angle feedback data falls within a preset angle threshold interval centered on the target angle; determining that the filter wheel reaches the target angle position and completes the alignment processing when the preset angle threshold interval is met.
5. The dual-color infrared filter wheel imaging control method of claim 1, wherein, The method comprises the steps of: obtaining angle feedback data of the filter wheel; comparing the angle feedback data with the preset angle position to obtain a positioning determination result; generating a control pulse signal when the positioning determination result indicates that the filter wheel reaches the preset angle position.
6. The dual-color infrared filter wheel imaging control method of claim 1, wherein, The method comprises the steps of: determining that the filter wheel enters a position holding state when the control pulse signal is received; continuously obtaining angle feedback data in the position holding state; performing position holding control based on the deviation data between the angle feedback data and the preset angle position, so that the deviation meets a preset position holding threshold.
7. The dual-color infrared filter wheel imaging control method of claim 1, wherein, The correspondence between the edge of the external synchronization signal and the waveband type triggers the infrared movement to perform exposure collection of the corresponding waveband, including: Based on the correspondence between the edge type and the waveband type, determine the target waveband type; Generate an exposure trigger instruction corresponding to the target waveband type, and send the exposure trigger instruction to the infrared movement; Control the infrared movement to perform exposure collection of the target waveband type according to the exposure trigger instruction to obtain image frame data of the corresponding waveband.
8. A dual color infrared filter wheel imaging control apparatus, characterized by, It includes: The first generation module is used for generating an external synchronization signal when it is detected that the initialization process is completed; The first establishment module is used for establishing the correspondence between the edge of the external synchronization signal and the waveband type based on the external synchronization signal; The first acquisition module is used for acquiring angle feedback data of the light filter wheel in real time; The first processing module is used for performing alignment processing based on the external synchronization signal and the angle feedback data, determining the phase correspondence between the light filter wheel angle and the external synchronization signal edge, and generating a control pulse signal when the light filter wheel reaches a preset angle position; The first control module is used for controlling the light filter wheel to perform position holding at the preset angle position based on the control pulse signal, and triggering the infrared movement to perform exposure collection of the corresponding waveband based on the correspondence between the edge of the external synchronization signal and the waveband type.
9. An electronic device, comprising: It includes: The memory, the processor and the computer program stored on the memory and executable on the processor, when the processor executes the computer program, the steps in the dual-color infrared light filter wheel imaging control method of any one of claims 1 to 7 are realized.
10. A computer-readable storage medium, characterized in that, The computer program is stored on the computer readable storage medium, and when the processor executes the computer program, the steps in the dual-color infrared light filter wheel imaging control method of any one of claims 1 to 7 are realized.
Citation Information
Patent Citations
Filter wheel control method and system of medium-wave two-color switching infrared thermal imaging system
CN116841035A