An infrared image processing method, device, medium and infrared thermal imager
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- YANTAI IRAY TECHNOLOGY CO LTD
- Filing Date
- 2022-10-09
- Publication Date
- 2026-08-07
AI Technical Summary
但是,这两种方法均会极大的增加红外机芯模组的造价成本
[0035]As can be seen, in this invention, the first step is to acquire an infrared image of the target object using an infrared core module, thus obtaining a target infrared image. Then, blank row pixels are inserted between adjacent row pixels and blank column pixels in the target infrared image. Finally, the brightness values of each blank row and column pixel are filled according to the brightness values of each pixel in the target infrared image, resulting in a processed infrared image. Compared to existing technologies, because this method inserts blank row and column pixels between adjacent row and column pixels of the target infrared image and fills them with brightness values, the total number of pixels in the target infrared image can be increased to four times the original total number of pixels. This improves the imaging quality of the infrared image without increasing the cost of the infrared core module. Correspondingly, the infrared image processing device, medium, and infrared thermal imager provided by this invention also have the aforementioned beneficial effects.
Smart Images

Figure CN115641261B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of infrared technology, and in particular to an infrared image processing method, apparatus, medium, and infrared thermal imager. Background Technology
[0002] In existing technologies, two methods are typically used to improve the imaging quality of infrared images. One method is to increase the number of detector pixels on the infrared core module, and the other is to improve the transfer function of the optical components. However, both methods significantly increase the manufacturing cost of the infrared core module. Currently, there is no simple, fast, or effective solution to this technical problem.
[0003] Therefore, how to improve the imaging quality of infrared images without increasing the cost of infrared core modules is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide a method, apparatus, medium, and infrared thermal imager for processing infrared images, so as to improve the imaging quality of infrared images without increasing the cost of the infrared core module. The specific solution is as follows:
[0005] A method for processing infrared images, comprising:
[0006] The infrared image of the target object is obtained by acquiring the infrared image of the target object through the infrared core module;
[0007] Blank row pixels are inserted between adjacent row pixels of the target infrared image, and blank column pixels are inserted between adjacent column pixels of the target infrared image;
[0008] The brightness values of each blank row and column pixel in the target infrared image are filled with brightness values to obtain the processed infrared image.
[0009] Preferably, the process of filling the blank row pixels and blank column pixels with brightness values according to the brightness values of each pixel in the target infrared image to obtain the processed infrared image includes:
[0010] When filling the target pixels in the target blank row pixels and target blank column pixels with brightness values, the two non-blank pixels adjacent to the target pixel are searched to obtain the first pixel and the second pixel; wherein, the target pixel is any blank pixel in the target blank row pixels and target blank column pixels; the target blank row pixels are any blank row pixels in the target infrared image; the target blank column pixels are any blank column pixels in the target infrared image;
[0011] The brightness values of the first pixel and the second pixel are determined respectively to obtain the first brightness value and the second brightness value, and the brightness value of the target pixel is filled according to the first brightness value and the second brightness value;
[0012] When the brightness values of blank pixels in all blank rows and columns of the target infrared image are filled, the processed infrared image is obtained.
[0013] Preferably, the process of filling the brightness value of the target pixel according to the first brightness value and the second brightness value includes:
[0014] The target pixel's brightness value is filled based on the Laplacian algorithm and according to the first brightness value and the second brightness value.
[0015] Preferably, the process of filling the brightness value of the target pixel according to the first brightness value and the second brightness value includes:
[0016] Based on the target model, the brightness value of the target pixel is filled according to the first brightness value and the second brightness value;
[0017] The expression for the target model is:
[0018] Y = k1 × A + k2 × B;
[0019] In the formula, Y is the brightness value of the target pixel, A is the first brightness value, B is the second brightness value, k1 is the contribution value of the first pixel to the target pixel, and k2 is the contribution value of the second pixel to the target pixel.
[0020] Preferred options also include:
[0021] The k1 is set according to the first brightness value, and the k2 is set according to the second brightness value.
[0022] Preferably, the process of setting k1 according to the first brightness value and setting k2 according to the second brightness value includes:
[0023] If the difference between the first brightness value and the second brightness value is less than or equal to a preset threshold, then it is determined that both k1 and k2 are equal to k; wherein, k is set according to the first brightness value or according to the second brightness value;
[0024] If the difference between the first brightness value and the second brightness value is greater than the preset threshold, then it is determined that k1 is not equal to k2, and k1 is set according to the first brightness value and k2 is set according to the second brightness value.
[0025] Preferably, k is 0.5.
[0026] Accordingly, the present invention also discloses an infrared image processing apparatus, comprising:
[0027] The image acquisition module is used to acquire infrared images of the target object from the infrared core module, thereby obtaining the target infrared image;
[0028] A pixel insertion module is used to insert blank row pixels between adjacent row pixels of the target infrared image and to insert blank column pixels between adjacent column pixels of the target infrared image.
[0029] The brightness value filling module is used to fill the brightness values of each blank row pixel and blank column pixel according to the brightness values of each pixel in the target infrared image, so as to obtain the processed infrared image.
[0030] Accordingly, the present invention also discloses an infrared thermal imager, comprising:
[0031] Infrared camera module, used to acquire infrared images of target objects;
[0032] A logic chip is used to acquire the infrared image of the target object collected by the infrared core module to obtain the target infrared image; insert blank row pixels between adjacent row pixels of the target infrared image and blank column pixels between adjacent column pixels of the target infrared image; fill the brightness values of each blank row pixel and blank column pixel according to the brightness of each pixel in the target infrared image to obtain the processed infrared image;
[0033] A display for showing the processed infrared image.
[0034] Accordingly, the present invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the infrared image processing method disclosed above.
[0035] As can be seen, in this invention, the first step is to acquire an infrared image of the target object using an infrared core module, thus obtaining a target infrared image. Then, blank row pixels are inserted between adjacent row pixels and blank column pixels in the target infrared image. Finally, the brightness values of each blank row and column pixel are filled according to the brightness values of each pixel in the target infrared image, resulting in a processed infrared image. Compared to existing technologies, because this method inserts blank row and column pixels between adjacent row and column pixels of the target infrared image and fills them with brightness values, the total number of pixels in the target infrared image can be increased to four times the original total number of pixels. This improves the imaging quality of the infrared image without increasing the cost of the infrared core module. Correspondingly, the infrared image processing device, medium, and infrared thermal imager provided by this invention also have the aforementioned beneficial effects. Attached Figure Description
[0036] 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 embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0037] Figure 1 A flowchart illustrating an infrared image processing method provided in an embodiment of the present invention;
[0038] Figure 2 This is a structural diagram of an infrared image processing apparatus provided in an embodiment of the present invention;
[0039] Figure 3 This is a structural diagram of an infrared thermal imager provided in an embodiment of the present invention;
[0040] Figure 4 For the reason Figure 3 The diagram shows the original infrared image of an office area acquired by the infrared core module of the infrared thermal imager.
[0041] Figure 5 This is a schematic diagram showing the original infrared image after brightness value filling using the infrared image processing method provided by this invention;
[0042] Figure 6 To Figure 4 The diagram shown is a magnified version of a portion of the original infrared image.
[0043] Figure 7 To Figure 5The diagram shown is a magnified version of a portion of the filled infrared image. Detailed Implementation
[0044] 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.
[0045] Please see Figure 1 , Figure 1 The flowchart illustrates an infrared image processing method provided in an embodiment of the present invention, the method comprising:
[0046] Step S11: Obtain the infrared image of the target object by acquiring the infrared image of the target object through the infrared core module;
[0047] Step S12: Insert blank row pixels between adjacent row pixels of the target infrared image, and insert blank column pixels between adjacent column pixels of the target infrared image;
[0048] Step S13: Fill the blank row pixels and blank column pixels with brightness values according to the brightness values of each pixel in the target infrared image to obtain the processed infrared image.
[0049] In this embodiment, in order to improve the imaging quality of infrared images without increasing the cost of the infrared camera module, the first step is to acquire an infrared image of the target object using the infrared camera module, thus obtaining the target infrared image. The target object can be a person, scenery, or any other object, etc., and is not specifically limited here.
[0050] When the infrared camera module acquires an infrared image of the target object, the infrared imaging module in the infrared camera module first focuses the infrared rays emitted by the target object onto the focal plane of the infrared camera module through the infrared lens of the infrared camera module. Then, the detector pixels in the infrared camera module convert the infrared rays emitted by the target object into corresponding electrical signals. Through this operation, the infrared rays emitted by the target object can be converted into corresponding digital information.
[0051] After obtaining the target infrared image captured by the infrared core module, blank row pixels need to be inserted between adjacent row pixels and blank column pixels in the target infrared image. Then, the brightness values of all blank row pixels and blank column pixels in the target infrared image are filled according to the brightness values of each pixel in the target infrared image to obtain the processed infrared image.
[0052] It should be noted that because the target infrared image is obtained by converting the infrared rays emitted by the target object into corresponding digital signals by the infrared core module, the target infrared image only contains the brightness information of the target object and does not contain the color information of the target object. Therefore, in this embodiment, the brightness values of all blank row pixels and blank column pixels in the target infrared image are filled according to the brightness values of each pixel in the target infrared image.
[0053] It's conceivable that this method, by inserting blank row and column pixels between adjacent row and column pixels in the target infrared image and filling them with brightness values, quadruples the total number of pixels in the target infrared image. Clearly, increasing the total number of pixels significantly improves the imaging quality of the infrared image acquired by the infrared camera module. Furthermore, compared to existing technologies, this method doesn't require improving the transfer function of the optical lens or increasing the number of detector pixels in the infrared camera module. Therefore, it improves the imaging quality of infrared images without increasing the cost of the infrared camera module.
[0054] Furthermore, given that infrared camera modules have the same hardware configuration, the infrared image processing method provided in this embodiment can significantly improve the clarity of images acquired by the infrared camera module. Therefore, this method can enhance the product competitiveness of the infrared camera module in the market. Additionally, since the technical solution provided in this embodiment can improve the imaging quality of infrared images without increasing the number of detector pixels or adding optical lenses to the infrared camera module, this method can further reduce the space occupied by the infrared camera module and enable the infrared camera module to develop towards a higher level of integration.
[0055] As can be seen, in this embodiment, the infrared image of the target object is first acquired by the infrared core module to obtain the target infrared image. Then, blank row pixels are inserted between adjacent row pixels and blank column pixels in the target infrared image. Finally, the brightness values of each blank row pixel and blank column pixel are filled according to the brightness values of each pixel in the target infrared image to obtain the processed infrared image. Compared with the prior art, since this method inserts blank row pixels and blank column pixels between adjacent row pixels and adjacent column pixels in the target infrared image respectively, and fills them with brightness values respectively, the total number of pixels in the target infrared image can be increased to four times the original total number of pixels. Thus, the imaging quality of the infrared image can be improved without increasing the manufacturing cost of the infrared core module.
[0056] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. As a preferred implementation, the above steps: filling the brightness values of each blank row pixel and blank column pixel according to the brightness values of each pixel in the target infrared image to obtain the processed infrared image, include:
[0057] When filling the target pixels in the target blank row pixels and target blank column pixels with brightness values, the two non-blank pixels adjacent to the target pixel are searched to obtain the first pixel and the second pixel; wherein, the target pixel is any blank pixel in the target blank row pixels and target blank column pixels; the target blank row pixels are any blank row pixels in the target infrared image; the target blank column pixels are any blank column pixels in the target infrared image;
[0058] The brightness values of the first pixel and the second pixel are determined respectively to obtain the first brightness value and the second brightness value, and the brightness value of the target pixel is filled according to the first brightness value and the second brightness value;
[0059] When the brightness values of blank pixels in all blank rows and columns of the target infrared image have been filled, the processed infrared image is obtained.
[0060] This embodiment specifically describes the process of filling the brightness values of each blank row pixel and blank column pixel in the target infrared image. Since the method for filling the brightness values of each blank pixel in the blank row pixel and blank column pixel is the same, this embodiment only describes the filling process of one blank pixel in the target blank row pixel or target blank column pixel. Here, the target blank row pixel is any blank row pixel in the target infrared image, and the target blank column pixel is any blank column pixel in the target infrared image.
[0061] When filling the target pixel in the target blank row and target blank column with brightness values, the process begins by finding two non-blank pixels adjacent to the target pixel to obtain the first pixel and the second pixel. The target pixel can be any pixel in the target blank row and target blank column. Then, the brightness values corresponding to the first pixel and the second pixel are calculated to obtain the first brightness value and the second brightness value. The brightness value of the target pixel is then filled based on the first brightness value and the second brightness value, thus completing the brightness value filling process for the target pixel.
[0062] Next, the brightness values of all blank rows and columns of pixels in the target infrared image are filled using the method described above. Once the brightness values of all blank rows and columns of pixels in the target infrared image have been filled, the processed infrared image is obtained. Clearly, after the above processing, the image quality of the processed infrared image is significantly improved compared to the target infrared image.
[0063] In a preferred embodiment, the above step of filling the brightness value of the target pixel according to the first brightness value and the second brightness value includes:
[0064] The target pixel's brightness value is filled based on the Laplacian algorithm and according to the first brightness value and the second brightness value.
[0065] Specifically, in practical applications, the Laplacian algorithm can be used to fill the brightness value of the target pixel based on the first and second brightness values. Because the Laplacian algorithm is a differential operator, it can enhance regions in the target infrared image where pixel brightness changes abruptly and weaken regions where pixel brightness changes slowly. Therefore, by using the Laplacian algorithm and combining it with the brightness values of the two adjacent non-blank pixels, the brightness value of the target pixel can be filled.
[0066] Furthermore, by using the Laplacian algorithm to fill the target pixels with brightness values, not only will the image clarity of the processed infrared image be improved, but the feature details in the processed infrared image will also be smoother and more delicate.
[0067] Alternatively, the above steps: the process of filling the brightness value of the target pixel based on the first brightness value and the second brightness value, include:
[0068] Based on the target model, the brightness values of the target pixels are filled according to the first brightness value and the second brightness value;
[0069] The expression for the target model is:
[0070] Y = k1 × A + k2 × B;
[0071] In the formula, Y is the brightness value of the target pixel, A is the first brightness value, B is the second brightness value, k1 is the contribution value of the first pixel to the target pixel, and k2 is the contribution value of the second pixel to the target pixel.
[0072] In practical applications, the brightness values of target pixels can also be filled based on the target model and according to the first and second brightness values. In the mathematical expression of the target model, k1 and k2 are essentially operators for filling the brightness values of target pixels, and k1 and k2 are values between 0 and 1. Furthermore, the values corresponding to k1 and k2 are related to the application scenario of the target object. That is, the k1 and k2 values corresponding to the target object will be different in different application scenarios.
[0073] It is conceivable that, since the target model has fewer unknown parameters in its model expression compared to other brightness value filling algorithms, the resource overhead required for filling the brightness value of the target pixel can be relatively reduced when using the target model to fill the target pixel.
[0074] In a preferred embodiment, the above processing method further includes:
[0075] k1 is set according to the first brightness value, and k2 is set according to the second brightness value.
[0076] It is understandable that k1 represents the contribution value of the first pixel to the target pixel, and k2 represents the contribution value of the second pixel to the target pixel. In the target infrared image acquired by the infrared core module, the target infrared image expresses the data features and image details in the target infrared image through the brightness values corresponding to each pixel within it. Therefore, in practical applications, k1 can be set according to the first brightness value corresponding to the first pixel, and k2 can be set according to the second brightness value corresponding to the second pixel.
[0077] As a preferred embodiment, the above steps: setting k1 according to a first brightness value and setting k2 according to a second brightness value, include:
[0078] If the difference between the first brightness value and the second brightness value is less than or equal to a preset threshold, then k1 and k2 are both determined to be equal to k; where k is set according to the first brightness value or according to the second brightness value.
[0079] If the difference between the first brightness value and the second brightness value is greater than a preset threshold, then k1 is determined to be not equal to k2, and k1 is set according to the first brightness value and k2 is set according to the second brightness value.
[0080] In this embodiment, in order to reduce the resource overhead required when setting k1 and k2, the difference between the first brightness value and the second brightness value can be calculated first, and the difference between the first brightness value and the second brightness value can be compared with a preset threshold; then, the values of k1 and k2 can be determined based on the difference between the first brightness value and the second brightness value.
[0081] Specifically, if the difference between the first brightness value and the second brightness value is greater than a preset threshold, it indicates that the content to be expressed by the first pixel and the second pixel differs significantly. In this case, k1 and k2 need to be calculated separately. That is, when the difference between the first brightness value and the second brightness value is greater than the preset threshold, k1 needs to be set based on the first brightness value, and k2 needs to be set based on the second brightness value. If the difference between the first brightness value and the second brightness value is less than or equal to the preset threshold, it indicates that the content to be expressed by the first pixel and the second pixel is not significantly different. For example, when acquiring an infrared image of the ocean or desert, the brightness values of each pixel within it will change relatively smoothly. In this case, both k1 and k2 can be set to k; where k is set based on either the first brightness value or the second brightness value.
[0082] Furthermore, if the difference between the first brightness value and the second brightness value is less than or equal to the preset threshold, it indicates that the content to be expressed by the first pixel and the second pixel is not much different, and it also indicates that the transition image between the first pixel and the second pixel is relatively smooth. In this case, in order to further reduce the resource overhead required when setting k1 and k2, the k values corresponding to k1 and k2 can both be set to 0.5.
[0083] Obviously, the technical solution provided in this embodiment can further reduce the resource overhead required when filling the brightness value of the target infrared image.
[0084] Please see Figure 2 , Figure 2 This is a structural diagram of an infrared image processing apparatus provided in an embodiment of the present invention. The apparatus includes:
[0085] Image acquisition module 21 is used to acquire infrared images of the target object collected by the infrared core module, and obtain the target infrared image;
[0086] The pixel insertion module 22 is used to insert blank row pixels between adjacent row pixels of the target infrared image and to insert blank column pixels between adjacent column pixels of the target infrared image.
[0087] The brightness value filling module 23 is used to fill the brightness values of each blank row pixel and blank column pixel according to the brightness values of each pixel in the target infrared image to obtain the processed infrared image.
[0088] The infrared image processing apparatus provided in this embodiment of the invention has the beneficial effects of the infrared image processing method disclosed above.
[0089] Please see Figure 3 , Figure 3This is a structural diagram of an infrared thermal imager provided in an embodiment of the present invention. The infrared thermal imager includes:
[0090] Infrared module 31 is used to acquire infrared images of the target object;
[0091] The logic chip 32 is used to acquire the infrared image of the target object collected by the infrared core module to obtain the target infrared image; insert blank row pixels between adjacent row pixels and blank column pixels between adjacent column pixels in the target infrared image; fill the brightness values of each blank row pixel and blank column pixel according to the brightness of each pixel in the target infrared image to obtain the processed infrared image.
[0092] Display 33 is used to display the processed infrared image.
[0093] In this embodiment, an infrared thermal imager is provided, which includes an infrared core module 31, a logic chip 32, and a display 33. The infrared core module 31 is used to acquire infrared images of a target object; the logic chip 32 is used to acquire the target infrared image acquired by the infrared core module, insert blank row pixels between adjacent row pixels and blank column pixels between adjacent column pixels in the target infrared image, and then fill the blank row pixels and blank column pixels in the target infrared image with brightness values according to the brightness values of each pixel in the target infrared image to obtain a processed infrared image; the display 33 is used to display the processed infrared image output by the logic chip.
[0094] In practical applications, to further reduce the space occupied by infrared thermal imagers, the logic chip and display can be directly integrated into the infrared core module. Specifically, the logic chip can be set as an FPGA (Field Programmable Gate Array) or an MCU (Micro Control Unit), or other chips with logic computing capabilities. Furthermore, the detailed process of the logic chip processing the target infrared image can be found in the relevant descriptions of the foregoing embodiments, and will not be elaborated upon here.
[0095] To enable those skilled in the art to more clearly understand the implementation principles of the technical solutions provided by this invention, a scenario embodiment is provided here to illustrate the disclosed technical content in detail. Please refer to... Figure 4 , Figure 4 For the reason Figure 3 The diagram shows a schematic of the original infrared image obtained by the infrared core module of an infrared thermal imager from a specific office area. Figure 4 The original infrared image shown has a resolution of 320*256. Figure 4 The original infrared image shown only shows the general outline of the person, and its image quality is not very high.
[0096] To address the issue of low imaging quality in the original infrared image, blank rows and columns of pixels can be inserted between adjacent rows and columns of the original infrared image. Then, the brightness values of the inserted blank rows and columns are filled with the brightness values of each pixel in the original infrared image, thus obtaining a filled infrared image.
[0097] Please see Figure 5 , Figure 5 This is a schematic diagram showing the original infrared image after brightness value filling using the infrared image processing method provided by this invention. Figure 5 In the illustrated image, the resolution of the filled infrared image is 640*512. The total number of pixels in the filled infrared image is four times that of the original infrared image, resulting in a significant improvement in image quality. To allow readers to more clearly observe the optimization effect after processing the original infrared image, another image can be taken... Figure 4 and Figure 5 The same local image in the middle, and then... Figure 4 and Figure 5 Adjust the local image to the same size for careful observation.
[0098] Please see Figure 6 and Figure 7 , Figure 6 To Figure 4 The diagram shown is a magnified version of a portion of the original infrared image. Figure 7 To Figure 5 The diagram shown is a magnified representation of a portion of the filled infrared image. (Comparison) Figure 6 and Figure 7 It can be observed that, Figure 6 The infrared image shown not only has obvious jagged edges, but also blurry mosaics at the image edges. Figure 7 Compared to Figure 6 The images shown have smoother edges and finer details, which demonstrates that the technical solution provided in this application can significantly improve the imaging quality of infrared images acquired by the infrared core module. Furthermore, this method does not increase the manufacturing cost of the infrared core module.
[0099] In summary, compared to existing technologies that can only improve the imaging quality of infrared images by increasing the number of detector pixels in the infrared core module or improving the transfer function of the optical lens in the infrared core module, the image processing method provided in this application has the following advantages:
[0100] 1) It can improve the imaging quality of infrared images without increasing the cost of the infrared core module;
[0101] 2) With the same hardware configuration, the clarity of the images captured by the infrared camera module can be significantly improved, thereby enhancing the product competitiveness of the infrared camera module.
[0102] 3) Since the imaging quality of infrared images can be improved without increasing the number of detector pixels on the infrared core module or improving the transfer function of the optical lens on the infrared core module, the technical solution provided in this application can further reduce the space occupied by the infrared core module, thereby enabling the infrared core module to develop towards a higher level of integration.
[0103] 4) The implementation of the technical solution provided in this application is simpler and more convenient. It only requires adding a small logic chip to the existing infrared core module to improve the imaging quality of the infrared core module.
[0104] The infrared thermal imager provided in this embodiment of the invention has the beneficial effects of the infrared image processing method disclosed above.
[0105] Accordingly, the present invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the infrared image processing method disclosed above.
[0106] The computer-readable storage medium provided in this embodiment of the invention has the beneficial effects of the infrared image processing method disclosed above.
[0107] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0108] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0109] The present invention has provided a detailed description of an infrared image processing method, apparatus, medium, and infrared thermal imager. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for processing infrared images, characterized in that, include: The infrared image of the target object is obtained by acquiring the infrared image of the target object through the infrared core module; Blank row pixels are inserted between adjacent row pixels of the target infrared image, and blank column pixels are inserted between adjacent column pixels of the target infrared image; The brightness values of each blank row and column pixel are filled with brightness values according to the brightness values of each pixel in the target infrared image to obtain the processed infrared image. The process of filling blank row pixels and blank column pixels with brightness values based on the brightness values of each pixel in the target infrared image to obtain the processed infrared image includes: When filling the target pixels in the target blank row pixels and target blank column pixels with brightness values, the two non-blank pixels adjacent to the target pixel are searched to obtain the first pixel and the second pixel; wherein, the target pixel is any blank pixel in the target blank row pixels and target blank column pixels; the target blank row pixels are any blank row pixels in the target infrared image; the target blank column pixels are any blank column pixels in the target infrared image; The brightness values of the first pixel and the second pixel are determined respectively to obtain the first brightness value and the second brightness value, and the brightness value of the target pixel is filled according to the first brightness value and the second brightness value; When the brightness values of blank pixels in all blank rows and columns of the target infrared image are filled, the processed infrared image is obtained. The process of filling the brightness value of the target pixel according to the first brightness value and the second brightness value includes: The target pixel's brightness value is filled based on the Laplacian algorithm and according to the first brightness value and the second brightness value. Alternatively, the brightness values of the target pixels can be filled based on the target model and according to the first brightness value and the second brightness value; The expression for the target model is: ; In the formula, The brightness value of the target pixel. The first brightness value, This is the second brightness value. The contribution value of the first pixel to the target pixel. The contribution value of the second pixel to the target pixel.
2. The processing method according to claim 1, characterized in that, Also includes: Set the brightness value according to the first brightness value And set the brightness value according to the second brightness value. .
3. The processing method according to claim 2, characterized in that, The setting based on the first brightness value And set the brightness value according to the second brightness value. The process includes: If the difference between the first brightness value and the second brightness value is less than or equal to a preset threshold, then it is determined that... and stated All equal to ; wherein, the The setting is based on the first brightness value or the setting is based on the second brightness value; If the difference between the first brightness value and the second brightness value is greater than the preset threshold, then it is determined that... Not equal to the stated And set the brightness value according to the first brightness value. And set the brightness value according to the second brightness value .
4. The processing method according to claim 3, characterized in that, The Specifically, it is 0.
5.
5. An infrared image processing apparatus, characterized in that, include: The image acquisition module is used to acquire infrared images of the target object from the infrared core module, thereby obtaining the target infrared image; A pixel insertion module is used to insert blank row pixels between adjacent row pixels of the target infrared image and to insert blank column pixels between adjacent column pixels of the target infrared image. The brightness value filling module is used to fill the brightness values of each blank row pixel and blank column pixel according to the brightness values of each pixel in the target infrared image to obtain the processed infrared image. The process of filling blank row pixels and blank column pixels with brightness values based on the brightness values of each pixel in the target infrared image to obtain the processed infrared image includes: When filling the target pixels in the target blank row pixels and target blank column pixels with brightness values, the two non-blank pixels adjacent to the target pixel are searched to obtain the first pixel and the second pixel; wherein, the target pixel is any blank pixel in the target blank row pixels and target blank column pixels; the target blank row pixels are any blank row pixels in the target infrared image; the target blank column pixels are any blank column pixels in the target infrared image; The brightness values of the first pixel and the second pixel are determined respectively to obtain the first brightness value and the second brightness value, and the brightness value of the target pixel is filled according to the first brightness value and the second brightness value; When the brightness values of blank pixels in all blank rows and columns of the target infrared image are filled, the processed infrared image is obtained. The process of filling the brightness value of the target pixel according to the first brightness value and the second brightness value includes: The target pixel's brightness value is filled based on the Laplacian algorithm and according to the first brightness value and the second brightness value. Alternatively, the brightness values of the target pixels can be filled based on the target model and according to the first brightness value and the second brightness value; The expression for the target model is: ; In the formula, The brightness value of the target pixel. The first brightness value, This is the second brightness value. The contribution value of the first pixel to the target pixel. The contribution value of the second pixel to the target pixel.
6. An infrared thermal imager, characterized in that, include: Infrared camera module, used to acquire infrared images of target objects; A logic chip is used to acquire the infrared image of the target object collected by the infrared core module to obtain the target infrared image; insert blank row pixels between adjacent row pixels of the target infrared image and blank column pixels between adjacent column pixels of the target infrared image; fill the brightness values of each blank row pixel and blank column pixel according to the brightness of each pixel in the target infrared image to obtain the processed infrared image; A display for displaying the processed infrared image; The process of filling blank row pixels and blank column pixels with brightness values based on the brightness values of each pixel in the target infrared image to obtain the processed infrared image includes: When filling the target pixels in the target blank row pixels and target blank column pixels with brightness values, the two non-blank pixels adjacent to the target pixel are searched to obtain the first pixel and the second pixel; wherein, the target pixel is any blank pixel in the target blank row pixels and target blank column pixels; the target blank row pixels are any blank row pixels in the target infrared image; the target blank column pixels are any blank column pixels in the target infrared image; The brightness values of the first pixel and the second pixel are determined respectively to obtain the first brightness value and the second brightness value, and the brightness value of the target pixel is filled according to the first brightness value and the second brightness value; When the brightness values of blank pixels in all blank rows and columns of the target infrared image are filled, the processed infrared image is obtained. The process of filling the brightness value of the target pixel according to the first brightness value and the second brightness value includes: The target pixel's brightness value is filled based on the Laplacian algorithm and according to the first brightness value and the second brightness value. Alternatively, the brightness values of the target pixels can be filled based on the target model and according to the first brightness value and the second brightness value; The expression for the target model is: ; In the formula, The brightness value of the target pixel. The first brightness value, This is the second brightness value. The contribution value of the first pixel to the target pixel. The contribution value of the second pixel to the target pixel.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the infrared image processing method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Image sensor
CN107809601A
Image generation method and device, electronic equipment and storage medium
CN115118889A