Infrared imaging device and method, electronic equipment and storage medium

By designing an infrared imaging device that integrates the main control module, infrared detector module, motor drive module and motor, the problem of many components and difficult debugging in traditional infrared thermal imaging technology is solved, and efficient and low-cost infrared image clarity is achieved.

CN119845426APending Publication Date: 2025-04-18CHINA SOUTHERN POWER GRID COMPANY
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411763208.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

In traditional infrared thermal imaging technology, there are many components, which are difficult to debug and high cost development, which is not conducive to industrial mass production.

Method used

An infrared imaging device is designed, including a main control module, an infrared detector module, a motor drive module and a motor. The motor drive module drives the motor motion through the main control module to focus the infrared lens, and the clarity evaluation factor of the starting point, end point and intermediate point of the motor is calculated through the preset image clarity algorithm, and the position with the smallest clarity evaluation factor and its interval are discarded until the clarity factor meets the preset conditions.

Benefits of technology

By simplifying component configuration and optimizing the combination of motor control and image clarity calculation, debugging difficulty is reduced, production efficiency is improved, and high-quality infrared image clarity is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119845426A_ABST
    Figure CN119845426A_ABST
Patent Text Reader

Abstract

The invention discloses an infrared imaging device and method, electronic equipment and a storage medium. The device comprises a main control module, an infrared detector module, a motor driving module and a motor, the infrared detector module receives an infrared signal filtered by the infrared lens, converts the infrared signal into a digital signal and outputs the digital signal to the main control module; the main control module performs zeroing on the motor, a zeroing corresponding point serves as a starting point, the maximum stroke of the motor serves as an ending point, and the center position of the starting point and the ending point serves as a middle point; respectively calculating definition evaluation factors of the starting point, the ending point and the middle point according to a preset image definition algorithm; after calculation is completed, the position with the minimum definition evaluation factor and the interval where the position is located are abandoned, and the remaining interval serves as the starting point and the ending point of next definition calculation till the definition factor meets the preset condition or the distance between the starting point and the ending point reaches the minimum stepping distance of the motor. The optimal infrared image definition is obtained through combination of the motor and calculation of the image definition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of infrared thermal imaging technology, and in particular to an infrared imaging device, method, electronic equipment and storage medium. Background Art

[0002] Infrared thermal imaging technology uses the characteristic of physics emitting infrared rays above absolute zero to convert infrared heat signals into image signals to visualize the temperature of objects. Infrared thermal images reflect the thermal information of objects and have important reference value for determining the state characteristics of objects. Infrared thermal imaging is widely used in industrial fields such as the power industry, gas detection industry and chemical industry. It is particularly important to obtain stable and clear infrared images in real time.

[0003] Traditional infrared thermal imaging technology usually adopts FPGA solution, using uncooled infrared detectors for data collection, and FPGA is responsible for image processing and adaptive focus adjustment. FPGA processes infrared data and transmits it to the host computer, which stores, displays and reprocesses the data. This method has a relatively complex process, involves many components, is difficult to debug, and has high development costs, which is not conducive to industrial mass production. Summary of the invention

[0004] The present invention provides an infrared imaging device, method, electronic equipment and storage medium to solve the problems of many components and great debugging difficulty existing in traditional infrared thermal imaging technology.

[0005] According to one aspect of the present invention, there is provided an infrared imaging device, comprising: a main control module, an infrared detector module, a motor drive module and a motor;

[0006] The infrared detector module is used to receive the infrared signal filtered by the infrared lens, and convert the infrared signal into a digital signal and then output it to the main control module;

[0007] The main control module is used to control the motor driving module to drive the motor to move, so as to focus the infrared lens;

