A threshold adjustment method, a threshold adjustment device, a computing device, and a storage medium.

By acquiring image data on a mobile terminal, determining the temperature threshold range, and generating an infrared image layer, the problem of not being able to clearly display the temperature structure in existing technologies is solved, and the concrete display and accurate filtering of the temperature structure are realized.

CN115272387BActive Publication Date: 2026-05-26GUANGZHOU ZICHUAN ELECTRONICS TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGZHOU ZICHUAN ELECTRONICS TECH CO LTD
Filing Date
2022-06-17
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Existing mobile terminal infrared temperature measurement technology cannot filter corresponding areas based on known temperatures, making it difficult for users to clearly identify temperature structures and easily miss extreme values.

Method used

By acquiring image data, determining the temperature threshold range, determining the threshold level of each temperature vector unit based on the temperature vector data and the threshold range, generating an infrared image layer, and then overlaying the visible light image with the infrared image to achieve a concrete display of the temperature structure.

Benefits of technology

It enables clear display of temperature structure on mobile devices, allowing users to easily find high and low temperature zones, thus improving the accuracy and visualization of temperature screening.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115272387B_ABST
    Figure CN115272387B_ABST
Patent Text Reader

Abstract

This invention discloses a threshold adjustment method, relating to the field of image processing, and particularly to a threshold adjustment method, threshold adjustment device, computing device, and storage medium. This invention determines corresponding threshold levels by comparing the temperature vector data of an image with a defined temperature threshold range, and then matches the display pattern according to the threshold levels to generate an infrared image layer. This enables the visualization of the internal temperature structure of the image. By setting the temperature threshold range, regions above / below the temperature threshold range can be filtered out, allowing users to easily locate the temperature within the set temperature threshold range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image processing, and in particular to a threshold adjustment method, a threshold adjustment device, a computing device, and a storage medium. Background Technology

[0002] As the concepts of mobility and portability become increasingly popular, the field of thermal imaging has also developed infrared thermal imaging methods based on mobile terminals. Existing infrared mobile phone detector plug-ins generally provide temperature vector data, and temperature measurement is typically area-based. This involves reading vector data within points, lines, or areas to identify the highest / lowest and average temperatures, or to issue alarms for overheating. This method, which only measures variable temperatures within a fixed area, has a significant drawback: it cannot filter corresponding areas based on known temperatures, and viewers cannot easily understand the internal temperature structure of the image through simple temperature measurements, making it easy to miss extreme values. Summary of the Invention

[0003] The purpose of this invention is to overcome the shortcomings of the prior art and provide a threshold adjustment method for infrared images applied to mobile terminals.

[0004] The objective of this invention is achieved through the following technical solution:

[0005] A threshold adjustment method includes the following steps:

[0006] S1: Acquire image data; the image data includes the corresponding temperature vector data;

[0007] S2: Determine the temperature threshold range;

[0008] S3: Based on the temperature vector data and the determined temperature threshold range, determine the threshold level corresponding to each temperature vector unit; the temperature vector unit includes 4 adjacent pixels, and each threshold level has a corresponding display pattern;

[0009] S4: Generate an infrared image layer based on the display pattern corresponding to each temperature vector unit.

[0010] Specifically, step S3 includes the following steps:

[0011] S31: Compare the temperature vector value corresponding to each pixel in the temperature vector unit with the temperature threshold range to determine whether each temperature vector value is within the temperature threshold range.

[0012] S32: Determine the threshold level of the temperature vector unit based on the judgment result of step S31;

[0013] S33: Repeat steps S31 to S32 until the threshold level of each temperature vector unit is determined.

[0014] More specifically, step S3 includes the following steps:

[0015] S34: Filter the temperature vector units according to the threshold level corresponding to each temperature vector unit.

[0016] The above, step S4 includes the following steps:

[0017] S41: Scale the displayed image according to the determined scaling factor;

[0018] S42: Generate an infrared image layer based on the scaled display pattern.

[0019] Furthermore, it also includes the following steps:

[0020] S5: Repeat steps S2 to S4 to generate several infrared image layers.

[0021] Furthermore, the image data includes visible light images; it also includes the following steps:

[0022] S6: Overlay the visible light image with the generated infrared image layers.

[0023] Additionally, the threshold level is represented by a four-bit binary number, with each bit corresponding to a pixel in the temperature vector unit.

