An air conditioner and a human body area detection method

Infrared images are generated by infrared sensors and indoor temperature sensors. By combining binarization processing and preset judgment parameters, effective target areas are screened, which solves the problems of low accuracy and weak generalization ability of human body area detection in existing air conditioners, and achieves higher detection accuracy and adaptability.

CN114119451BActive Publication Date: 2026-07-07HISENSE HOME APPLIANCES GRP CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HISENSE HOME APPLIANCES GRP CO LTD
Filing Date
2021-08-13
Publication Date
2026-07-07

AI Technical Summary

Technical Problem

When using infrared sensors in existing air conditioners to detect human body areas, the accuracy is low and the generalization ability is weak, making it difficult to effectively eliminate targets that are subject to environmental interference.

Method used

Infrared sensors are used to acquire lumen data and indoor temperature sensors are used to detect indoor temperature. Infrared images are generated and effective target areas are selected through binarization, rectangle ratio, area ratio, histogram and other preset judgment parameters. Combined with overlapping area processing, human body areas are determined.

Benefits of technology

It improves the accuracy and adaptability of human body area detection, enhances the generalization ability to different infrared images, reduces noise interference, and improves detection precision.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114119451B_ABST
    Figure CN114119451B_ABST
Patent Text Reader

Abstract

The application discloses an air conditioner and a human body area detection method, the air conditioner comprises an infrared sensor, an indoor temperature sensor and a controller, the controller is configured to generate an infrared image according to lumen data and indoor temperature; the infrared image is binarized according to at least two pixel threshold values and a binarized image corresponding to each pixel threshold value is generated respectively; a human body area of an indoor space is determined according to a target area in each binarized image; wherein the target area is an area with continuous pixel values of a preset pixel value in the binarized image; the binarization processing based on at least two pixel threshold values can extract hierarchical images of different temperature values, improve the adaptability and generalization ability of different infrared images, and further improve the accuracy of detecting the human body area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of air conditioner technology, and more specifically, to a method for detecting air conditioners and human body areas. Background Technology

[0002] Infrared sensors are widely used in home appliances. Many existing air conditioning products already use infrared sensors for related applications. However, due to cost and other issues, the resolution of the infrared sensors used is relatively low. In imaging, the pixel area occupied by the entire human target is small. A fixed threshold is first set, and the area within a certain temperature range is estimated through difference or other simple mathematical operations, and then it is used as the human position. However, there are many interfering targets in the environment, and the ability to eliminate interference factors is insufficient. Therefore, this method has drawbacks such as low accuracy and weak generalization ability.

[0003] Therefore, how to provide an air conditioner that can accurately detect human body areas is a technical problem that needs to be solved. Summary of the Invention

[0004] This invention provides an air conditioner to solve the technical problem of low accuracy when detecting human body areas using infrared sensors in the prior art.

[0005] The air conditioner includes:

[0006] Infrared sensors are used to acquire lumen data for indoor spaces;

[0007] Indoor temperature sensor, used to detect indoor temperature;

[0008] The controller is configured as follows:

[0009] An infrared image is generated based on the lumen data and the indoor temperature;

[0010] The infrared image is binarized based on at least two pixel thresholds, and a binarized image corresponding to each pixel threshold is generated respectively.

[0011] The human body area in the indoor space is determined based on the target area in each of the binarized images;

[0012] The target region is the area in the binarized image where the pixel values ​​are continuously set to a preset pixel value.

[0013] In some embodiments of this application, the controller is specifically configured as follows:

[0014] Based on preset judgment parameters related to human body shape, effective target areas containing human targets are selected from each of the target areas;

[0015] The human body region is determined based on each of the aforementioned effective target regions.

[0016] In some embodiments of this application, the preset determination parameters include rectangle ratio, area ratio, and histogram, and the controller is further specifically configured to:

[0017] If the rectangle ratio of the target area is within a preset rectangle ratio range, and the area ratio of the target area is greater than the preset area ratio, and the brightness distribution reflected by the horizontal and vertical histograms and the average pixel location meet the preset location conditions, then the target area is determined to be the effective target area.

