Image processing method and device, equipment, storage medium

By using ambient and equipment temperature to compensate for grayscale in infrared images, the problem of non-uniformity in infrared images was solved, enabling real-time processing of infrared images and eliminating the "pot lid" phenomenon.

CN117011163BActive Publication Date: 2026-02-27GUANGZHOU KEII ELECTRO OPTICS TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310687775.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-09
Publication Date
2026-02-27
Estimated Expiration
2043-06-09

AI Technical Summary

Technical Problem

Infrared images suffer from non-uniformity, resulting in the "pot lid" phenomenon. Existing processing methods are complex and difficult to guarantee real-time performance.

Method used

By acquiring the ambient temperature and equipment temperature of the original image, grayscale compensation processing is performed. The compensation coefficient is calculated using low-frequency information and temperature difference to achieve real-time grayscale correction of the infrared image.

Benefits of technology

It can quickly eliminate the grayscale difference between the periphery and the center of an image, enabling real-time processing of infrared images and improving processing speed and real-time performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117011163B_ABST
    Figure CN117011163B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose an image processing method and device, equipment and a storage medium, comprising: collecting an original image, the original image being an image with a gray value of a peripheral region being greater or smaller than a gray value of a central region; obtaining a first temperature and a second temperature in the original image, the first temperature being used to represent an ambient temperature when the original image is collected, and the second temperature being used to represent a device temperature when the original image is collected; performing gray compensation processing on the original image according to the first temperature and the second temperature to obtain a target image, the gray difference value of the target image being smaller than the gray difference value of the original image, the gray difference value being a difference between the gray value of the peripheral region and the gray value of the central region of the image. In this way, real-time processing of the original image can be realized, the processing speed is fast, and real-time performance is good.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to information processing technology, and relate to but are not limited to an image processing method and device, equipment and a storage medium. BACKGROUND

[0002] With the development of infrared focal plane technology, the infrared thermal imager is more and more applied to the fields of military, medical, security, agriculture, industry and the like. Meanwhile, the increasing demand for the function and performance of the infrared thermal imager also promotes the infrared thermal imager to have a higher and higher resolution of the detector array and a more and more complex system structure. The correction of the non-uniformity of the response of the infrared thermal imager system has been one of the hot issues in the research of the infrared thermal imager. With the improvement of the function and performance of the thermal imager, the problem of the non-uniformity of the response of the infrared system is more and more prominent and difficult to solve.

[0003] In order to solve the non-uniformity of the infrared image, the infrared imaging system is designed with a shutter structure, that is, a micro motor driven shutter is designed in front of the focal plane to correct the focal plane, so that the focal plane has a consistent response at the shutter temperature. However, due to the heat generated by the infrared imaging system, the temperature of the shutter is non-uniform, which will cause the final infrared image to present a "pot cover" phenomenon of dark in the middle and bright around.

[0004] In order to solve the "pot cover" phenomenon of the infrared image, corresponding processing methods appear in the related art. However, the common processing methods in the implementation will collect a large amount of data, and the algorithm process is complex, which needs to fit the data model, so as to ensure the real-time performance of the image processing. SUMMARY

[0005] Therefore, the image processing method and device, equipment and storage medium provided by the embodiments of the present application can realize real-time processing of the original image, have a fast processing speed and good real-time performance. The image processing method and device, equipment and storage medium provided by the embodiments of the present application are implemented as follows:

[0006] The image processing method provided by the embodiments of the present application comprises:

[0007] Collecting an original image, the original image being an image with a gray value of a peripheral region being greater than or less than a gray value of a central region;

[0008] Obtaining a first temperature and a second temperature in the original image, the first temperature being used to represent an ambient temperature when the original image is collected, and the second temperature being used to represent a device temperature when the original image is collected;

[0009] According to the first temperature and the second temperature, the original image is subjected to a gray compensation processing to obtain a target image, and a gray difference value of the target image is less than a gray difference value of the original image, the gray difference value being a difference value between a gray value of a center region and a gray value of a peripheral region of the image.

[0010] In some embodiments, the gray compensation processing of the original image according to the first temperature and the second temperature to obtain the target image comprises:

[0011] The original image is subjected to an information extraction processing to obtain low-frequency information of the original image.

[0012] A difference value between the first temperature and the second temperature is determined as a first temperature difference value.