[0024] According to another aspect of the present invention, a threshold adjustment device is provided, comprising: an information acquisition module, a setting module, a threshold comparison module, a filtering module, an image generation module, and an overlay module; the information acquisition module is used to acquire image data; the setting module is used to determine a temperature threshold range; the threshold comparison module is used to compare and judge the temperature vector value corresponding to each pixel in the temperature vector unit with the temperature threshold range, and determine the corresponding threshold level; the filtering module is used to filter the temperature vector units according to the threshold level corresponding to each temperature vector unit; the image generation module is used to generate an infrared image layer according to the display pattern corresponding to each temperature vector unit; and the overlay module is used to overlay the visible light image with each infrared image layer.

[0025] According to another aspect of the present invention, a computing device is provided, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor executes the instructions to implement the steps of the threshold adjustment method described above.

[0026] According to another aspect of the present invention, a computer-readable storage medium is provided that stores computer instructions which, when executed by a processor, implement the steps of the threshold adjustment method described above.

[0027] This invention compares the temperature vector data of an image with a defined temperature threshold range to determine the corresponding threshold levels. Then, it matches the display pattern according to the threshold levels to generate an infrared image layer. This allows for the visualization of the internal temperature structure of the image. By setting the temperature threshold range, regions that are high or low can be filtered out. Users can easily find the location of the temperature within the set temperature threshold range. Attached Figure Description

[0028] The invention can be better understood by describing exemplary embodiments disclosed herein in conjunction with the accompanying drawings, in which:

[0029] Figure 1 The diagram shown is a schematic flowchart of a threshold adjustment method according to Embodiment 1 of the present invention;

[0030] Figure 2 The diagram shown is a schematic diagram of the program modules of the threshold adjustment device according to Embodiment 1 of the present invention;

[0031] Figure 3 The diagram shown is a hardware structure schematic of a computing device according to Embodiment 1 of the present invention;

[0032] Figure 4 The diagram shows the display patterns corresponding to each threshold level according to Embodiment 1 of the present invention. Detailed Implementation

[0033] The following describes specific embodiments of the present invention. It should be noted that, in order to provide a concise description, this specification cannot exhaustively describe all features of the actual embodiments. It should be understood that, in the actual implementation of any embodiment, just as in any engineering or design project, various specific decisions are often made to achieve the developer's specific goals and to meet system-related or business-related constraints, and this can change from one embodiment to another. Furthermore, it is understood that although the efforts made in this development process may be complex and lengthy, for those skilled in the art related to the content disclosed in this invention, some design, manufacturing, or production modifications based on the technical content disclosed in this invention are merely conventional technical means and should not be construed as insufficient content of this invention.

[0034] Unless otherwise defined, the technical or scientific terms used in the claims and description shall have the ordinary meaning understood by one of ordinary skill in the art to which this invention pertains. The terms "first," "second," and similar terms used in the patent application description and claims of this invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. The terms "an" or "a" and similar terms do not indicate a quantity limitation, but rather indicate the presence of at least one. The terms "comprising" or "including" and similar terms mean that the element or object preceding "comprising" or "including" encompasses the element or object listed following "comprising" or "including" and its equivalents, and do not exclude other elements or objects. The terms "connected" or "linked" and similar terms are not limited to physical or mechanical connections, nor are they limited to direct or indirect connections.

[0035] Example 1

[0036] Please see Figure 1 This embodiment proposes a threshold adjustment method, including the following steps:

[0037] A threshold adjustment method includes the following steps:

[0038] S1: Acquire image data; the image data includes visible light images and corresponding temperature vector data;

[0039] S2: Determine the temperature threshold range;

[0040] S3: Based on the temperature vector data and the determined temperature threshold range, determine the threshold level corresponding to each temperature vector unit; the temperature vector unit includes 4 adjacent pixels, and each threshold level has a corresponding display pattern;

[0041] S4: Generate an infrared image layer based on the display pattern corresponding to each temperature vector unit;

[0042] S5: Repeat steps S2 to S4 to generate several infrared image layers;

[0043] S6: Overlay the visible light image with the generated infrared image layers to generate an overlay image, and then display it.

[0044] Specifically, step S3 includes the following steps:

[0045] S31: Compare the temperature vector value corresponding to each pixel in the temperature vector unit with the temperature threshold range to determine whether each temperature vector value is within the temperature threshold range.

[0046] S32: Determine the threshold level of the temperature vector unit based on the judgment result of step S31;