[0018] Wherein, the rectangle ratio is the ratio of the height to the width of the target area, the area ratio is the ratio of the total number of pixels in the target area to the product of the height and the width, and the horizontal histogram and the vertical histogram respectively characterize the number of pixels in each row and column, the sum of pixel values, and the position of the average pixel in the region corresponding to the target area in the infrared image.

[0019] In some embodiments of this application, the controller is specifically configured as follows:

[0020] Based on the coordinates of each effective target region, determine the overlapping area between each effective target region and other effective target regions, and determine the proportion of each overlapping area;

[0021] If the percentage is greater than the preset percentage, the two effective target regions corresponding to the overlapping region will be merged and determined as one human body region;

[0022] If the percentage is not greater than the preset percentage, the two effective target areas will be determined as two human body areas;

[0023] Wherein, the proportion is the proportion of the overlapping area in the union of the two effective target areas.

[0024] In some embodiments of this application, the controller is specifically configured as follows:

[0025] The lumen data is mapped to preliminary temperature data according to Formula 1;

[0026] The temperature value in the preliminary temperature data that is lower than the first temperature is determined as the first temperature, and the temperature value in the preliminary temperature data that is higher than the second temperature is determined as the second temperature, so as to determine the target temperature data corresponding to the preliminary temperature data;

[0027] The target temperature data is mapped to a pixel value range of 0-255 and the infrared image is generated.

[0028] Formula 1 is:

[0029] T1 = (L - Th) / 30 + T2

[0030] Wherein, T1 is the temperature value in the preliminary temperature data, L is the lumen value in the lumen data, Th is the preset lumen threshold, and T2 is the indoor temperature.

[0031] In some embodiments of this application, the preset lumen threshold is determined according to Formula 2, which is specifically:

[0032] Th=(7*L min +3*L max ) / 10

[0033] Among them, L min L is the minimum lumen value in the lumen data. max This is the maximum lumen value in the lumen data.

[0034] In some embodiments of this application, the controller is further configured to:

[0035] Before binarizing the infrared image based on at least two pixel thresholds, the infrared image is denoised based on a median filtering algorithm, and the resolution of the infrared image is increased based on an interpolation algorithm.

[0036] In some embodiments of this application, the pixel threshold includes a first pixel threshold, a second pixel threshold, a third pixel threshold, and a fourth pixel threshold, and the controller is specifically configured to:

[0037] Each pixel threshold is compared with the pixel value in the infrared image, and each binarized image is generated based on the comparison result.

[0038] Specifically, pixel values ​​in the infrared image that are greater than the pixel threshold are set to 255, and pixel values ​​in the infrared image that are not greater than the pixel threshold are set to 0.

[0039] In some embodiments of this application, the preset pixel value is 255.

[0040] Accordingly, the present invention also proposes a method for detecting human body areas, applied in an air conditioner including an infrared sensor, an indoor temperature sensor, and a controller, the method comprising:

[0041] An infrared image is generated based on the lumen data obtained from the infrared sensor and the indoor temperature obtained from the indoor temperature sensor.

[0042] The infrared image is binarized based on at least two pixel thresholds, and a binarized image corresponding to each pixel threshold is generated respectively.

[0043] The human body area in the indoor space is determined based on the target area in each of the binarized images;

[0044] The target region is the area in the binarized image where the pixel values ​​are continuously set to a preset pixel value.

[0045] By applying the above technical solutions, in an air conditioner including an infrared sensor, an indoor temperature sensor, and a controller, the controller is configured to: generate an infrared image based on lumen data and indoor temperature; binarize the infrared image based on at least two pixel thresholds and generate binarized images corresponding to each pixel threshold; determine the human body area in the indoor space based on the target area in each binarized image; wherein, the target area is the area in the binarized image where the pixel value is continuously a preset pixel value. By performing binarization based on at least two pixel thresholds, layered images of different temperature values ​​can be extracted, improving the adaptability and generalization ability to different infrared images, thereby improving the accuracy of detecting the human body area. Attached Figure Description