[0013] The original image is subjected to a gray compensation processing according to the first temperature difference value and the low-frequency information to obtain the target image.

[0014] In some embodiments, the information extraction processing of the original image to obtain the low-frequency information of the original image comprises:

[0015] The original image is subjected to a filtering processing to obtain a corresponding filtered image.

[0016] High-frequency components of the filtered image are filtered to obtain the low-frequency information.

[0017] In some embodiments, the gray compensation processing of the original image according to the first temperature difference value and the low-frequency information to obtain the target image comprises:

[0018] A second temperature difference value is obtained, the second temperature difference value being a difference value between a third temperature and a fourth temperature, the third temperature being used to represent an ambient temperature when a contrast image is collected, and the fourth temperature being used to represent a device temperature when the contrast image is collected.

[0019] A ratio between the second temperature difference value and the first temperature difference value is determined as a compensation coefficient for the original image.

[0020] The original image is subjected to a gray compensation processing according to the compensation coefficient and the low-frequency information to obtain the target image.

[0021] In some embodiments, the gray compensation processing of the original image according to the compensation coefficient and the low-frequency information to obtain the target image comprises:

[0022] A product of the compensation coefficient and the low-frequency information is determined as a gray compensation value for the original image.

[0023] According to the gray compensation value, the original image is subjected to a gray compensation process to obtain a target image.

[0024] In some embodiments, the filtering process is a guided filtering process, and filtering the high-frequency components of the filtered image comprises performing Fourier transform on the filtered image.

[0025] In some embodiments, before the original image is acquired, the method further comprises:

[0026] acquiring a current temperature of the device;

[0027] In a case where it is determined that the current temperature is greater than a threshold value, the original image is acquired by the device.

[0028] The image processing apparatus provided by the embodiments of the present application comprises:

[0029] an acquisition module configured to acquire an original image, the original image being an image whose gray values of a peripheral region are greater than or less than a gray value of a central region;

[0030] an acquisition module configured to acquire a first temperature and a second temperature in the original image, the first temperature being used to represent an ambient temperature when the original image is acquired, and the second temperature being used to represent a device temperature when the original image is acquired;

[0031] a processing module configured to perform a gray compensation process on the original image according to the first temperature and the second temperature to obtain a target image, a gray difference value of the target image being less than a gray difference value of the original image, the gray difference value being a difference between a gray value of a peripheral region and a gray value of a central region of an image.

[0032] The computer device provided by the embodiments of the present application comprises a memory and a processor, the memory stores a computer program capable of running on the processor, and the processor implements the method provided by the embodiments of the present application when executing the program.

[0033] The computer readable storage medium provided by the embodiments of the present application has a computer program stored thereon, and the computer program is executed by a processor to implement the method provided by the embodiments of the present application.

[0034] The image processing method, device, computer device and computer readable storage medium provided by the embodiment of the present application, by collecting the original image whose gray value of the surrounding area is greater than or less than the gray value of the center area; and obtaining the first temperature and the second temperature in the original image, the first temperature is used to represent the ambient temperature when the original image is collected, and the second temperature is used to represent the device temperature when the original image is collected; finally, according to the first temperature and the second temperature, the original image is subjected to gray compensation processing to obtain a target image, the gray difference value of the target image is less than the gray difference value of the original image, and the gray difference value is the difference between the gray value of the surrounding area of the image and the gray value of the center area.

[0035] In this way, when the device collects the original image, the ambient temperature and the device temperature recorded in the original image can be obtained, and then the original image is directly subjected to gray compensation according to the ambient temperature and the device temperature, so that the target image is obtained. This gray compensation method does not need to perform a large amount of data processing, can realize real-time processing of the original image, has high processing speed and good real-time performance. BRIEF DESCRIPTION OF DRAWINGS

[0036] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the present application and, together with the specification, serve to explain the technical solutions of the present application.

[0037] Figure 1 A schematic diagram of a pot cover image provided by the embodiment of the present application;

[0038] Figure 2 An implementation flowchart of an image processing method provided by the embodiment of the present application;

[0039] Figure 3 A schematic diagram of a target image provided by the embodiment of the present application;

[0040] Figure 4 An implementation flowchart of another image processing method provided by the embodiment of the present application;

[0041] Figure 5 An implementation flowchart of information extraction processing of the original image provided by the embodiment of the present application;

[0042] Figure 6 An implementation flowchart of gray compensation processing of the original image provided by the embodiment of the present application;