[0008] The main control module is used to zero the motor, take the zeroing corresponding point as the starting point, take the maximum stroke of the motor as the end point, and the center position of the two as the middle point; calculate the clarity evaluation factors of the starting point, the end point, and the middle point respectively according to the preset image clarity algorithm; after the calculation, discard the position with the smallest clarity evaluation factor and the interval in which it is located, and use the remaining interval as the starting point and end point of the next clarity calculation, until the clarity factor meets the preset conditions, or the distance between the starting point and the end point reaches the minimum step distance of the motor.

[0009] Optionally, a temperature detection module is further included, which is connected to the main control module and is used to obtain ambient temperature information and perform analog-to-digital conversion.

[0010] According to another aspect of the present invention, an infrared imaging method is provided, characterized in that the infrared imaging device according to any embodiment of the present invention is used, and the infrared imaging method comprises:

[0011] Turn on the infrared imaging device and adjust the motor to zero;

[0012] The zero adjustment corresponding point is taken as the starting point, the maximum stroke of the motor is taken as the end point, and the center position of the two is taken as the middle point;

[0013] Calculate the clarity evaluation factors of the starting point, the end point, and the middle point respectively according to the preset image clarity algorithm;

[0014] After the calculation, the position with the smallest clarity evaluation factor and its interval are discarded, and the remaining interval is used as the starting point and end point of the next clarity calculation, until the clarity factor meets the preset conditions, or the distance between the starting point and the end point reaches the minimum step distance of the motor.

[0015] Optionally, the clarity evaluation factors of the starting point, the end point, and the middle point are calculated respectively according to a preset image clarity algorithm, including:

[0016] Get the 16-bit original grayscale value data of the image data;

[0017] Calculate the gradient value of each pixel in the horizontal and vertical directions respectively;

[0018] The gradient energy sum of the image is determined according to the gradient value, thereby determining the square sum of the gradient energy of the entire image, and the clarity evaluation factor is obtained according to the ratio of the square sum of the gradient energy of the entire image to an expected value.

[0019] Optionally, the gradient value is convolved with the image using a Sobel operator to calculate the square sum and determine the gradient energy sum of the image.

[0020] Optionally, the gradient value is convolved with the image using a Sobel operator to calculate the square sum, and the gradient energy sum of the image is determined, including:

[0021]

[0022] Among them, E (x,y) is the gradient energy at the pixel coordinate (x, y), I 2 x,(x,y) is the horizontal gradient of the Sobel operator, I 2 y,(x,y)is the vertical gradient of the Sobel operator;

[0023] Optionally, determining the sum of squared gradient energies of the entire image includes:

[0024]

[0025] Among them, E sum is the sum of squared gradient energy of the entire image.

[0026] Optionally, the calculation of the clarity evaluation factor includes:

[0027] α=E i / E exp ×100;

[0028] Among them, E i is the square sum of gradient energy of the i-th frame, E exp is the expected value, and α is the clarity evaluation factor.

[0029] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0030] at least one processor; and

[0031] a memory communicatively connected to the at least one processor; wherein,

[0032] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the infrared imaging method described in any embodiment of the present invention.

[0033] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the infrared imaging method described in any embodiment of the present invention when executed.

[0034] The technical solution of the embodiment of the present invention is to set a main control module, an infrared detector module, a motor drive module and a motor. The infrared detector module receives the infrared signal filtered by the infrared lens, converts the infrared signal into a digital signal and outputs it to the main control module; the image processing and image clarity algorithm of the infrared detector module output infrared signal are completed by the main control module. The main control module can control the motor drive module to drive the motor to move so as to focus the infrared lens; the main control module uses the zeroing corresponding point as the starting point, the maximum stroke of the motor as the end point, and the center position of the two as the middle point, so as to ensure that the motor moves accurately and reliably between the zeroing point and the maximum stroke, and accurately locates to the middle point. After calculating the clarity evaluation factors of the starting point, the end point and the middle point, the position with the smallest clarity evaluation factor and its interval are discarded, and the remaining interval is used as the starting point and end point of the next clarity calculation, until the clarity factor meets the preset conditions, or the distance between the starting point and the end point reaches the minimum stepping distance of the motor, and the optimal infrared image clarity is obtained by combining the control of the motor with the calculation of the image clarity.