[0047] S33: Repeat steps S31 to S32 until the threshold level of each temperature vector unit is determined.

[0048] S34: Filter the temperature vector units according to the threshold level corresponding to each temperature vector unit.

[0049] In this embodiment, the threshold level is represented by a four-bit binary number. A value of 1 is recorded when the pixel's temperature vector value is within the set temperature threshold range; a value of 0 is recorded when the pixel's temperature vector value exceeds the set temperature threshold range. Each bit of the binary number corresponds to a pixel in the temperature vector unit. The four bits, from left to right, correspond to the pixels located at the top left, top right, bottom right, and bottom left corners of the temperature vector unit, respectively. There are 16 threshold levels, each corresponding to one of 16 different display patterns, as shown below. Figure 4 As shown. To improve computational efficiency, temperature vector units can be filtered using threshold levels to remove unnecessary temperature vector units. Unnecessary temperature vector units are those where the temperature vector values ​​of all four pixels are within or exceed the set temperature threshold range. Figure 4 The display patterns of categories 15 and 0 are used to generate the corresponding infrared image layers by using only the temperature vector units corresponding to the display patterns of categories 1 to 14, with corresponding threshold levels of 0001 to 1110 (i.e., 1 to 14).

[0050] More specifically, step S4 includes the following steps:

[0051] S41: The ratio between the image pixels of the acquired visible light image and the pixels of the display device is used as a scaling factor to scale the display pattern;

[0052] S42: Retrieve the corresponding scaled display pattern according to the threshold level of each temperature vector unit; and place each retrieved display pattern on the same layer to generate an infrared image layer.

[0053] Please continue reading. Figure 2 This invention illustrates a threshold adjustment device. In this embodiment, the threshold adjustment device may include or be divided into one or more program modules. One or more program modules are stored in a storage medium and executed by one or more processors to complete the invention and implement the aforementioned threshold adjustment method. The program module referred to in this invention is a series of computer program instruction segments capable of performing a specific function, and is more suitable than the program itself for describing the execution process of the threshold adjustment device in the storage medium. The following description will specifically introduce the functions of each program module in this embodiment:

[0054] A threshold adjustment device includes: an information acquisition module, a setting module, a threshold comparison module, a filtering module, an image generation module, and an overlay module;

[0055] The information acquisition module is used to acquire image data;

[0056] The setting module is used to determine the temperature threshold range;

[0057] The threshold comparison module is used to compare the temperature vector value corresponding to each pixel in the temperature vector unit with the temperature threshold range and determine the corresponding threshold level.

[0058] The filtering module is used to filter temperature vector units according to the threshold level corresponding to each temperature vector unit;

[0059] The image generation module is used to generate infrared image layers based on the display patterns corresponding to each temperature vector unit.

[0060] The overlay module is used to overlay visible light images with various infrared image layers.