[0043] Figure 7 An implementation flowchart of another gray compensation processing of the original image provided by the embodiment of the present application;

[0044] Figure 8 A comparison schematic diagram of the original image and the target image provided by the embodiment of the present application;

[0045] Figure 9 This is a schematic diagram of the structure of the image processing apparatus provided in the embodiments of this application;

[0046] Figure 10 A schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0047] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of this application will be further described in detail below with reference to the accompanying drawings of the embodiments of this application. The following embodiments are used to illustrate this application, but are not intended to limit the scope of this application.

[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0049] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0050] It should be noted that the terms "first, second, third" used in the embodiments of this application are used to distinguish similar or different objects and do not represent a specific order of objects. It can be understood that "first, second, third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0051] In recent years, with the advancement of infrared focal plane array technology, infrared thermal imaging systems have been increasingly widely used in military and civilian fields such as precision guidance, temperature measurement, security, disease diagnosis, and damage detection. However, due to the current development level of infrared focal plane array technology, the response characteristics between focal plane pixels are inconsistent, resulting in non-uniformity in infrared imaging and causing the "pot lid" phenomenon in the captured images.

[0052] like Figure 1 As shown, during the use of an infrared thermal imaging system, the temperature of the optical system barrel rises, causing the edge temperature of the lens to be higher than the center, or the thermal radiation from the barrel reaches the detector through the optical lens, resulting in a phenomenon where the gray level gradually increases from the center to the edge of the image. This phenomenon is called the "pot lid" phenomenon.

[0053] The longer the instrument is used, the hotter the lens barrel becomes, and the more severe the "pot-top" effect becomes. Furthermore, the lens structure of the infrared thermal imaging system also exacerbates the "pot-top" effect. Because the shutter is located inside the thermal imaging system, in front of the focal plane, the radiation emitted by the shutter during shutter correction does not pass through the lens structure. The radiation emitted during imaging is distorted due to the lens structure, thus worsening the "pot-top" effect.

[0054] To address the "pot lid" phenomenon in the aforementioned images, corresponding processing methods have emerged in related technologies. However, common processing methods require extensive data collection during implementation, and the algorithm process is complex, necessitating the fitting of data models, thus failing to guarantee the real-time performance of image processing.

[0055] In view of this, embodiments of this application provide an image processing method applied to an electronic device, which can be various types of devices with information processing capabilities. The functions implemented by this method can be achieved by a processor in the electronic device calling program code. Of course, the program code can be stored in a computer storage medium. Therefore, the electronic device includes at least a processor and a storage medium.

[0056] Figure 2 This is a schematic diagram illustrating the implementation flow of the image processing method provided in an embodiment of this application. Figure 2 As shown, the method may include the following steps 201 to 203:

[0057] Step 201: Acquire the original image. The original image is an image in which the gray values ​​of the surrounding areas are greater than or less than the gray values ​​of the central area.

[0058] It should be noted that the original image described in the embodiments of this application refers to an image in which the gray value of the surrounding area is greater than or less than the gray value of the central area, which is manifested as the brightness of the surrounding area being greater than or less than the brightness of the central area, also known as the so-called "pot lid" phenomenon.

[0059] It should be noted that the original image can be as follows: Figure 1 The image shown can be an image where the gray values ​​of the surrounding areas are greater than those of the central area; it can also be an image where the gray values ​​of the surrounding areas are less than those of the central area; or it can be an image where the gray values ​​of one or more of the surrounding areas are greater than or less than those of the central area. This application does not limit the specific examples.

[0060] In this embodiment, the type of the original image is not limited; for example, the original image can be an infrared image. Similarly, the type of acquisition device for acquiring the original image is not limited in this embodiment. Optionally, the acquisition device can be any type of infrared thermal imager.

[0061] The so-called infrared thermal imager refers to an imaging instrument using infrared thermal imaging technology. It uses an infrared focal plane device as the core to convert the differences in infrared radiation energy emitted by the target scene and its environment to a gray scale image visible to the human eye. The infrared radiation energy in the scene is projected onto the infrared focal plane through the infrared lens, and the detector converts the radiation into an electrical signal that can reflect the strength of the infrared radiation energy, realizing the conversion from light to electricity; then the electrical signal is processed through the circuit system, and the processed infrared digital electrical signal is converted into a visible light image displayed on the display, realizing the conversion from electricity to light, and obtaining an image visible to the naked eye.