[0035] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0037] Figure 1 is a schematic structural diagram of an infrared imaging device provided according to an embodiment of the present invention;

[0038] Figure 2 is a flow chart of an infrared imaging method provided according to an embodiment of the present invention;

[0039] Figure 3 A schematic diagram of a clarity calculation provided by an embodiment of the present invention;

[0040] Figure 4 is a flow chart of an infrared imaging method provided according to an embodiment of the present invention;

[0041] Figure 5 It is a schematic diagram of the structure of an electronic device for implementing the infrared imaging method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0044] Figure 1 The present invention provides a schematic diagram of the structure of an infrared imaging device. This embodiment can be applied to night vision imaging, security monitoring, environmental monitoring, etc. The device can be implemented in the form of hardware and / or software. The device can be configured in industrial monitoring, medical diagnosis, security monitoring, and power detection. Figure 1 As shown, the device includes: a main control module 101, an infrared detector module 102, a motor drive module 103 and a motor 104;

[0045] The infrared detector module 102 is used to receive the infrared signal filtered by the infrared lens, and convert the infrared signal into a digital signal and then output it to the main control module 101;

[0046] The main control module 101 is used to control the motor driving module 103 to drive the motor 104 to move, so as to focus the infrared lens;

[0047] The main control module 101 is used to zero the motor 104, taking the zeroing corresponding point as the starting point, the maximum stroke of the motor as the end point, and the center position of the two as the midpoint; according to the preset image clarity algorithm, the clarity evaluation factors of the starting point, the end point, and the midpoint are calculated respectively; after the calculation, the position with the smallest clarity evaluation factor and its interval are discarded, and the remaining interval is used as the starting point and end point of the next clarity calculation, until the clarity factor meets the preset conditions, or the distance between the starting point and the end point reaches the minimum step distance of the motor.

[0048] The main control module 101 may include an ARM motherboard, which has a built-in power supply function, an embedded multimedia card (EMMC) function, an SD card function, a graphics processing unit (GPU) function, a universal serial bus (USB) function, and an integrated circuit bus (IIC, also known as I 2 C) Data transmission function, etc. The infrared detector module 102 includes an infrared detector, which can receive infrared signals filtered by an infrared lens, convert analog signals into digital signals, and output the obtained digital signals to the main control module 101. Data transmission can be performed through a digital video port (DVP) interface or a low voltage differential signaling (LVDS) interface or a mobile industry processor (MIPI) interface. The image processing and image clarity algorithm of the infrared raw data output by the infrared detector module 102 are completed by the main control module 101. Image processing includes non-uniformity correction, bad pixel processing, noise reduction processing, image enhancement processing and pseudo-color mapping, wherein non-uniformity correction and bad pixel processing are implemented through IIC communication, and noise reduction processing, image enhancement processing and pseudo-color mapping are implemented by the integrated algorithm of the ARM mainboard in the main control module 101; in addition, the image clarity algorithm is also completed by the GPU of the ARM mainboard, and the GPU unit has certain advantages in parallel computing, which reduces the CPU burden of the ARM mainboard and makes the image display more real-time. The power supply of the infrared detector module 102 and the ARM mainboard in the main control module 101 is provided by the same external battery group, which is conducive to the synchronization of the infrared detector module 102 and the main control module 101. The motor drive module 103 includes a motor drive chip, which can respond to the control signal of the ARM mainboard in the main control module 101 to control the motor. The motor 104 can be a stepper motor, which is a motor that converts an electrical pulse signal into an angular displacement or a linear displacement, and can achieve precise control. The number of rotation steps of the motor is proportional to the number of input pulses, that is, the motor rotates a step angle for each pulse signal received. The infrared imaging device also includes an infrared lens 105 and a shutter 106. The infrared lens 105 can block visible light from transmitting infrared radiation, and focus the transmitted infrared light to convert the infrared radiation into an electrical signal. The shutter 106 is a shutter, which is used to correct the image deviation caused by temperature changes. The infrared imaging device can also include a display module.