[0061] This embodiment also provides a computer device, such as a smartphone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server, or cabinet server (including a standalone server or a server cluster composed of multiple servers) capable of executing programs. The computer device 20 in this embodiment includes, but is not limited to, a memory 21 and a processor 22 that can be interconnected via a system bus. Figure 3 As shown. It should be noted that, Figure 3 Only a computer device 20 with components 21-22 is shown; however, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0062] In this embodiment, the memory 21 (i.e., the readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 21 may be an internal storage unit of the computer device 20, such as the hard disk or memory of the computer device 20. In other embodiments, the memory 21 may also be an external storage device of the computer device 20, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the computer device 20. Of course, the memory 21 may include both the internal storage unit and the external storage device of the computer device 20. In this embodiment, the memory 21 is typically used to store the operating system and various application software installed on the computer device 20, such as the program code of the threshold adjustment device in Embodiment 1. In addition, the memory 21 can also be used to temporarily store various types of data that have been output or will be output.

[0063] In some embodiments, processor 22 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. This processor 22 is typically used to control the overall operation of the computer device 20. In this embodiment, processor 22 is used to run program code stored in memory 21 or process data, for example, to run a threshold adjustment device to implement the threshold adjustment method of Embodiment 1.

[0064] This embodiment also provides a computer-readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, server, app store, etc., which stores a computer program. When the program is executed by a processor, it implements the corresponding function. In this embodiment, the computer-readable storage medium is used to store a threshold adjustment device, which, when executed by a processor, implements the threshold adjustment method of Embodiment 1.

[0065] In summary, according to the exemplary embodiment, the present invention determines the corresponding threshold levels by comparing the temperature vector data of the image with a determined temperature threshold range, and then matches the display pattern according to the threshold level to generate an infrared image layer. This enables the visualization of the internal temperature structure of the image. By setting the temperature threshold range, regions that are high or low within the temperature threshold range can be filtered out. Users can easily find the location of the temperature within the set temperature threshold range. Furthermore, when the contrast of the pseudo-color scale image is insufficient in the measurement area, the generated infrared image layer can also serve as a pseudo-color scale with a temperature structure.

[0066] It should be noted that in the apparatus and method disclosed in this invention, it is obvious that the components or steps can be decomposed and / or recombined. These decompositions and / or recombinations should be considered equivalent solutions disclosed in this invention. Furthermore, the steps performing the above series of processes can naturally be executed in the order described, but are not necessarily required to be executed in chronological order. Some steps can be performed in parallel or independently of each other.

[0067] The specific embodiments described above do not constitute a limitation on the scope of protection disclosed in this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection disclosed in this invention.

Claims

1. A threshold adjustment method, characterized in that, Includes the following steps: S1: Acquire image data; the image data includes corresponding temperature vector data; S2: Determine the temperature threshold range; S3: Based on the temperature vector data and the determined temperature threshold range, determine the threshold level corresponding to each temperature vector unit; each temperature vector unit includes four adjacent pixels, and each threshold level has a corresponding display pattern; step S3 The process includes the following steps: S31: Compare the temperature vector value corresponding to each pixel in the temperature vector unit with the temperature threshold range to determine whether each temperature vector value is within the temperature threshold range; S32: Determine the threshold level of the temperature vector unit based on the determination result of step S31; The threshold level is represented by a four-bit binary number. When the temperature vector value of a pixel is within the set temperature threshold range, it is recorded as 1; when the temperature vector value of a pixel exceeds the set temperature threshold range, it is recorded as 0; Each bit of the binary number corresponds to a pixel in the temperature vector unit. The four bits of the binary number from left to right correspond to the pixels located at the top left, top right, bottom right, and bottom left corners of the temperature vector unit, respectively. There are 16 threshold levels in total. Each threshold level basically corresponds to a different display pattern. The threshold level is used to filter each temperature vector unit to remove temperature vector units where the temperature vector values ​​of all four pixels are within the set temperature threshold range or exceed the set temperature threshold range unless necessary; S33: Repeat steps S31 to S32 until the threshold level of each temperature vector unit is determined. S4: Generate an infrared image layer based on the display pattern corresponding to each temperature vector unit.

2. The threshold adjustment method according to claim 1, characterized in that, Step S3 includes the following steps: S34: Filter the temperature vector units according to the threshold level corresponding to each temperature vector unit.

3. A threshold adjustment method according to any one of claims 1 to 2, characterized in that, Step S4 includes the following steps: S41: Scale the displayed image according to the determined scaling factor; S42: Generate an infrared image layer based on the scaled display pattern.

4. The threshold adjustment method according to claim 3, characterized in that, It also includes the following steps: S5: Repeat steps S2 to S4 to generate several infrared image layers.

5. The threshold adjustment method according to claim 4, characterized in that: The image data includes visible light images; It also includes the following steps: S6: Overlay the visible light image with the generated infrared image layers.

6. The threshold adjustment method according to claim 3, characterized in that, The threshold level is represented by a four-bit binary number, with each bit corresponding to a pixel in the temperature vector unit.

7. A threshold adjustment device employing the threshold adjustment method according to any one of claims 1 to 6, characterized in that, include: The module includes an information acquisition module, a setting module, a threshold comparison module, a filtering module, an image generation module, and an overlay module. The information acquisition module is used to acquire image data; The setting module is used to determine the temperature threshold range; The threshold comparison module is used to compare the temperature vector value corresponding to each pixel in the temperature vector unit with the temperature threshold range and determine the corresponding threshold level. The filtering module is used to filter temperature vector units according to the threshold level corresponding to each temperature vector unit; The image generation module is used to generate infrared image layers based on the display patterns corresponding to each temperature vector unit. The overlay module is used to overlay visible light images with various infrared image layers.

8. A computing device, comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, characterized in that, When the processor executes the instructions, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium storing computer instructions, characterized in that, When executed by a processor, this instruction implements the steps of the method according to any one of claims 1 to 6.