[0062] In step 202, a first temperature and a second temperature in the original image are obtained, the first temperature is used to represent the ambient temperature when the original image is collected, and the second temperature is used to represent the device temperature when the original image is collected.

[0063] In the embodiments of the present application, the manner of obtaining the first temperature and the second temperature in the original image is not limited. For example, in some embodiments, the first temperature and the second temperature are carried in the original image, and after the original image is obtained, the first temperature and the second temperature can be directly retrieved.

[0064] In addition, the manner of collecting the first temperature and the second temperature is not limited in the embodiments of the present application. For example, in some embodiments, a first temperature sensor and a second temperature sensor can be provided in the device, the first temperature sensor can be used to obtain the ambient temperature of the device when the original image is collected, and the second temperature sensor can be used to obtain the device temperature of the device when the original image is collected.

[0065] In a specific embodiment, the device temperature can be the temperature of the circuit board in the device.

[0066] In step 203, the original image is subjected to gray scale compensation processing according to the first temperature and the second temperature, and a target image is obtained, the gray scale difference value of the target image is smaller than that of the original image, and the gray scale difference value is the difference between the gray scale value of the four surrounding areas and the gray scale value of the center area of the image.

[0067] Here, after the first temperature and the second temperature of the original image are obtained, the original image can be subjected to gray scale compensation processing based on the first temperature and the second temperature to obtain a target image. In this way, the gray scale value of the four surrounding areas of the processed target image can be made to be smaller than the gray scale value of the center area. For example, as shown in FIG. 3, the target image is shown as the brightness of the four surrounding areas being substantially consistent with the brightness of the center area, solving the "pot cover" phenomenon as shown in FIG. 2. Figure 3 Figure 1

[0068] ​​In the embodiment of the present application, the original image with the gray value of the peripheral region being greater than the gray value of the central region is collected, and the first temperature and the second temperature in the original image are obtained, the first temperature is used to represent the ambient temperature when the original image is collected, and the second temperature is used to represent the device temperature when the original image is collected. Finally, the original image is subjected to gray compensation processing according to the first temperature and the second temperature to obtain a target image, the gray difference value of the target image is less than the gray difference value of the original image, and the gray difference value is the difference between the gray value of the peripheral region and the gray value of the central region of the image. In this way, when the device collects the original image, the ambient temperature and the device temperature recorded in the original image can be obtained, and then the original image is directly subjected to gray compensation according to the ambient temperature and the device temperature, so that the target image is obtained. This gray compensation method does not need to perform a large amount of data processing, can realize real-time processing of the original image, has high processing speed and good real-time performance.

[0069] Figure 4 The implementation flowchart of the image processing method provided in the embodiment of the present application is shown in FIG. 4. As shown in FIG. 4, the method can include the following steps 401 to 405. Figure 4

[0070] Step 401, an original image is collected, and the original image is an image with the gray value of the peripheral region being greater than or less than the gray value of the central region.

[0071] It can be understood that the appearance of the "pot cover" phenomenon is generally caused by the temperature rise of the optical system barrel during the use of the infrared thermal imaging system, which leads to the higher temperature of the edge of the lens than the central region, or the thermal radiation of the barrel reaches the detector through the optical lens, so that the phenomenon of different gray levels from the central region to the edge appears. The longer the instrument is used, the hotter the barrel, and the more serious the "pot cover" phenomenon.

[0072] Therefore, if the original image with the gray value of the peripheral region being greater than or less than the gray value of the central region, that is, the original image showing the "pot cover" phenomenon, is to be collected, the device temperature for collecting the original image generally needs to meet certain conditions.

[0073] Therefore, in some embodiments, the current temperature of the device can be obtained before the original image is collected. If the current temperature is greater than the threshold value, the original image is collected by the device.

[0074] Step 402, the first temperature and the second temperature in the original image are obtained, the first temperature is used to represent the ambient temperature when the original image is collected, and the second temperature is used to represent the device temperature when the original image is collected.

[0075] Step 403, the original image is subjected to information extraction processing to obtain the low-frequency information of the original image.

[0076] ​It can be understood that, due to the "pot cover" effect refers to the optical system barrel temperature rises, resulting in the edge of the lens temperature is higher than the center, or the barrel thermal radiation through the optical lens to the detector, so that the image of the four area of the brightness than the center area of the brightness. Therefore, the image is gray compensation processing, in essence, the image around the area is brighter or darker part is processed, so that it is close to the center area of the gray value.

