An infrared image processing method, device, equipment and readable storage medium
By reducing the brightness and saturation of heat sources and backgrounds in infrared images, the problem of infrared images exposing users in low-light nighttime scenes is solved, achieving user concealment and clear observation of heat sources.
Patent Information
- Application Number
- CN202311043026.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-18
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2043-08-18
AI Technical Summary
When using infrared images in low-light environments such as at night, overly bright infrared images can easily expose the user, leading to security risks.
By identifying heat sources and backgrounds in infrared images, the brightness and saturation of heat sources and backgrounds are reduced, so that the brightness reduction value of heat sources is less than that of the background, and the saturation reduction value is greater than that of the background, thereby reducing the overall brightness of the infrared image and highlighting the heat sources.
It effectively prevents users from being exposed in low-light conditions at night, ensuring user safety and facilitating the observation of heat sources while reducing disturbance to the target.
Smart Images

Figure CN117058035B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing technology, and more specifically, to an infrared image processing method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] Currently, infrared images can be captured using electronic products that support infrared imaging, or electronic products that do not support infrared imaging can be connected to thermal imaging devices to acquire infrared images, enabling hunting and tracking in low-light environments such as at night. However, when using electronic products to display infrared images in low-light environments such as at night, if the infrared image is too bright, it can easily expose the user, putting them in danger or allowing prey to escape.
[0003] In conclusion, how to avoid exposing the user's own identity when using the device in scenarios such as nighttime 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 application is to provide an infrared image processing method, apparatus, electronic device and readable storage medium for use in scenarios such as nighttime to avoid exposing the user.
[0005] To achieve the above objectives, this application provides the following technical solution:
[0006] An infrared image processing method, comprising:
[0007] Acquire infrared images and identify heat sources and backgrounds from the infrared images;
[0008] The brightness of the heat source and the background are reduced, and the saturation of the heat source and the background is reduced to obtain a processed infrared image; wherein the brightness reduction value of the heat source is less than the brightness reduction value of the background, and the saturation reduction value of the heat source is greater than the saturation reduction value of the background.
[0009] The processed infrared image is then displayed.
[0010] Preferably, before displaying the processed infrared image, the method further includes:
[0011] If the display screen used to display the processed infrared image contains a display icon, then the color of the display icon is converted to a color with a brightness lower than a first preset brightness.
[0012] Preferably, converting the color of the displayed icon to a color with a brightness lower than a first preset brightness includes:
[0013] Add a preset percentage or more of black to the color of the displayed icon.
[0014] Preferably, after identifying the heat source and background from the infrared image, the method further includes:
[0015] The heat source is outlined using a color other than the current color of the background.
[0016] Preferably, after identifying the heat source and background from the infrared image, the method further includes:
[0017] The background is marked with a color whose brightness is lower than the second preset brightness.
[0018] The heat source is identified using a color other than the current background color and white.
[0019] Preferably, after acquiring the infrared image, the process further includes:
[0020] Determine if the user has switched to stealth mode;
[0021] If so, then the step of identifying the heat source and background from the infrared image is performed.
[0022] Preferably, determining whether to switch to stealth mode includes:
[0023] Obtain the ambient brightness of the environment corresponding to the infrared image, and determine whether the ambient brightness is less than a preset brightness.
[0024] Alternatively, determine whether a stealth mode switching command has been received;
[0025] If the ambient brightness is less than the preset brightness, or if the stealth mode switching command is received, then it is determined to switch to the stealth mode.
[0026] Preferably, reducing the brightness of the heat source and the background, and reducing the saturation of the heat source and the background, includes:
[0027] The brightness of the heat source and the background is reduced according to the ambient brightness, and the saturation of the heat source and the background is reduced according to the ambient brightness.
[0028] Preferably, acquiring infrared images includes:
[0029] The infrared image captured by the thermal imaging device is acquired.
[0030] An electronic device, comprising:
[0031] Memory, used to store computer programs;
[0032] A processor, configured to implement the steps of the infrared image processing method as described in any of the preceding claims when executing the computer program.
[0033] A readable storage medium storing a computer program that, when executed by a processor, implements the steps of the infrared image processing method as described in any of the preceding claims.
[0034] This application provides an infrared image processing method, apparatus, electronic device, and readable storage medium. The method includes: acquiring an infrared image; identifying a heat source and a background from the infrared image; reducing the brightness of the heat source and the background, and reducing the saturation of the heat source and the background to obtain a processed infrared image; wherein the reduction in brightness of the heat source is less than the reduction in brightness of the background, and the reduction in saturation of the heat source is greater than the reduction in saturation of the background; and displaying the processed infrared image.
[0035] The technical solution disclosed in this application identifies heat sources and backgrounds from the acquired infrared image and reduces the brightness and saturation of both to lower the overall brightness of the infrared image, making it darker. Furthermore, when reducing the saturation of the heat source, the reduction in saturation is greater than that of the background to avoid excessive brightness due to high saturation of the heat source. This effectively hides the processed infrared image from the user in low-light conditions such as at night, preventing user exposure and avoiding disturbing the target. Moreover, when reducing the brightness of the heat source and background, the reduction in brightness is made smaller than that of the background, resulting in a relatively higher brightness for the heat source. This makes the heat source stand out in the processed infrared image, allowing the user to observe it clearly and intuitively. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in the embodiments of this application 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 this application. 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 this application embodiment;
[0038] Figure 2 This is a schematic diagram illustrating the display of a processed infrared image on a display screen, as provided in an embodiment of this application.
[0039] Figure 3 This is a schematic diagram of the processed infrared image displayed after outlining a heat source in an infrared image, as provided in an embodiment of this application.
[0040] Figure 4This is a schematic diagram of the structure of an infrared image processing device provided in an embodiment of this application;
[0041] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0042] When users use electronic products to display infrared images in low-light environments such as at night, if the infrared image is too bright, it is very easy to expose themselves, which may put the user in a dangerous situation or allow the prey to escape.
[0043] Therefore, this application provides an infrared image processing method, apparatus, device, and readable storage medium for reducing the brightness of infrared images to avoid exposing the user and to avoid disturbing the target.
[0044] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0045] See Figure 1 The flowchart illustrates an infrared image processing method provided in an embodiment of this application. This infrared image processing method may include:
[0046] S11: Acquire infrared images and identify heat sources and backgrounds from the infrared images.
[0047] The subject of this application can be a portable electronic device with a display screen, such as a mobile phone. When a user uses an electronic device to display an infrared image for hunting or tracking in a low-light scene (i.e., the target scene) at night, the electronic device can acquire the infrared image corresponding to the target scene and identify the heat source and background from the infrared image. The heat source is generally the target that the user wants to hunt or track, and the heat source is the area in the infrared image with a higher temperature than the background, specifically the area with the highest temperature in the infrared image.
[0048] S12: Reduce the brightness of the heat source and the background, and reduce the saturation of the heat source and the background to obtain the processed infrared image; wherein, the reduction value of the brightness of the heat source is less than the reduction value of the brightness of the background, and the reduction value of the saturation of the heat source is greater than the reduction value of the saturation of the background.
[0049] After identifying the heat source and background from the infrared image, the brightness (i.e., original brightness) and saturation (i.e., original saturation) of the heat source can be obtained, as can the brightness (i.e., original brightness) and saturation (i.e., original saturation) of the background.
[0050] In this application, to avoid excessive brightness in the acquired infrared image that could expose or disturb the user's observation of the target, the brightness and saturation of the heat source and background in the infrared image can be reduced to obtain a processed infrared image. Considering that infrared images are generally black and white, and since the heat source temperature is higher than the background temperature, the heat source is brighter than the background (i.e., the heat source is white and the background is black in a black and white image), to effectively reduce the brightness of the infrared image and highlight the heat source so that the user can clearly observe the heat source in the processed infrared image, the brightness reduction value of the heat source can be less than the brightness reduction value of the background. Brightness can be understood as grayscale, and the brightness reduction value is in percentage form (this percentage form is the ratio of the reduced brightness value of the corresponding part to the original brightness value, that is, the ratio of the brightness value of the corresponding part in the processed infrared image to the brightness value in the infrared image). The brightness reduction values of both the heat source and the background are greater than 0. For example, the brightness reduction value of the heat source can be 30% (i.e., the heat source brightness can be reduced by 30% from its original value), and the brightness reduction value of the background can be greater than 70%. Furthermore, the saturation reduction value of the heat source is greater than that of the background saturation reduction value. The saturation reduction values are all in percentage form (this percentage form is the ratio of the reduced saturation of the corresponding part to the original saturation, that is, the ratio of the saturation of the corresponding part in the processed infrared image to the saturation in the infrared image). Moreover, the saturation reduction values of the heat source and the background can be greater than 0. For example, the saturation reduction value of the heat source can be 30% (that is, the heat source can be reduced by 30% based on the original saturation of the heat source), and the saturation reduction value of the background can be 15%-20%.
[0051] Reducing the brightness of both the heat source and the background darkens the overall infrared image, facilitating user concealment. Controlling the reduction in heat source brightness to be less than the background brightness ensures the heat source is brighter than the background, making it more prominent and easier for users to observe. This avoids background interference. Saturation refers to color purity; a higher percentage indicates a purer color. Reducing the saturation of both the heat source and the background lowers their color purity, darkening the overall infrared image. Since the heat source contains color, excessive saturation will result in an overly bright infrared image, while the background is predominantly black. Therefore, the heat source needs a significant reduction in saturation, while black does not require much reduction. The reduction in heat source saturation can be greater than the reduction in background saturation, and this reduction can exceed a preset threshold. This threshold can be set according to actual needs to prevent the heat source from becoming too bright due to excessive saturation; for example, it could be 20%. By making the heat source saturation reduction value greater than the background saturation reduction value, the heat source can be prevented from being too bright and reflecting light, thus effectively achieving invisibility for the user and avoiding disturbing the target.
[0052] Step S12 can darken the infrared image as a whole, making it easier to hide from the user and highlight the heat source in the darkened infrared image, so that the user can intuitively observe the heat source from the overall darkened infrared image.
[0053] S13: Display the processed infrared image.
[0054] After the processed infrared image is obtained in step S12, it can be displayed on the screen of an electronic device, allowing the user to observe it. Because the processed infrared image is generally darkened, it avoids disturbing the target and effectively conceals the user, ensuring their safety. Furthermore, since the processed infrared image highlights heat sources, the user can clearly and intuitively observe the target, facilitating better hunting or tracking.
[0055] The technical solution disclosed in this application identifies heat sources and backgrounds from the acquired infrared image and reduces the brightness and saturation of both to lower the overall brightness of the infrared image, making it darker. Furthermore, when reducing the saturation of the heat source, the reduction in saturation is greater than that of the background to avoid excessive brightness due to high saturation of the heat source. This effectively conceals the processed infrared image from the user in low-light conditions such as at night, preventing user exposure and avoiding disturbing the target. Moreover, when reducing the brightness of the heat source and background, the reduction in brightness is made smaller than that of the background, resulting in a relatively higher brightness for the heat source. This highlights the heat source when displaying the processed infrared image, allowing the user to observe it clearly and intuitively.
[0056] An infrared image processing method provided in this application embodiment may further include, before displaying the processed infrared image:
[0057] If the display screen used to display the processed infrared image contains a display icon, the color of the display icon will be converted to a color with a brightness lower than the first preset brightness.
[0058] In this application, before displaying the processed infrared image, the display screen for displaying the processed infrared image includes display icons, such as a photo-taking icon or a video-taking icon. To avoid the user being exposed or disturbing the target due to excessive brightness of these display icons, the color of the display icons can be converted to a color with a brightness lower than a first preset brightness. Brightness can be simply understood as the luminance of a color. The first preset brightness can be set according to human visual perception, etc.
[0059] Changing the color of the display icon to a color with a brightness level lower than a first preset level reduces the brightness of the display icon on the screen. Therefore, when displaying the processed image on a screen with display icons, the overall screen brightness is reduced, better concealing the user and preventing them from being detected or disturbed. See details in [link to relevant documentation]. Figure 2 It illustrates a schematic diagram of displaying a processed infrared image on a display screen according to an embodiment of this application. Figure 2 As can be seen, only the heat source (wild duck) is highlighted, while the background and the icons on the display screen are not highlighted. Users can intuitively and clearly observe the location and number of heat sources from this image.
[0060] This application provides an infrared image processing method that converts the color of a display icon into a color with a brightness lower than a first preset brightness, which may include:
[0061] Add a preset percentage or more of black to the color of the displayed icon.
[0062] In this application, when converting the color of the display icon to a color with a brightness lower than a first preset brightness, the specific method involves obtaining the color of the display icon and adding a preset percentage or more of black to the color of the display icon, where the preset percentage can be 70%. This method can effectively reduce the brightness of the display icon color, thereby preventing the display screen from exposing or disturbing the target due to the display icon being too bright when displaying the processed infrared image.
[0063] Alternatively, when converting the color of the display icon to a color with a brightness lower than the first preset brightness, a pure color other than black can be selected, and black with a preset percentage or more can be added to the pure color to obtain a processed color. This processed color can then be used to replace the current color of the display icon, thereby reducing the brightness of the display icon.
[0064] An infrared image processing method provided in this application embodiment, after identifying the heat source and background from the infrared image, may further include:
[0065] Use a color other than the current background color to outline the heat source.
[0066] In this application, after identifying the heat source and background from the infrared image, the heat source can be outlined using a color other than the current color of the background. That is, any color other than the current color of the background can be used to depict the outline of the heat source. The outlining color can be a single color or multiple colors, with each color specifically outlining a portion of the heat source's outline.
[0067] Using a color other than the current background color for outlining effectively distinguishes the heat source from the background, highlighting the heat source and allowing users to more intuitively observe the heat source information in the processed infrared image. See details in [link to relevant documentation]. Figure 3 This illustration shows a schematic diagram of a processed infrared image displayed after outlining a heat source in an infrared image, as provided in an embodiment of this application. Figure 3 The heat source (lid-covered cup) is outlined in white to make it stand out. Additionally, in... Figure 3 In the middle, the display screen contains display icons, and the color of the display icons has been changed to a color with a brightness lower than the first preset brightness.
[0068] An infrared image processing method provided in this application embodiment, after identifying the heat source and background from the infrared image, may further include:
[0069] Use a color with a brightness lower than the second preset brightness to mark the background;
[0070] Heat sources are identified using colors other than the current background color and white.
[0071] In this application, after identifying the heat source and background from the infrared image, the background can be marked with a color whose brightness is lower than a second preset brightness; that is, a low-brightness color can be used to mark the background. The second preset brightness can be set according to the actual situation. The color with a brightness lower than the second preset brightness can be a color such as black or gray, and the color with a brightness lower than the second preset brightness can be a single color or a gradient color.
[0072] Additionally, for heat sources, a color other than the current background color and white can be used to identify them. Using a color other than the current background color effectively distinguishes the heat source from the background, allowing users to clearly observe it. Using a color other than white highlights the heat source and prevents it from being too bright. It should be noted that a single color or a gradient color other than the current background color and white can be used to identify the heat source.
[0073] The above process can improve the diversity of processed infrared image displays and enhance the user experience.
[0074] An infrared image processing method provided in this application embodiment may further include, after acquiring an infrared image:
[0075] Determine if the user has switched to stealth mode;
[0076] If so, proceed with the step of identifying the heat source and background from the infrared image.
[0077] In this application, after acquiring an infrared image, the electronic device can determine whether it has switched to stealth mode.
[0078] If the electronic device switches to stealth mode, it will perform the step of identifying the heat source and background from the infrared image. This can be done by performing steps S11-S13 and other related steps to darken the infrared image as a whole, thereby achieving stealth from the user and avoiding disturbing the target.
[0079] If the electronic device is not switched to stealth mode, for example, when the user is in a bright scene such as during the day, the infrared image can be displayed directly after it is acquired, so that the user can directly view the heat source from the acquired raw infrared image.
[0080] This application provides an infrared image processing method for determining whether to switch to stealth mode, which may include:
[0081] Obtain the ambient brightness corresponding to the infrared image and determine whether the ambient brightness is less than the preset brightness.
[0082] Alternatively, determine whether a stealth mode switching command has been received;
[0083] If the ambient brightness is lower than the preset brightness, or if a stealth mode switching command is received, then switch to stealth mode.
[0084] In this application, when determining whether to switch to stealth mode, the electronic device can first acquire the ambient brightness of the environment corresponding to the infrared image. Specifically, the electronic device can collect the ambient brightness of the environment corresponding to the infrared image, or it can automatically identify the ambient brightness of the corresponding environment based on the infrared image after acquiring it. Then, it can determine whether the ambient brightness is less than a preset brightness. The preset brightness can be set based on the ambient brightness required to expose the user and disturb the target when using the infrared image normally, or based on the ambient brightness at night, or based on empirical needs, etc. If the ambient brightness is less than the preset brightness, it indicates that the ambient brightness is relatively low and the environment in which the infrared image is located is relatively dark. In this case, the electronic device can switch to stealth mode. If the ambient brightness is not less than the preset brightness, it indicates that the ambient brightness is relatively high and the environment in which the infrared image is located is relatively bright, which is a daytime scene. In this case, in order to allow the user to track and observe the heat source normally and clearly, the electronic device can choose not to switch to stealth mode and display the infrared image in normal mode. Especially during the transition from day to night, specifically in the late afternoon / early evening, electronic devices can automatically detect the decrease in ambient brightness. When the ambient brightness drops below a preset level, they automatically switch from normal mode to stealth mode. Conversely, during the transition from night to day, specifically in the early morning / early morning, electronic devices can automatically detect the increase in ambient brightness. When the ambient brightness increases to a preset level, they automatically switch from stealth mode to normal mode. This process allows electronic devices to automatically switch between stealth and stealth modes based on ambient brightness conditions.
[0085] Besides automatic switching of stealth mode by electronic devices, users can also initiate the switch by sending stealth mode switching commands. Specifically, when a user needs to achieve stealth, they can send a stealth mode switching command to the electronic device through at least one of the following methods: clicking a stealth mode switching button, typing "switch to stealth mode" in text, or typing "switch to stealth mode" in voice. The electronic device then determines whether it has switched to stealth mode by receiving the command. If it does, it confirms that it has switched from normal mode to stealth mode and can then proceed with the step of identifying heat sources and backgrounds from the infrared image. If it does not receive the command, it confirms that it has not switched from normal mode to stealth mode and can then display the acquired infrared image. This method allows users to manually switch stealth mode according to their needs, thereby meeting user requirements and improving the user experience.
[0086] This application provides an infrared image processing method that reduces the brightness of the heat source and the background, and reduces the saturation of the heat source and the background, including:
[0087] Reduce the brightness of the heat source and background based on the ambient brightness, and reduce the saturation of the heat source and background based on the ambient brightness.
[0088] In this application, after acquiring the ambient brightness of the environment corresponding to the infrared image and switching to stealth mode based on the ambient brightness, when reducing the brightness and saturation of the heat source and background, the brightness and saturation of the heat source and background can be reduced according to the ambient brightness. Specifically, when the ambient brightness is less than a preset brightness, a first relationship can be pre-established between the ambient brightness and the reduction values of the heat source brightness and background brightness, and a second relationship can be pre-established between the ambient brightness and the reduction values of the heat source saturation and background saturation. Then, the brightness of the heat source and background can be reduced according to the ambient brightness and the pre-established first relationship, and the saturation of the heat source and background can be reduced according to the ambient brightness and the pre-established second relationship.
[0089] In both the first and second relationships, ambient brightness is negatively correlated with the reduction values of heat source brightness, background brightness, heat source saturation, and background saturation. That is, the lower the ambient brightness, the greater these reduction values; conversely, the higher the ambient brightness, the smaller these reduction values. In the first relationship, ambient brightness can be divided into multiple intervals, each corresponding to a reduction value for both heat source and background brightness, with the heat source brightness reduction value being less than the background brightness reduction value. In the second relationship, ambient brightness can also be divided into multiple intervals (the division method can be the same as in the first relationship), each corresponding to a reduction value for both heat source and background saturation, with the heat source saturation reduction value being greater than the background saturation reduction value.
[0090] The above method enables the adaptive adjustment of the brightness and saturation reduction values of the heat source and background when the ambient brightness is lower than the preset brightness. This allows for better reduction of screen brightness, improving stealth and better meeting the comfort of human eye observation.
[0091] This application provides an infrared image processing method for acquiring infrared images, which may include:
[0092] Acquire infrared images captured by thermal imaging equipment.
[0093] In this application, electronic devices can connect to the thermal imaging device wirelessly via Wi-Fi, Bluetooth, or other means, or they can connect via a physical interface, such as directly plugging the thermal imaging device into a mobile phone or other electronic device. The thermal imaging device captures an infrared image of the target scene and sends it to the electronic device. The electronic device can then acquire the infrared image captured by the thermal imaging device to obtain the infrared image.
[0094] Of course, if the electronic device itself supports infrared image capture, it can capture infrared images of the target scene to obtain infrared images of the target scene.
[0095] This application also provides an infrared image processing device, see [link to relevant documentation]. Figure 4 It shows a schematic diagram of the structure of an infrared image processing device provided in an embodiment of this application, which may include:
[0096] Acquisition module 41 is used to acquire infrared images and identify heat sources and backgrounds from the infrared images;
[0097] The reduction module 42 is used to reduce the brightness of the heat source and the background, and reduce the saturation of the heat source and the background to obtain the processed infrared image; wherein, the brightness reduction value of the heat source is less than the brightness reduction value of the background, and the saturation reduction value of the heat source is greater than the saturation reduction value of the background.
[0098] Display module 43 is used to display the processed infrared image on the display screen.
[0099] An infrared image processing apparatus provided in this application embodiment may further include:
[0100] The conversion module is used to convert the color of the display icon to a color with a brightness lower than a first preset brightness if the display screen used to display the processed infrared image contains a display icon before the processed infrared image is displayed.
[0101] This application provides an infrared image processing device, the conversion module of which may include:
[0102] Add a unit to add a preset percentage or more of black to the color of the displayed icon.
[0103] An infrared image processing apparatus provided in this application embodiment may further include:
[0104] The outlining module is used to outline the heat source using a color other than the current color of the background after identifying the heat source and background from the infrared image.
[0105] An infrared image processing apparatus provided in this application embodiment may further include:
[0106] The first identification module is used to identify the heat source and background from the infrared image and then identify the background using a color with a brightness lower than the second preset brightness.
[0107] The second identification module is used to identify heat sources using colors other than the current background color and white.
[0108] An infrared image processing apparatus provided in this application embodiment may further include:
[0109] The judgment module is used to determine whether to switch to stealth mode after acquiring the infrared image;
[0110] The execution module is used to perform the steps of identifying heat sources and backgrounds from infrared images if the stealth mode is switched.
[0111] This application provides an infrared image processing device, wherein the judgment module may include:
[0112] The first judgment unit is used to obtain the ambient brightness of the environment corresponding to the infrared image and to determine whether the ambient brightness is less than the preset brightness.
[0113] Alternatively, the second judgment unit is used to determine whether a stealth mode switching command has been received;
[0114] The determining unit is used to determine whether to switch to stealth mode if the ambient brightness is less than the preset brightness or if a stealth mode switching command is received.
[0115] An infrared image processing device provided in this application embodiment may include an acquisition module 41 that includes:
[0116] The acquisition unit is used to acquire infrared images captured by the thermal imaging device.
[0117] This application also provides an electronic device, see [link to relevant documentation] Figure 5 It illustrates a structural schematic diagram of an electronic device provided in an embodiment of this application, which may include:
[0118] Memory 51 is used to store computer programs;
[0119] When processor 52 executes a computer program stored in memory 51, it can perform the following steps:
[0120] Acquire an infrared image and identify the heat source and background from it; reduce the brightness and saturation of the heat source and background to obtain a processed infrared image; wherein the brightness reduction value of the heat source is less than the brightness reduction value of the background, and the saturation reduction value of the heat source is greater than the saturation reduction value of the background; display the processed infrared image.
[0121] This application embodiment also provides a readable storage medium storing a computer program, which, when executed by a processor, can perform the following steps:
[0122] Acquire an infrared image and identify the heat source and background from it; reduce the brightness and saturation of the heat source and background to obtain a processed infrared image; wherein the brightness reduction value of the heat source is less than the brightness reduction value of the background, and the saturation reduction value of the heat source is greater than the saturation reduction value of the background; display the processed infrared image.
[0123] The readable storage medium may include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0124] For a description of the relevant parts of the infrared image processing apparatus, device and readable storage medium provided in this application, please refer to the detailed description of the corresponding parts in the infrared image processing method provided in the embodiments of this application, and will not be repeated here.
[0125] It should be noted that, in this document, relational terms such as "first" and "second" are used merely 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 the elements inherent in a process, method, article, or apparatus that includes a list of elements are included. 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. Additionally, portions of the technical solutions provided in the embodiments of this application that are consistent with the implementation principles of corresponding technical solutions in the prior art have not been described in detail to avoid excessive elaboration.
[0126] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An infrared image processing method, characterized in that, include: Acquire infrared images and identify heat sources and backgrounds from the infrared images; The brightness of the heat source and the background are reduced, and the saturation of the heat source and the background is reduced to obtain a processed infrared image; wherein the brightness reduction value of the heat source is less than the brightness reduction value of the background, and the saturation reduction value of the heat source is greater than the saturation reduction value of the background. The processed infrared image is displayed; Before displaying the processed infrared image, the method further includes: If the display screen used to display the processed infrared image contains a display icon, then the color of the display icon is converted to a color with a brightness lower than a first preset brightness.
2. The infrared image processing method according to claim 1, characterized in that, Converting the color of the displayed icon to a color with a brightness lower than a first preset brightness includes: Add a preset percentage or more of black to the color of the displayed icon.
3. The infrared image processing method according to claim 1, characterized in that, After identifying the heat source and background from the infrared image, the process further includes: The heat source is outlined using a color other than the current color of the background.
4. The infrared image processing method according to claim 1, characterized in that, After identifying the heat source and background from the infrared image, the process further includes: The background is marked with a color whose brightness is lower than the second preset brightness. The heat source is identified using a color other than the current background color and white.
5. The infrared image processing method according to claim 1, characterized in that, After acquiring the infrared image, the process also includes: Determine if the user has switched to stealth mode; If so, then the step of identifying the heat source and background from the infrared image is performed.
6. The infrared image processing method according to claim 5, characterized in that, Determining whether to switch to stealth mode includes: Obtain the ambient brightness of the environment corresponding to the infrared image, and determine whether the ambient brightness is less than a preset brightness. Alternatively, determine whether a stealth mode switching command has been received; If the ambient brightness is less than the preset brightness, or if the stealth mode switching command is received, then it is determined to switch to the stealth mode.
7. The infrared image processing method according to claim 6, characterized in that, Reducing the brightness of the heat source and the background, and reducing the saturation of the heat source and the background, includes: The brightness of the heat source and the background is reduced according to the ambient brightness, and the saturation of the heat source and the background is reduced according to the ambient brightness.
8. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the infrared image processing method as described in any one of claims 1 to 7 when executing the computer program.
9. A readable storage medium, characterized in that, The 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 7.
Citation Information
Patent Citations
Dark mode display interface processing method, electronic equipment and storage medium
CN110609722A