[0049] Specifically, the main control module 101 can control the motor driving module 103 to drive the motor 104 to move so as to focus the infrared lens; the main control module 101 can zero the motor 104, and use the zeroing corresponding point as the starting point, the maximum stroke of the motor 104 as the end point, and the center position of the two as the midpoint; calculate the clarity evaluation factors of the starting point, the end point, and the midpoint according to the preset image clarity algorithm; after the calculation, discard the position with the smallest clarity evaluation factor and its interval, and use the remaining interval as the starting point and end point of the next clarity calculation, until the clarity factor meets the preset conditions, or the distance between the starting point and the end point reaches the minimum step distance of the motor 104.

[0050] The technical solution of the embodiment of the present invention is to set a main control module, an infrared detector module, a motor drive module and a motor. The infrared detector module receives the infrared signal filtered by the infrared lens, converts the infrared signal into a digital signal and outputs it to the main control module; the image processing and image clarity algorithm of the infrared detector module output infrared signal are completed by the main control module. The main control module can control the motor drive module to drive the motor to move so as to focus the infrared lens; the main control module uses the zeroing corresponding point as the starting point, the maximum stroke of the motor as the end point, and the center position of the two as the middle point, so as to ensure that the motor moves accurately and reliably between the zeroing point and the maximum stroke, and accurately locates to the middle point. After calculating the clarity evaluation factors of the starting point, the end point and the middle point, the position with the smallest clarity evaluation factor and its interval are discarded, and the remaining interval is used as the starting point and end point of the next clarity calculation, until the clarity factor meets the preset conditions, or the distance between the starting point and the end point reaches the minimum stepping distance of the motor, and the optimal infrared image clarity is obtained by combining the control of the motor with the calculation of the image clarity.

[0051] Continue to refer Figure 1 In some optional embodiments of the present invention, a temperature detection module 107 is further included. The temperature detection module 107 is connected to the main control module 101 and is used to obtain information about the ambient temperature and perform analog-to-digital conversion.

[0052] The temperature detection module 107 can be connected to the main control module 101 via an IIC bus, which is a serial bus interface technology mainly applicable to low-speed communication scenarios. The temperature detection module 107 can collect ambient temperature information and perform analog-to-digital conversion.

[0053] Figure 2 A flowchart of an infrared imaging method provided by an embodiment of the present invention, Figure 3 A schematic diagram of a clarity calculation provided by an embodiment of the present invention is provided, using the infrared imaging device described in any one of the above embodiments, such as Figure 2 As shown, the method includes:

[0054] S201, turn on the infrared imaging device and adjust the motor to zero.

[0055] Among them, the infrared imaging device is started by pressing the switch button of the main control module, which provides power and crystal oscillator to the infrared detector module after it is turned on, and the infrared detector of the infrared detection module is in normal working state through the general purpose input / output (GPIO) pin timing control and IIC bus. Zero adjustment can be achieved by installing limit switches on the mechanical structure of the motor or using an encoder.

[0056] S202, taking the zero adjustment corresponding point as the starting point, taking the maximum stroke of the motor as the end point, and the center position of the two as the midpoint.

[0057] Among them, Figure 3 As shown, the zeroing point is taken as the starting point A1, and the maximum stroke of the motor is determined as the end point B1. The maximum stroke of the motor may be determined by the physical limitations of the slider, guide rail or other mechanical components. The center position of the two is the middle point C1. Specifically, first move the motor to the zeroing point. Starting from the starting point, move to the middle point according to the calculated number of steps. Starting from the middle point, continue to move to the end point according to the calculated number of steps.

[0058] S203, respectively calculating the clarity evaluation factors of the starting point, the end point, and the middle point according to a preset image clarity algorithm.