[0077] Based on this, in the embodiment of the application, after the original image is acquired, the low-frequency information in the original image can be extracted, and the original image is compensated in gray based on the low-frequency information of the original image and the first temperature and the second temperature in the original image, to obtain a target image.

[0078] Here, the low-frequency information of the original image is basic information representing the gray level change of the image.

[0079] In some embodiments, the low-frequency information of the original image can be extracted by performing steps 501 to 502 as follows:

[0080] Step 501, filtering the original image to obtain a corresponding filtered image.

[0081] In the embodiment of the application, the specific way of filtering is not limited. For example, the filtering can be mean filtering, median filtering, Gaussian filtering, guided filtering, bilateral filtering, least squares filtering, etc.

[0082] In specific implementation, the size and parameters of the filter kernel are not limited, and can be adapted to specific use scenarios by changing the size and parameters of the filter kernel.

[0083] The guided filtering can better protect the edge details when filtering the image.

[0084] Step 502, filtering the high-frequency components of the filtered image to obtain low-frequency information.

[0085] In the embodiment of the application, the specific way of filtering the high-frequency components in the filtered image is also not limited. For example, in a preferred embodiment, the low-frequency information can be obtained by performing Fourier transform on the filtered image.

[0086] In the embodiment of the application, by performing information extraction processing on the original image, a compensation matrix of the original image can be obtained, which is denoted as im_comp.

[0087] Step 404, determining the difference between the first temperature and the second temperature as a first temperature difference.

[0088] In the embodiment of the application, the first temperature difference can be denoted as wg_cur.

[0089] In the embodiments of the present application, the execution sequence of determining the first temperature difference and obtaining the low-frequency information of the original image is not limited, which can be executed in sequence or in parallel.

[0090] In step 405, the original image is subjected to gray scale compensation processing according to the first temperature difference and the low-frequency information, to obtain a target image, the gray scale difference of the target image being smaller than that of the original image, the gray scale difference being the difference between the gray scale value of the center region and that of the four surrounding regions of the image.

[0091] In some embodiments, step 405 can be implemented by executing steps 601 to 603 as follows:

[0092] In step 601, a second temperature difference is obtained, the second temperature difference being the difference between a third temperature and a fourth temperature, the third temperature being used to represent the ambient temperature when the contrast image is captured, and the fourth temperature being used to represent the device temperature when the contrast image is captured.

[0093] Here, the timing for obtaining the second temperature difference is not limited. For example, in an embodiment, when the device is shipped, it is used to a hot state (i.e., the device temperature is greater than a certain threshold), one or more contrast images are captured using the device, the capture temperature (third temperature) and the device temperature (fourth temperature) of the contrast image are obtained, and they are stored in the device. Further, after obtaining the capture temperature (third temperature) and the device temperature (fourth temperature) of the contrast image, the corresponding second temperature difference is calculated based on the third temperature and the fourth temperature, and the second temperature difference is stored in the device.

[0094] This method of obtaining the second temperature difference can effectively reduce the calculation amount of the device when the original image is subjected to gray scale compensation processing, and improve the real-time performance of the original image subjected to gray scale compensation processing.

[0095] In some embodiments, the second temperature difference can be represented by wg_max.

[0096] In step 602, the ratio of the second temperature difference and the first temperature difference is determined as the compensation coefficient of the original image.

[0097] Here, the compensation coefficient can be represented by F(wg_cur, wg_max).

[0098] In step 603, the original image is subjected to gray scale compensation processing according to the compensation coefficient and the low-frequency information, to obtain a target image.

[0099] In some embodiments, step 603 can be implemented by executing steps 701 to 702 as follows:

[0100] Step 701, a product of the compensation coefficient and the low frequency information is determined as a gray compensation value of the original image.

[0101] Here, the compensation matrix is denoted as im_, the compensation coefficient is denoted as F(wg_cur, wg_max), and the gray compensation value can be denoted as im_*F(wg_cur, wg_max).

[0102] Step 702, the original image is subjected to gray compensation processing according to the gray compensation value, to obtain a target image.