[0046] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0047] Figure 1 A schematic diagram of the structure of an air conditioner according to an embodiment of the present invention is shown;

[0048] Figure 2 A flowchart illustrating a method for detecting human body regions according to an embodiment of the present invention is shown.

[0049] Figure 3 A flowchart illustrating a method for detecting human body regions according to another embodiment of the present invention is shown. Detailed Implementation

[0050] 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.

[0051] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0052] In this application, the air conditioner performs a refrigeration cycle by using a compressor, condenser, expansion valve, and evaporator. The refrigeration cycle includes a series of processes involving compression, condensation, expansion, and evaporation, and supplies refrigerant to the conditioned and heat-exchanged air.

[0053] The compressor compresses the refrigerant gas under high temperature and high pressure and discharges the compressed refrigerant gas. The discharged refrigerant gas flows into the condenser, where the condenser condenses the compressed refrigerant into a liquid phase, and the heat is released to the surrounding environment through the condensation process.

[0054] The expansion valve expands the high-temperature, high-pressure liquid refrigerant condensed in the condenser into a low-pressure liquid refrigerant. The evaporator evaporates the expanded refrigerant in the expansion valve, returning the low-temperature, low-pressure refrigerant gas to the compressor. The evaporator achieves its cooling effect by utilizing the latent heat of refrigerant evaporation to exchange heat with the material being cooled. Throughout the cycle, the air conditioner regulates the temperature of the indoor space.

[0055] The outdoor unit of an air conditioner refers to the part of the refrigeration cycle that includes the compressor and the outdoor heat exchanger. The indoor unit of an air conditioner includes the indoor heat exchanger, and an expansion valve can be provided in either the indoor or outdoor unit.

[0056] The indoor and outdoor heat exchangers function as either condensers or evaporators. When the indoor heat exchanger is used as a condenser, the air conditioner functions as a heater in heating mode; when the indoor heat exchanger is used as an evaporator, the air conditioner functions as a cooler in cooling mode.

[0057] This application provides an air conditioner, such as... Figure 1 As shown, it includes:

[0058] Infrared sensor 10 is used to acquire lumen data of the indoor space;

[0059] Indoor temperature sensor 20, used to detect indoor temperature;

[0060] Controller 30 is configured as follows:

[0061] An infrared image is generated based on the lumen data and the indoor temperature;

[0062] The infrared image is binarized based on at least two pixel thresholds, and a binarized image corresponding to each pixel threshold is generated respectively.

[0063] The human body area in the indoor space is determined based on the target area in each of the binarized images.

[0064] In this embodiment, the infrared sensor is a sensor that uses infrared light for detection. The infrared sensor is used to acquire lumen data of the indoor space, including multiple lumen values, typically around 7,000 to 8,000 lumens. Areas with higher temperatures have higher lumen values, and vice versa. The infrared sensor has relatively low resolution; while it can determine the position of body parts at close range, it cannot display details. The human body is simply presented as a general outline, without revealing specific high- and low-frequency information.

[0065] The controller connects to an infrared sensor and an indoor temperature sensor. The infrared sensor acquires lumen data, and the indoor temperature sensor acquires indoor temperature data. Based on the lumen data and indoor temperature, an infrared image is generated. The infrared image is a single-channel image, i.e., a two-dimensional data set with values ​​between 0 and 255, similar to a grayscale image or a black and white photograph. Then, the infrared image is binarized according to at least two pixel thresholds, generating binarized images corresponding to each threshold. A binarized image is an image with pixel values ​​of either 0 or 255; 0 represents pure black, and 255 represents pure white. The process of converting a grayscale image to a binarized image is called binarization. It can be understood that the number of binarized images is consistent with the number of pixel thresholds. The regions in the binarized images where pixel values ​​are consecutively at preset values ​​are then defined as target regions. Finally, the human body regions within the indoor space are determined based on these target regions.

[0066] In order to accurately determine the human body region, in some embodiments of this application, the controller is specifically configured as follows:

[0067] Based on preset judgment parameters related to human body shape, effective target areas containing human targets are selected from each of the target areas;

[0068] The human body region is determined based on each of the aforementioned effective target regions.

[0069] In this embodiment, the presence of a human target in the target area is determined based on preset judgment parameters related to human body shape. If a human target is present, the target area is a valid target area. Thus, valid target areas containing human targets are selected from each target area, and then the human body area can be determined based on each valid target area.

[0070] To accurately determine the effective target area, in some embodiments of this application, the preset judgment parameters include rectangle ratio, area ratio, and histogram, and the controller is further specifically configured as follows:

[0071] If the rectangle ratio of the target region is within a preset rectangle ratio range, and the area ratio of the target region is greater than a preset area ratio, and the brightness distribution reflected by the horizontal and vertical histograms and the average pixel location meet preset location conditions, then the target region is determined to be the effective target region.

[0072] In this embodiment, the rectangle ratio is the ratio of the height to the width of the target area (H / W), and the area ratio is the ratio of the total number of pixels in the target area to the product of the height and width (sum / (H*W)). The histogram includes a horizontal histogram and a vertical histogram. The horizontal histogram and the vertical histogram respectively represent the number of pixels, the sum of pixel values, and the average pixel position in each row and column of the region corresponding to the target area in the infrared image. That is, the horizontal histogram represents the number of pixels, the sum of pixel values, and the average pixel position in each row of the region corresponding to the target area in the infrared image; the vertical histogram represents the number of pixels, the sum of pixel values, and the average pixel position in each column of the region corresponding to the target area in the infrared image.

[0073] First, determine if the rectangle ratio of the target area is within a preset rectangle ratio range. If so, then determine if the area ratio of the target area is greater than a preset area ratio. If so, then determine if the brightness distribution reflected by the horizontal and vertical histograms and the average pixel location meet preset position conditions. If so, then it is determined that a human body exists in the target area, making it a valid target area. In the specific application scenario of this application, the preset rectangle ratio range is greater than 0.65 and less than 2.5, because the height of a human body area is generally greater than its width; the preset area ratio is 0.7.

[0074] Those skilled in the art may also choose other preset judgment parameters, which does not affect the scope of protection of this application.

[0075] Since different effective target areas may overlap, in order to accurately determine the human body region, in some embodiments of this application, the controller is specifically configured as follows:

[0076] Based on the coordinates of each effective target region, determine the overlapping area between each effective target region and other effective target regions, and determine the proportion of each overlapping area;

[0077] If the percentage is greater than the preset percentage, the two effective target regions corresponding to the overlapping region will be merged and determined as one human body region;

[0078] If the percentage is not greater than the preset percentage, the two effective target areas will be determined as two human body areas.

[0079] In this embodiment, the coordinates of each effective target region represent the position of each effective target region in each binarized image. Based on the coordinates, the overlapping area between each effective target region and other effective target regions is determined, and the proportion of the overlapping area in the union of two effective target regions is determined. If the proportion is greater than the preset proportion, the corresponding two effective target regions are merged and determined into one human body region; otherwise, the two effective target regions are determined into two human body regions.

[0080] It should be noted that the above embodiments are only one specific implementation scheme proposed in this application, and other methods of determining human body regions based on each effective target region are all within the protection scope of this application.

[0081] In order to accurately generate infrared images, in some embodiments of this application, the controller is specifically configured as follows:

[0082] The lumen data is mapped to preliminary temperature data according to Formula 1;

[0083] The temperature value in the preliminary temperature data that is lower than the first temperature is determined as the first temperature, and the temperature value in the preliminary temperature data that is higher than the second temperature is determined as the second temperature, so as to determine the target temperature data corresponding to the preliminary temperature data;

[0084] The target temperature data is mapped to a pixel value range of 0-255 and the infrared image is generated.

[0085] Formula 1 is:

[0086] T1 = (L - Th) / 30 + T2