[0059] Among them, the image clarity algorithm includes a clarity evaluation function based on the image gradient. The edge of a sharp image with a positive focus is sharper and clearer than that of a blurred out-of-focus image. The grayscale value of edge pixels varies greatly, so there is a larger gradient value. Commonly used gradient functions include energy image gradient value energy sum, Roberts function, Tenengrad function, Brenner function, variance function, Laplace function, etc. The image gradient value energy sum algorithm can be used to calculate the image clarity evaluation factor. By calculating the image gradient energy sum and the image overall gradient energy sum of the square, the image clarity evaluation factor is determined according to the ratio of the image overall gradient energy sum of the square to the expected value. Reference Figure 3 For example, the clarity evaluation factor at the starting point may be 75%, the clarity evaluation factor at the end point may be 60%, and the clarity evaluation factor at the middle point may be 80%.

[0060] S204, after the calculation, the position with the smallest clarity evaluation factor and its interval are discarded, and the remaining interval is used as the starting point and end point of the next clarity calculation, until the clarity factor meets the preset conditions, or the distance between the starting point and the end point reaches the minimum step distance of the motor.

[0061] Among them, continue to refer to Figure 3 , the preset condition can be an indicator to measure the clarity of the image, which can be a quantitative indicator such as the sharpness, contrast, and edge clarity of the image. The preset condition is the threshold value that the clarity factor needs to reach, which can determine whether the image is clear enough. The minimum distance that the motor can move is determined by the step angle and the number of subdivision steps. If the clarity factor meets the preset condition, the motor is stopped, and the current position is the required position. According to the clarity evaluation factors of the calculated starting point, end point, and middle point of the image, the position with the smallest clarity evaluation factor and the interval in which it is located can be discarded. Exemplarily, the interval of the midpoint B1 and the middle point C1 and the end point B1 with the smallest clarity evaluation factor are discarded, and the remaining interval is used as the starting point A2 and the end point B2 of the next clarity calculation, and the center position of the two is the middle point C2 of the second clarity calculation. The second time, the clarity evaluation factors of the starting point A2, the end point B2, and the middle point C2 are calculated according to the image clarity algorithm, which are 75%, 80%, and 90% respectively. Similarly, the interval between the starting point A2 with the smallest clarity evaluation factor, its middle point C2, and the end point A2 is discarded, and the remaining interval is used as the starting point A3 and the end point B3 of the next clarity calculation, and the center position of the two is the middle point C3 of the third clarity calculation. The second time, the clarity evaluation factors of the starting point A3, the end point B3, and the middle point C3 are calculated according to the image clarity algorithm, which are 80%, 90%, and 93% respectively. The position with the smallest clarity evaluation factor and its interval are discarded, and the remaining interval is used as the starting point and end point of the next clarity calculation, until the clarity factor meets the preset conditions, or the distance between the starting point and the end point reaches the minimum stepping distance of the motor.

[0062] The technical solution of the embodiment of the present invention can ensure that the motor moves accurately and reliably between the zero adjustment point and the maximum stroke and accurately locates at the middle point by taking the zero adjustment corresponding point as the starting point, the maximum stroke of the motor as the end point, and the center position of the two as the middle point. After calculating the clarity evaluation factors of the starting point, the end point, and the middle point, the position with the smallest clarity evaluation factor and its interval are discarded, and the remaining interval is used as the starting point and end point of the next clarity calculation, until the clarity factor meets the preset conditions, or the distance between the starting point and the end point reaches the minimum step distance of the motor, and the control of the motor is combined with the calculation of the image clarity to achieve accurate positioning and image quality control.

[0063] Figure 4 is a flowchart of an infrared imaging method provided according to an embodiment of the present invention, with reference to Figure 2 and Figure 4 After further refining the clarity evaluation factors of the starting point, the end point, and the middle point respectively calculated according to the preset image clarity algorithm in S203, the method includes:

[0064] S301, turn on the infrared imaging device and adjust the motor to zero.