[0103] Here, the specific implementation of the gray compensation processing of the original image according to the gray compensation value is not limited. In a preferred embodiment, the gray compensation value can be superimposed with the gray value of the original image to obtain the target image, i.e., the gray value of the target image im1=im+im_*F(wg_cur, wg_max), where im is the gray value of the original image.

[0104] As shown in Figure 8 the image processing method provided in the embodiments of the present application can process the original image (which shows that the brightness of the surrounding area is different from that of the center area) whose gray value of the surrounding area is greater than or less than that of the center area, into a target image (which shows that the brightness of the surrounding area is close to that of the center area) whose gray value of the surrounding area is relatively uniform with that of the center area.

[0105] In the embodiments of the present application, after the original image whose gray value of the surrounding area is greater than or less than that of the center area is collected, the ambient temperature and the device temperature in the original image can be obtained, and the original image is subjected to filtering processing to obtain a filtered image; and the high frequency component of the filtered image is filtered to obtain low frequency information; and the original image is subjected to gray compensation processing according to the second temperature difference value of the ambient temperature and the device temperature of the pre-stored contrast image, the first temperature difference value of the ambient temperature and the device temperature of the original image, and the low frequency information, to obtain a target image. This gray compensation method does not need to perform a large amount of data processing, can realize real-time processing of the original image, has fast processing speed, and has good real-time performance.

[0106] It should be understood that although each step in the above flowcharts is shown in sequence according to the direction of the arrow, the steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, the execution of the steps is not strictly limited in sequence, and the steps can be executed in other orders. Moreover, at least part of the steps in the above flowcharts can include multiple sub-steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of the sub-steps or stages is not necessarily sequential, but can be alternately executed with at least part of other steps or sub-steps or stages of other steps.

[0107] Based on the foregoing embodiments, the embodiments of the present application provide an image processing device, which comprises the modules included and the units included in the modules, and can be realized by a processor; of course, it can also be realized by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), etc.

[0108] Figure 9 The structural schematic diagram of the image processing device provided by the embodiments of the present application is shown in FIG. 9, which comprises an acquisition module 901, an acquisition module 902 and a processing module 903, wherein: Figure 9 The acquisition module 901 is configured to acquire an original image, wherein the original image is an image whose gray value of a peripheral region is greater than or less than a gray value of a central region.

[0109] The acquisition module 901 is configured to acquire an original image, wherein the original image is an image whose gray value of a peripheral region is greater than or less than a gray value of a central region.

[0110] The acquisition module 902 is configured to acquire a first temperature and a second temperature in the original image, wherein the first temperature is used to represent an ambient temperature when the original image is acquired, and the second temperature is used to represent a device temperature when the original image is acquired.

[0111] The processing module 903 is configured to perform gray compensation processing on the original image according to the first temperature and the second temperature to obtain a target image, wherein a gray difference value of the target image is less than a gray difference value of the original image, and the gray difference value is a difference between a gray value of a peripheral region and a gray value of a central region of an image.

[0112] In some embodiments, the processing module 903 includes an extraction module, a determination module, and a processing submodule. The extraction module is used to perform information extraction processing on the original image to obtain low-frequency information of the original image. The determination module is used to determine the difference between the first temperature and the second temperature as a first temperature difference. The processing submodule is used to perform grayscale compensation processing on the original image based on the first temperature difference and the low-frequency information to obtain the target image.

[0113] In some embodiments, the extraction module is specifically used to filter the original image to obtain a corresponding filtered image; and to filter the high-frequency components of the filtered image to obtain the low-frequency information.

[0114] In some embodiments, the acquisition module 902 is further configured to acquire a second temperature difference value, the second temperature difference value being the difference between a pre-stored third temperature and a fourth temperature, the third temperature being used to characterize the ambient temperature when acquiring the comparison image, and the fourth temperature being used to characterize the device temperature when acquiring the comparison image; the determination module is further configured to determine the ratio of the second temperature difference value to the first temperature difference value as a compensation coefficient for the original image; the processing submodule is further configured to perform grayscale compensation processing on the original image according to the compensation coefficient and the low-frequency information to obtain the target image.

[0115] In some embodiments, the processing submodule is specifically used to determine the product of the compensation coefficient and the low-frequency information as the grayscale compensation value for the original image; and to perform grayscale compensation processing on the original image according to the grayscale compensation value to obtain the target image.

[0116] In some embodiments, the filtering process is a guided filtering process, and filtering the high-frequency components of the filtered image is performed by performing a Fourier transform on the filtered image.