[0087] Wherein, T1 is the temperature value in the preliminary temperature data, L is the lumen value in the lumen data, Th is the preset lumen threshold, and T2 is the indoor temperature.

[0088] In this implementation, the lumen data is first converted into preliminary temperature data. Since the preliminary temperature data may contain temperature values ​​that are too low or too high, in order to improve accuracy, the temperature values ​​in the preliminary temperature data that are lower than a first temperature are determined as the first temperature, and the temperature values ​​in the preliminary temperature data that are higher than a second temperature are determined as the second temperature. It can be understood that the first temperature is less than the second temperature, thus obtaining the target temperature data. Then, the target temperature data is mapped to a pixel value range of 0-255. For example, the lowest temperature value in the target temperature data that is the first temperature is mapped to 0, the highest temperature value that is the second temperature is mapped to 255, and other temperature values ​​are mapped in the same way, thereby generating an infrared image.

[0089] It should be noted that the above embodiments are only one specific implementation scheme proposed in this application, and other methods of generating infrared images based on lumen data and indoor temperature are all within the protection scope of this application.

[0090] To improve the accuracy of preliminary temperature data, in some embodiments of this application, the preset lumen threshold is determined according to Formula 2, which is specifically:

[0091] Th=(7*L min +3*L max ) / 10

[0092] Among them, L min L is the minimum lumen value in the lumen data. max This is the maximum lumen value in the lumen data.

[0093] It should be noted that the above embodiments are only one specific implementation scheme proposed in this application, and other methods for determining the preset lumen threshold are all within the protection scope of this application.

[0094] In order to accurately generate binarized images, in some embodiments of this application, the controller is further configured to:

[0095] Before binarizing the infrared image based on at least two pixel thresholds, the infrared image is denoised based on a median filtering algorithm, and the resolution of the infrared image is increased based on an interpolation algorithm.

[0096] In this embodiment, the infrared image is denoised based on the median filtering algorithm, which reduces the noise of the image and preserves the details as much as possible. The resolution of the infrared image is increased by the interpolation algorithm, which increases the image data and makes it easier to process.

[0097] Median filtering can be a 3x3 median filter, which sorts the nine values ​​in the 3x3 matrix and outputs the median value. Those skilled in the art can flexibly choose different median filtering and interpolation algorithms according to actual needs, which does not affect the scope of protection of this application. Furthermore, the specific process of image processing based on median filtering and interpolation algorithms is obvious to those skilled in the art and will not be elaborated here.

[0098] To accurately generate binarized images, in some embodiments of this application, the pixel threshold includes a first pixel threshold, a second pixel threshold, a third pixel threshold, and a fourth pixel threshold, and the controller is specifically configured as follows:

[0099] Each pixel threshold is compared with the pixel value in the infrared image, and each binarized image is generated based on the comparison result.

[0100] Specifically, pixel values ​​in the infrared image that are greater than the pixel threshold are set to 255, and pixel values ​​in the infrared image that are not greater than the pixel threshold are set to 0.

[0101] For example, if the pixel threshold is 128, the pixel values ​​in the infrared image greater than 128 will be set to 255, and the pixel values ​​in the infrared image not greater than 128 will be set to 0.

[0102] In order to accurately determine the target area, in a preferred embodiment of this application, the preset pixel value is 255.

[0103] By applying the above technical solutions, in an air conditioner including an infrared sensor, an indoor temperature sensor, and a controller, the controller is configured to: generate an infrared image based on lumen data and indoor temperature; binarize the infrared image based on at least two pixel thresholds and generate binarized images corresponding to each pixel threshold; determine the human body area in the indoor space based on the target area in each binarized image; wherein, the target area is the area in the binarized image where the pixel value is continuously a preset pixel value. By performing binarization based on at least two pixel thresholds, layered images of different temperature values ​​can be extracted, improving the adaptability and generalization ability to different infrared images, thereby improving the accuracy of detecting the human body area.

[0104] To further illustrate the technical concept of this invention, the technical solution of this invention will now be described in conjunction with specific application scenarios.