[0065] S302, taking the zero adjustment corresponding point as the starting point, taking the maximum stroke of the motor as the end point, and the center position of the two as the middle point.

[0066] S303, obtaining 16-bit original grayscale value data of the image data.

[0067] The image can be acquired through an image acquisition device, and the grayscale value of each pixel can be represented with 16-bit accuracy. An infrared lens that supports 16-bit output can be used to capture the image. In digital image processing, a 16-bit image can represent grayscale values ​​from 0 to 65535 (i.e., 2^16-1).

[0068] S304: Calculate the gradient value of each pixel in the horizontal direction and the vertical direction respectively.

[0069] Among them, the gradient values ​​of each pixel in the horizontal and vertical directions can be calculated by the Sobel operator, the Prewitt operator or the Laplacian operator, which can provide a smoother gradient estimate. The Sobel operator is a discrete differential operator for edge detection that combines Gaussian smoothing and differential derivation. The Sobel operator uses two 3x3 kernels to calculate the gradients of the image in the horizontal and vertical directions respectively. These two kernels are usually called Sobel kernels. The Prewitt operator is also a discrete differential operator for edge detection, which is similar to the Sobel operator, but the weight assignment is different. The Laplacian operator is a second-order differential operator used for image enhancement and edge extraction. The pixels in the neighborhood are calculated by grayscale difference.

[0070] S305 , determining the gradient energy sum of the image according to the gradient value, thereby determining the square sum of the gradient energy of the entire image, and obtaining a clarity evaluation factor according to the ratio of the square sum of the gradient energy of the entire image to an expected value.

[0071] Among them, for each pixel in the image, the gradient operator is used to calculate its gradient value in the horizontal and vertical directions. For each pixel, the square sum of its gradient value is calculated to represent the gradient energy of the pixel. The gradient energies of all pixels in the image are accumulated to obtain the square sum of the gradient energy of the entire image. The larger the value, the more drastic the gradient change of the image and the clearer the image. The square sum of the gradient energy of the entire image is compared with a preset expected value to obtain a clarity evaluation factor, which can reflect the degree of clarity of the image relative to the expected value.

[0072] S306: After the calculation, the position with the smallest clarity evaluation factor and its interval are discarded, and the remaining interval is used as the starting point and end point of the next clarity calculation, until the clarity factor meets the preset conditions, or the distance between the starting point and the end point reaches the minimum step distance of the motor.

[0073] The technical solution of the embodiment of the present invention can determine the clarity of each area in the image by calculating the gradient values ​​of the image in the horizontal direction and the vertical direction, thereby obtaining the clarity evaluation of the entire image. By calculating the ratio of the sum of squared gradient energy to the expected value, a quantitative clarity evaluation factor can be obtained, which is conducive to analyzing the clarity of different images.

[0074] In some optional embodiments of the present invention, the gradient value is convolved with the image using a Sobel operator and the square sum is calculated to determine the gradient energy sum of the image.

[0075] In some optional embodiments of the present invention, the gradient value is convolved with the image using a Sobel operator and then the square sum is calculated to determine the gradient energy sum of the image, including:

[0076]

[0077] Among them, E (x,y) is the gradient energy at the pixel coordinate (x, y), I 2 x,(x,y) is the horizontal gradient of the Sobel operator, I 2 y,(x,y) It is the vertical gradient of the Sobel operator.

[0078] In some optional embodiments of the present invention, determining the sum of squared gradient energies of the entire image includes:

[0079]

[0080] Among them, E sum is the sum of squared gradient energy of the entire image.

[0081] In some optional embodiments of the present invention, calculating the clarity evaluation factor includes:

[0082] α=E i / E exp ×100;

[0083] Among them, E i is the square sum of gradient energy of the i-th frame, E exp is the expected value, and α is the clarity evaluation factor.

[0084] Figure 5A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0085] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0086] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0087] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as infrared imaging methods.