[0117] In some embodiments, the acquisition module 902 is further configured to acquire the current temperature of the device; the acquisition module 901 is further configured to acquire the original image through the device when it is determined that the current temperature is greater than a threshold.

[0118] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0119] It should be noted that, in the embodiments of this application... Figure 9The division of the image processing apparatus into modules shown is illustrative, and is merely a logical functional division. Actual implementation can have another division manner. In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or can be physically separated, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware, or in the form of a software functional unit. The integrated unit can also be realized in the form of a combination of software and hardware.

[0120] It should be noted that, in the embodiments of the present application, if the above-mentioned method is realized in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a plurality of instructions for causing an electronic device to execute all or part of the method described in the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, and various storage medium capable of storing program codes. Thus, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0121] The computer device provided in the embodiments of the present application can be a server, and an internal structure diagram thereof can be as shown in the figure. Figure 10 The computer device includes a processor, a memory and a network interface connected through a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program is executed by the processor to implement the image processing method described above.

[0122] The computer readable storage medium provided in the embodiments of the present application stores a computer program, and the computer program is executed by the processor to implement the steps in the method provided in the above embodiments.

[0123] The computer program product provided in the embodiments of the present application includes instructions, and when it runs on a computer, it causes the computer to execute the steps in the image processing method provided in the above method embodiments.

[0124] Those skilled in the art can understand that, Figure 10The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0125] In one embodiment, the image processing apparatus provided by the present application can be implemented in the form of a computer program, which can run on the computer device as shown in the figure. The memory of the computer device can store various program modules constituting the image processing apparatus. The computer program constituted by the various program modules makes the processor execute the steps in the method of each embodiment of the present application described in the specification. Figure 10 In one embodiment, the image processing apparatus provided by the present application can be implemented in the form of a computer program, which can run on the computer device as shown in the figure. The memory of the computer device can store various program modules constituting the image processing apparatus. The computer program constituted by the various program modules makes the processor execute the steps in the method of each embodiment of the present application described in the specification.

[0126] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details of the present application that are not disclosed in the storage medium, storage medium and device embodiments, please refer to the description of the method embodiments.

[0127] It should be understood that the "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" or "in some embodiments" appearing throughout the specification does not necessarily mean the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above processes does not mean the execution order, and the execution order of the processes should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above sequence number of the embodiments of the present application is only for description, not representing the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between each embodiment, and the same or similar parts can be referred to each other. For the sake of brevity, this paper will not repeat here.

[0128] The term "and / or" in this paper is only a description of the association relationship of the associated objects, which means that there can be three kinds of relationships, for example, object A and / or object B, which can represent the existence of object A alone, the existence of object A and object B together, and the existence of object B alone.

[0129] It should be noted that, in the present document, the terms "comprising", "containing", or any other similar term are intended to encompass non-exclusive inclusion, such that processes, methods, articles, or apparatuses that comprise a list of elements are not limited to those elements, but can also include other elements not expressly listed, or inherent to such processes, methods, articles, or apparatuses. Without further limitation, an element defined by the phrase "comprising a" does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0130] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The above-described embodiments are merely illustrative, for example, the division of the modules is only a logical function division, and actual implementation can have another division manner, such as: a plurality of modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed components can be indirect coupling or communication connection between some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0131] The modules described above as separate components can or can not be physically separated, and the components displayed as modules can or can not be physical modules; they can be located in one place or distributed on multiple network units; and part or all of the modules can be selected according to actual needs to achieve the purpose of the present embodiment.

[0132] In addition, each functional module in each embodiment of the present application can be integrated in one processing unit, or each module can be a separate unit, or two or more modules can be integrated in one unit; the integrated module can be realized in the form of hardware or hardware plus software function unit.

[0133] Those of ordinary skill in the art can understand that all or part of the steps of the above method embodiments can be completed by program instruction related hardware, and the foregoing program can be stored in a computer readable storage medium, and the program executes the steps of the above method embodiments when executed; and the foregoing storage medium includes mobile storage devices, read only memory (ROM), magnetic discs or optical discs, and various storage medium that can store program codes.

[0134] Alternatively, the above-mentioned integrated units of the present application, if realized in the form of software function modules and sold or used as independent products, can also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, and includes several instructions for causing an electronic device to execute all or part of the methods described in the embodiments of the present application. The aforementioned storage medium includes: mobile storage devices, ROM, magnetic disks or optical disks, and various media capable of storing program codes.