[0105] This application provides a method for detecting human body areas, applied in an air conditioner including an infrared sensor, an indoor temperature sensor, and a controller, such as... Figure 2 As shown, the method includes the following steps:

[0106] Step S101, Begin.

[0107] Step S102: Generate an infrared image.

[0108] Specifically, after acquiring the lumen data from the infrared sensor, the lumen threshold is determined according to Formula 2. The lumen data is then mapped to preliminary temperature data according to Formula 1. Temperature values ​​in the preliminary temperature data that are lower than a first temperature are determined as the first temperature, and temperature values ​​in the preliminary temperature data that are higher than a second temperature are determined as the second temperature, so as to determine the target temperature data corresponding to the preliminary temperature data. The target temperature data is then mapped to a range of 0-255 pixel values ​​and an infrared image is generated.

[0109] Step S103, image preprocessing.

[0110] Specifically, a 3x3 median filter is used to remove noise from the infrared image, and an interpolation algorithm is used to increase the image resolution of the infrared image.

[0111] Step S104: Detect the human body area.

[0112] Specifically, by iterating through the four pixel thresholds from largest to smallest, we obtain the binarized images corresponding to different pixel thresholds, thus obtaining the binarized images in different temperature ranges.

[0113] Then, the target region in each binarized image is labeled, that is, the target region is the area in the binarized image where the pixel value is consecutively 255, and an ID is assigned. Then, a series of logical judgments are performed on each ID region. First, it is judged whether the rectangle ratio of the target region is greater than 0.65 and less than 2.5. If so, it is judged whether the area ratio of the target region is greater than 0.7. If so, it is judged whether the brightness distribution reflected by the horizontal and vertical histograms and the average pixel position meet the preset position conditions. If so, it is determined that there is a human body in the target region and it is a valid target region; otherwise, the target region is an interference region.

[0114] Different valid target areas may overlap, so it is necessary to integrate the finally determined valid target areas. That is, to determine the overlapping area between each valid target area and other valid target areas, and to determine the proportion of each overlapping area. If the proportion is greater than the preset proportion, it is determined that they belong to the same human body, and the corresponding two valid target areas are merged to determine one human body area. Otherwise, the two valid target areas are determined as two human body areas. Finally, the coordinates of the obtained human body area can be output.

[0115] Step S105, End.

[0116] This application also proposes a method for detecting human body areas, applicable to an air conditioner including an infrared sensor, an indoor temperature sensor, and a controller, such as... Figure 3 As shown, the method includes:

[0117] Step S201: Generate an infrared image based on the lumen data obtained from the infrared sensor and the indoor temperature obtained from the indoor temperature sensor;

[0118] Step S202: Binarize the infrared image according to at least two pixel thresholds and generate a binarized image corresponding to each pixel threshold.

[0119] Step S203: Determine the human body area of ​​the indoor space based on the target area in each of the binarized images;

[0120] The target region is the area in the binarized image where the pixel values ​​are continuously set to a preset pixel value.