[0088] In some embodiments, the infrared imaging method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the infrared imaging method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the infrared imaging method in any other appropriate manner (e.g., by means of firmware).

[0089] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0090] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0091] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0092] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0093] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0094] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0095] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0096] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. An infrared imaging device, characterized in that: include: Main control module, infrared detector module, motor drive module and motor; The infrared detector module is used to receive the infrared signal filtered by the infrared lens, and convert the infrared signal into a digital signal and then output it to the main control module; The main control module is used to control the motor driving module to drive the motor to move, so as to focus the infrared lens; The main control module is used to zero the motor, take the zeroing corresponding point as the starting point, take the maximum stroke of the motor as the end point, and the center position of the two as the middle point; calculate the clarity evaluation factors of the starting point, the end point, and the middle point respectively according to the preset image clarity algorithm; after the calculation, discard the position with the smallest clarity evaluation factor and the interval in which it is located, and use the remaining interval as the starting point and end point of the next clarity calculation, until the clarity factor meets the preset conditions, or the distance between the starting point and the end point reaches the minimum step distance of the motor.

2. The device according to claim 1, characterized in that It also includes a temperature detection module, which is connected to the main control module and is used to obtain information about the ambient temperature and perform analog-to-digital conversion.

3. An infrared imaging method, characterized in that: Using the infrared imaging device according to any one of claims 1 to 2, the infrared imaging method comprises: Turn on the infrared imaging device and adjust the motor to zero; The zero adjustment corresponding point is taken as the starting point, the maximum stroke of the motor is taken as the end point, and the center position of the two is taken as the middle point; Calculate the clarity evaluation factors of the starting point, the end point, and the middle point respectively according to the preset image clarity algorithm; After the calculation, the position with the smallest clarity evaluation factor and its interval are discarded, and the remaining interval is used as the starting point and end point of the next clarity calculation, until the clarity factor meets the preset conditions, or the distance between the starting point and the end point reaches the minimum step distance of the motor.

4. The method according to claim 3, characterized in that The clarity evaluation factors of the starting point, end point, and middle point are calculated according to the preset image clarity algorithm, including: Get the 16-bit original grayscale value data of the image data; Calculate the gradient value of each pixel in the horizontal and vertical directions respectively; The gradient energy sum of the image is determined according to the gradient value, thereby determining the square sum of the gradient energy of the entire image, and the clarity evaluation factor is obtained according to the ratio of the square sum of the gradient energy of the entire image to an expected value.

5. The method according to claim 4, characterized in that The gradient value is convolved with the image using a Sobel operator and then the square sum is calculated to determine the gradient energy sum of the image.

6. The method according to claim 5, characterized in that The gradient value is convolved with the image using the Sobel operator and the square sum is calculated to determine the gradient energy sum of the image, including: Among them, E (x,y) is the gradient energy at the pixel coordinate (x, y), I 2 x,(x,y) is the horizontal gradient of the Sobel operator, I 2 y,(x,y) It is the vertical gradient of the Sobel operator.

7. The method according to claim 6, characterized in that Determining the sum of squared gradient energies of the entire image includes: Among them, E sum is the sum of squared gradient energy of the entire image.

8. The method according to claim 7, characterized in that The factors for calculating clarity evaluation include: α=E i / AND exp ×100; Among them, E i is the square sum of gradient energy of the i-th frame, E exp is the expected value, and α is the clarity evaluation factor.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the infrared imaging method according to any one of claims 3 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the infrared imaging method according to any one of claims 3 to 8 when executed.

Citation Information

Patent Citations

  • Auto-focusing method and device of thermal imager

    CN101660946A

  • Novel infrared image focusing system and use method thereof

    CN105306825A

  • Image automatic focusing method and device, computer equipment and storage medium

    CN116782029A

  • Thermal infrared imager rapid automatic focusing method with temperature compensation

    CN118354202A

  • Apparatuses, systems, and methods for thermal imaging

    US20210344851A1