[0135] The methods disclosed in the several method embodiments provided by the present application can be combined arbitrarily without conflict, to obtain new method embodiments.

[0136] The features disclosed in the several product embodiments provided by the present application can be combined arbitrarily without conflict, to obtain new product embodiments.

[0137] The features disclosed in the several method or device embodiments provided by the present application can be combined arbitrarily without conflict, to obtain new method or device embodiments.

[0138] The above is only an implementation of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. An image processing method, characterized by, The method comprises: collecting an original image, the original image being an image with a gray value of a peripheral region being greater or smaller than a gray value of a central region; obtaining a first temperature and a second temperature in the original image, the first temperature being used to represent an ambient temperature at the time of collecting the original image, and the second temperature being used to represent a device temperature at the time of collecting the original image; performing gray compensation processing on the original image according to the first temperature and the second temperature to obtain a target image, the target image having a gray difference value smaller than a gray difference value of the original image, the gray difference value being a difference between a gray value of a peripheral region and a gray value of a central region of an image; wherein the performing gray compensation processing on the original image according to the first temperature and the second temperature to obtain a target image comprises: performing information extraction processing on the original image to obtain low-frequency information of the original image; determining a difference between the first temperature and the second temperature as a first temperature difference; obtaining a second temperature difference, the second temperature difference being a difference between a third temperature and a fourth temperature, the third temperature being used to represent an ambient temperature at the time of collecting a comparison image, and the fourth temperature being used to represent a device temperature at the time of collecting the comparison image; determining a ratio between the second temperature difference and the first temperature difference as a compensation coefficient for the original image; performing gray compensation processing on the original image according to the compensation coefficient and the low-frequency information to obtain the target image.

2. The method of claim 1, wherein, The performing information extraction processing on the original image to obtain low-frequency information of the original image comprises: performing filter processing on the original image to obtain a corresponding filter image; filtering high-frequency components of the filter image to obtain the low-frequency information.

3. The method of claim 1, wherein, The performing gray compensation processing on the original image according to the compensation coefficient and the low-frequency information to obtain the target image comprises: determining a product of the compensation coefficient and the low-frequency information as a gray compensation value for the original image; performing gray compensation processing on the original image according to the gray compensation value to obtain the target image.

4. The method of claim 2, wherein, The filter processing is a guided filter processing, and the filtering high-frequency components of the filter image is a Fourier transform processing on the filter image.

5. The method of claim 1, wherein, Before collecting the original image, the method further comprises: obtaining a current temperature of a device; in a case where the current temperature is greater than a threshold value, collecting the original image by the device.

6. An image processing apparatus characterized by comprising: comprises: a collecting module configured to collect an original image, the original image being an image with a gray value of a peripheral region being greater or smaller than a gray value of a central region; an obtaining module configured to obtain a first temperature and a second temperature in the original image, the first temperature being used to represent an ambient temperature at the time of collecting the original image, and the second temperature being used to represent a device temperature at the time of collecting the original image; The processing module is configured to perform gray scale compensation processing on the original image according to the first temperature and the second temperature to obtain a target image, and a gray scale difference value of the target image is smaller than a gray scale difference value of the original image, the gray scale difference value being a difference between a gray scale value of a center region and a gray scale value of a surrounding region of the image. The processing module is specifically configured to perform information extraction processing on the original image to obtain low-frequency information of the original image. A difference between the first temperature and the second temperature is determined as a first temperature difference value. A second temperature difference value is obtained, the second temperature difference value being a difference between a third temperature and a fourth temperature, the third temperature being used to represent an ambient temperature when a contrast image is collected, and the fourth temperature being used to represent a device temperature when the contrast image is collected. A ratio of the second temperature difference value to the first temperature difference value is determined as a compensation coefficient for the original image. According to the compensation coefficient and the low-frequency information, the original image is subjected to gray scale compensation processing to obtain the target image.

7. A computer device comprising a memory and a processor, the memory storing a computer program capable of running on the processor, characterized in that, The processor executes the program to implement the steps of the method in any one of claims 1 to 5.

8. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the method in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method for suppressing "pan lid effect" of real-time infrared image

    CN110567585A

  • Power equipment key feature extraction method and system based on infrared thermal image processing

    CN112101365A