[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. An air conditioner, characterized in that, include: Infrared sensors are used to acquire lumen data for indoor spaces; Indoor temperature sensor, used to detect indoor temperature; The controller is configured as follows: An infrared image is generated based on the lumen data and the indoor temperature; The infrared image is binarized based on at least two pixel thresholds, and a binarized image corresponding to each pixel threshold is generated respectively. The human body area in the indoor space is determined based on the target area in each of the binarized images; Based on preset judgment parameters related to human body shape, effective target areas containing human targets are selected from each of the target areas; The human body region is determined based on each of the aforementioned effective target regions; The target region is a region in the binarized image where the pixel values ​​are continuously equal to a preset pixel value; the preset determination parameters include rectangle ratio, area ratio, and histogram. The controller is further specifically configured as follows: If the rectangle ratio of the target region is within a preset rectangle ratio range, and the area ratio of the target region is greater than the preset area ratio, and the brightness distribution reflected by the horizontal and vertical histograms and the average pixel location meet the preset location conditions, then the target region is determined to be the effective target region. Wherein, the rectangle ratio is the ratio of the height to the width of the target area, the area ratio is the ratio of the total number of pixels in the target area to the product of the height and the width, and the horizontal histogram and the vertical histogram respectively characterize the number of pixels in each row and column, the sum of pixel values, and the position of the average pixel in the region corresponding to the target area in the infrared image.

2. The air conditioner as described in claim 1, characterized in that, The controller is specifically configured as follows: Based on the coordinates of each effective target region, determine the overlapping area between each effective target region and other effective target regions, and determine the proportion of each overlapping area; If the percentage is greater than the preset percentage, the two effective target regions corresponding to the overlapping region will be merged and determined as one human body region; If the percentage is not greater than the preset percentage, the two effective target areas will be determined as two human body areas; Wherein, the proportion is the proportion of the overlapping area in the union of the two effective target areas.

3. The air conditioner as described in claim 1, characterized in that, The controller is specifically configured as follows: The lumen data is mapped to preliminary temperature data according to Formula 1; The temperature value in the preliminary temperature data that is lower than the first temperature is determined as the first temperature, and the temperature value in the preliminary temperature data that is higher than the second temperature is determined as the second temperature, so as to determine the target temperature data corresponding to the preliminary temperature data; The target temperature data is mapped to a pixel value range of 0-255 and the infrared image is generated. Formula 1 is: T1=(L-Th) / 30+T2 Wherein, T1 is the temperature value in the preliminary temperature data, L is the lumen value in the lumen data, Th is the preset lumen threshold, and T2 is the indoor temperature.

4. The air conditioner as described in claim 3, characterized in that, The preset lumen threshold is determined according to Formula 2, which is specifically: Th=(7 L min +3 L max ) / 10 Among them, L min L is the minimum lumen value in the lumen data. max This is the maximum lumen value in the lumen data.

5. The air conditioner as described in claim 1, characterized in that, The controller is also configured to: Before binarizing the infrared image based on at least two pixel thresholds, the infrared image is denoised based on a median filtering algorithm, and the resolution of the infrared image is increased based on an interpolation algorithm.

6. The air conditioner as described in claim 1, characterized in that, The pixel thresholds include a first pixel threshold, a second pixel threshold, a third pixel threshold, and a fourth pixel threshold, and the controller is specifically configured as follows: Each pixel threshold is compared with the pixel value in the infrared image, and each binarized image is generated based on the comparison result. Specifically, pixel values ​​in the infrared image that are greater than the pixel threshold are set to 255, and pixel values ​​in the infrared image that are not greater than the pixel threshold are set to 0.

7. The air conditioner as described in claim 6, characterized in that, The preset pixel value is 255.

8. A method for detecting a human body region, characterized in that, The method, applied in an air conditioner including an infrared sensor, an indoor temperature sensor, and a controller, comprises: An infrared image is generated based on the lumen data obtained from the infrared sensor and the indoor temperature obtained from the indoor temperature sensor. The infrared image is binarized based on at least two pixel thresholds, and a binarized image corresponding to each pixel threshold is generated respectively. The human body area in the indoor space is determined based on the target area in each of the binarized images; Based on preset judgment parameters related to human body shape, effective target areas containing human targets are selected from each of the target areas; The preset judgment parameters include rectangle ratio, area ratio, and histogram; If the rectangle ratio of the target region is within a preset rectangle ratio range, and the area ratio of the target region is greater than the preset area ratio, and the brightness distribution reflected by the horizontal and vertical histograms and the average pixel location meet the preset location conditions, then the target region is determined to be the effective target region. Wherein, the rectangle ratio is the ratio of the height to the width of the target area, the area ratio is the ratio of the total number of pixels in the target area to the product of the height and the width, and the horizontal histogram and the vertical histogram respectively characterize the number of pixels in each row and column, the total number of pixel values, and the average pixel position in the region corresponding to the target area in the infrared image; The human body region is determined based on each of the aforementioned effective target regions; The target region is the area in the binarized image where the pixel values ​​are continuously set to a preset pixel value.