Air supply control method and device, fan equipment and readable storage medium
By using infrared cameras and image processing models on smart fans, accurately positioning the human body's position and controlling the air supply direction, the problem of poor air supply of existing smart fans is solved, and the user experience and product intelligence level is improved.
Patent Information
- Application Number
- CN202411915055.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2044-12-24
AI Technical Summary
The existing smart electric fans cannot accurately locate the human body, resulting in poor air supply and affecting the user experience.
The infrared camera is used to obtain infrared images of the blower covering area of the electric fan device, and the infrared image is characterized by using preset image processing models (such as convolutional neural networks), to accurately obtain human body position information, and control the fan device to send air to the area where the human body is located based on this information.
It realizes accurate positioning and air supply control of the human body position, improves the user experience, ensures that the fan is always aimed at the user's blowing air, enhances the comfort of use, and improves the intelligent level of the product.
Smart Images

Figure CN119914549A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent electrical appliance technology, and in particular to an air supply control method, device, fan equipment and readable storage medium. Background Art
[0002] With the development of science and technology, smart home has gradually become a part of modern life. Among them, smart home appliances are an important part of smart home, and their intelligence directly affects the user experience.
[0003] Although some smart electric fans on the market currently have certain adaptive adjustment functions, most of them rely on temperature sensors or simple motion detection devices and cannot accurately locate the human body, thus affecting the user experience. Summary of the invention
[0004] Based on this, it is necessary to provide an air supply control method, device, fan equipment and readable storage medium that can accurately locate the human body position and perform air supply processing according to the human body position to address the above technical problems.
[0005] In a first aspect, the present application provides an air supply control method, comprising:
[0006] Acquire an infrared image of the air blowing coverage area of the electric fan device;
[0007] Performing feature division on the infrared image according to a preset image processing model to obtain a target area and a background area, wherein the target area is an area including a human body;
[0008] Acquire the position information of the target area to obtain the position information of the human body;
[0009] The electric fan device is controlled to supply air toward the area where the human body is located according to the human body position information.
[0010] In one embodiment, the feature division of the infrared image according to a preset image processing model to obtain a target area and a background area includes:
[0011] The infrared image is feature-divided according to the target convolutional neural network model to obtain a target area and a background area, wherein the target convolutional neural network model performs convolution processing on the infrared image using a cosine similarity algorithm.
[0012] In one embodiment, processing the infrared image according to the target convolutional neural network model to obtain human body position information includes:
[0013] Performing threshold segmentation on the infrared image to obtain a target image and a background image;
[0014] Processing the target image and the background image in sequence according to the target convolution kernel, the activation layer and the maximum pooling layer to obtain a target feature vector and a background feature vector;
[0015] Inputting the target feature vector and the background feature vector into a target binary classification problem classifier to obtain a target area and a background area;
[0016] The human body position information is obtained according to the position information of the target area.
[0017] In one embodiment, performing threshold segmentation on the infrared image to obtain a target image and a background image includes:
[0018] Acquire at least one feature threshold, wherein the feature threshold is related to the target human body;
[0019] Image segmentation is performed on the grayscale data in the infrared image according to the characteristic threshold to obtain a target image and a background image, wherein the target image includes a target human body.
[0020] In one embodiment, the target image and the background image are processed in sequence according to the target convolution kernel, the activation layer and the maximum pooling layer to obtain the target feature vector and the background feature vector, including:
[0021] Using the cosine similarity algorithm as the target convolution kernel, convolution processing is performed on the target image and the background image;
[0022] Using the ReLU function as the activation function of the activation layer to activate the convolved image;
[0023] Performing feature extraction on the activated image through the maximum pooling layer to obtain target features and background features;
[0024] The target feature and the background feature are flattened according to a preset vector specification to obtain the target feature vector and the background feature vector.
[0025] In one of the embodiments, the target binary classification problem classifier is a sigmoid classifier.
[0026] In one embodiment, controlling the electric fan device to supply air toward the area where the human body is located according to the human body position information includes:
[0027] Acquire the position information of all human bodies in the blowing coverage area;
[0028] In a case where the wind blowing coverage area includes at least two pieces of human body position information, planning a target shaking path according to the human body position information;
[0029] The steering mechanism of the electric fan is controlled according to the target shaking path to shake the fan to supply air to all human bodies within the blowing coverage area.
[0030] In a second aspect, the present application also provides an air supply control device, comprising:
[0031] An image acquisition module, used to acquire an infrared image of the blowing coverage area of the electric fan device;
[0032] A feature segmentation module, used for performing feature segmentation on the infrared image according to a preset image processing model to obtain a target area and a background area, wherein the target area is an area including a human body;
[0033] A position acquisition module is used to acquire the position information of the target area and obtain the position information of the human body;
[0034] The air supply control module is used to control the electric fan device to supply air towards the area where the human body is located according to the human body position information.
[0035] In a third aspect, the present application also provides a fan device, comprising a memory and a processor, wherein the memory stores a computer program, and the fan device also includes an infrared camera, wherein the infrared camera is connected to the processor, and the infrared camera is used to capture infrared images, and when the processor executes the computer program, the steps of the air supply control method described in the first aspect are implemented.
[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the air supply control method described in the first aspect are implemented.
[0037] In summary, the present application proposes an air supply control method, device, fan device and readable storage medium, including: obtaining an infrared image of the air blowing coverage area of the electric fan device; performing feature division on the infrared image according to a preset image processing model to obtain a target area and a background area, wherein the target area is an area including a human body; obtaining position information of the target area to obtain human body position information; and controlling the electric fan device to supply air toward the area where the human body is located according to the human body position information. The present application collects infrared images through an infrared camera on the electric fan, and uses a preset image processing model to perform image analysis on the infrared graphics, so as to accurately collect human body position information in the air blowing coverage area and enable the fan device to accurately supply air toward the human body. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A schematic diagram of the structure of a fan device in one embodiment;
[0039] Figure 2A schematic flow chart of an air supply control method in one embodiment;
[0040] Figure 3 A schematic diagram of a flow chart of a step of obtaining human body position information according to a preset image processing model in an embodiment;
[0041] Figure 4 A schematic diagram of a process flow of performing threshold segmentation on an image in one embodiment;
[0042] Figure 5 A schematic diagram of a process flow of obtaining a target feature vector and a background feature vector according to a target convolutional neural network model in one embodiment;
[0043] Figure 6 is a flow chart of an air supply control method in another embodiment;
[0044] Figure 7 A schematic diagram of an application scenario of an air supply control method in an embodiment;
[0045] Figure 8 is a structural block diagram of an air supply control device in one embodiment;
[0046] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0048] In one embodiment, Figure 1 As shown, a fan device is provided, and an infrared camera is arranged on the body of the fan device. The infrared camera can be used to obtain an infrared image of the area covered by the fan device.
[0049] In this embodiment, the fan device also includes components such as a controller, a fan head, a steering mechanism, a fuselage and a base. Among them, the steering mechanism can realize horizontal remote control and vertical shaking control of the fan head. In a feasible embodiment, the steering mechanism can realize 360° shaking control of the fan head by releasing the limiter. The air supply control method in this embodiment can accurately determine the position of the human body in the blowing coverage area of the fan device through infrared image recognition, thereby realizing flexible shaking air supply covering the blowing coverage area of the fan device, which greatly improves the shaking air supply experience of the fan device.
[0050] The controller in this embodiment includes a memory and a processor, the memory stores a computer program, the processor is connected to the infrared camera, and the processor executes the steps of the air supply control method in the following embodiment.
[0051] In one embodiment, Figure 2 As shown, a method for controlling air supply is provided, which is applied to Figure 1 The fan device in the example is used as an example to illustrate the process, including the following steps:
[0052] S201, acquiring an infrared image of the blowing coverage area of the electric fan device.
[0053] S202, performing feature segmentation on the infrared image according to a preset image processing model to obtain a target area and a background area, wherein the target area is an area including a human body.
[0054] S203, acquiring the position information of the target area to obtain the position information of the human body.
[0055] S204, controlling the electric fan device to supply air toward the area where the human body is located according to the human body position information.
[0056] In this embodiment, an infrared camera disposed on the electric fan device may be used to obtain an infrared image of the wind coverage area, or an infrared sensor disposed near the area where the electric fan device is located or disposed on the electric fan device may be used to collect infrared signals in the wind coverage area of the electric fan device, and then the infrared signals are converted into infrared images. This embodiment does not limit the actual method of obtaining the infrared image.
[0057] In a feasible embodiment, if the electric fan device acquires the infrared image through an infrared sensor or an infrared camera near the area where the electric fan device is located, the electric fan device needs to be equipped with a communication module for data communication with the device equipped with the infrared sensor or infrared camera. The specific type of the communication module can be configured according to the needs of the actual application scenario.
[0058] In this embodiment, the preset image processing model can realize accurate extraction of image features and can extract target features corresponding to the fan device control mode. For example, if the fan device is in a control mode of tracking a human body to supply air, at this time, the preset image processing model will extract the human body in the infrared image and divide it into a target area including the human body and a background area excluding the human body, and then obtain the human body position information through the target area, and finally control the air supply toward the area involved in the human body position information.
[0059] If the fan device is in the control mode of supplying air according to the target human body, the preset image processing model will extract the target human body in the infrared image and divide it into a target area including the target human body and a background area excluding the target human body. At this time, the background area may contain non-target human bodies. Then, the human body position information of the target human body is obtained through the target area, and finally the air supply control is performed toward the area involved in the human body position information.
[0060] It should be noted that the target human body in this embodiment refers to a human body with certain characteristic types, such as adults, children, men, women, the elderly, etc. The non-target human body refers to a human body other than the target human body.
[0061] In summary, this embodiment provides an air supply control method, which can collect the human body within the air supply coverage area of the fan device based on the infrared camera, and realize the precise position positioning of the human body, and then control the fan device to track the human body to realize the shaking air supply control. The air supply control method proposed in this embodiment can not only greatly improve the accuracy of obtaining the human body position, but also realize a more intelligent and flexible shaking air supply control method, so that the fan air supply direction always changes with the human body position, providing users with a better air supply experience.
[0062] In one embodiment, the infrared image is feature-divided according to a preset image processing model to obtain a target area and a background area, including:
[0063] The infrared image is feature-divided according to the target convolutional neural network model to obtain the target area and the background area, wherein the target convolutional neural network model uses the cosine similarity algorithm to perform convolution processing on the infrared image.
[0064] In this embodiment, the preset image processing model is an optimized convolutional neural network (CNN) model. In the infrared image processing process, the CNN model can extract features in the infrared image through multiple layers of convolution, pooling and full connection layers to perform subsequent image analysis and image recognition tasks. This embodiment collects human body position information based on the CNN model.
[0065] In actual application scenarios, the specific positions of people near the fan will constantly change. This embodiment introduces a cosine similarity algorithm in the convolutional layer of the CNN model to compare the similarity of feature vectors in the infrared image, thereby better separating the human feature vector and the background feature vector, achieving better target human feature extraction, and assisting the fan device to more accurately determine the position of the human body.
[0066] In one embodiment, if Figure 3As shown, the infrared image is processed according to the target convolutional neural network model to obtain the human body position information, including:
[0067] S301, performing threshold segmentation on the infrared image to obtain a target image and a background image.
[0068] S302, processing the target image and the background image in sequence according to the target convolution kernel, the activation layer and the maximum pooling layer to obtain a target feature vector and a background feature vector.
[0069] S303, input the target feature vector and the background feature vector into a target binary classification problem classifier to obtain a target region and a background region.
[0070] S304, obtaining human body position information according to the position information of the target area.
[0071] In this embodiment, the threshold segmentation algorithm of the infrared image can select a suitable image segmentation algorithm according to the needs of the actual application scenario. By using the optimized target convolution kernel, activation layer and maximum pooling layer to process the target image and background image in sequence, more accurate target feature vectors and background feature vectors can be extracted.
[0072] In this embodiment, the target feature vector may be a feature vector corresponding to a human body. In a feasible embodiment, the target feature vector may be a feature vector corresponding to different types of human bodies. For example, if the human body to be identified is an adult, the target feature vector is a feature vector corresponding to an adult. If the human body to be identified is a child, the target feature vector is a feature vector corresponding to a child.
[0073] The background feature vector may be a feature vector corresponding to the environment except the human body, or may be an environment except the target human body and a non-target human body. It should be noted that the feature vector content included in the target feature vector and the background feature vector may be flexibly configured according to the needs of the actual application scenario.
[0074] In this embodiment, the target binary classification problem classifier can divide the feature vector and distinguish the target area and the background area. It should be noted that the target area can be an area including a human body of the target type. The target area can be directly distinguished by the binary classification problem classifier, and then the human body position information can be obtained according to the position information of the target area. The target binary classification problem classifier can select a suitable classifier according to the needs of the actual application scenario. In one embodiment, the target binary classification problem classifier is a sigmoid classifier. The calculation of the Sigmoid function is relatively simple and can process large-scale data sets. And the probability value output by the sigmoid classifier is easy to understand, and the parameters (weights) of the model can intuitively explain the influence of each feature on the classification result.
[0075] In one embodiment, if Figure 4 As shown, the infrared image is segmented by threshold to obtain the target image and background image, including:
[0076] S401, obtaining at least one feature threshold, wherein the feature threshold is related to a target human body.
[0077] S402, performing image segmentation on grayscale data in the infrared image according to a feature threshold to obtain a target image and a background image, wherein the target image includes a target human body.
[0078] In this embodiment, the target human body is a specified type of human body, such as an adult, a child, a man, a woman, an old man, etc. The setting of the characteristic threshold is directly related to the target human body. In this embodiment, the position of the specified type of human body can be accurately tracked by setting the characteristic threshold corresponding to the target human body, thereby realizing the tracking and blowing of the fan device.
[0079] It should be noted that the number of feature thresholds may be one or more, and the number of feature thresholds may be determined according to the accuracy required for the threshold segmentation algorithm in the actual application scenario.
[0080] In one embodiment, if Figure 5 As shown, the target image and the background image are processed in sequence according to the target convolution kernel, the activation layer and the maximum pooling layer to obtain the target feature vector and the background feature vector, including:
[0081] S501, using the cosine similarity algorithm as the target convolution kernel, convolution processing is performed on the target image and the background image.
[0082] S502, using the ReLU function as the activation function of the activation layer to perform activation processing on the convolved image.
[0083] S503, extracting features from the activated image through a maximum pooling layer to obtain target features and background features.
[0084] S504, flattening the target features and the background features according to a preset vector specification to obtain a target feature vector and a background feature vector.
[0085] In this embodiment, the cosine similarity algorithm is used as the target convolution kernel. The specific implementation method of performing convolution processing on the target image and the background image can refer to the specific implementation method in the above-mentioned embodiment, which will not be repeated here.
[0086] Using the Rectified Linear Unit (ReLU) function as the activation function of the activation layer can effectively increase the nonlinear characteristics of the model. The sparse activation characteristics of the ReLU function help reduce the risk of overfitting of the model and improve the generalization ability of the model.
[0087] In this embodiment, to obtain the target feature vector and the background feature vector, it is necessary to classify the feature vectors through a target binary classification problem classifier. Therefore, it is also necessary to flatten the target features and the background features according to preset vector specifications to obtain the target feature vector and the background feature vector.
[0088] In this embodiment, the preset vector size may be 1*1. It should be noted that the preset vector size may be determined according to the type of target binary classification problem classifier in an actual application scenario.
[0089] In one embodiment, if Figure 6 As shown, according to the human body position information, the electric fan device is controlled to supply air toward the area where the human body is located, including:
[0090] S601, obtaining the position information of all human bodies in the blowing coverage area.
[0091] S602: When the wind coverage area includes at least two pieces of human body position information, plan a target shaking path according to the human body position information.
[0092] S603, controlling the steering mechanism of the electric fan according to the target shaking path to shake the fan to supply air to all human bodies in the blowing coverage area.
[0093] In this embodiment, when the fan device executes the air supply program, flexible shaking path planning can be implemented to ensure that when the fan shakes its head to supply air, it can supply air to all human bodies or target human bodies in the blowing coverage area.
[0094] In this embodiment, the limiter of the steering mechanism is a switchable limiter, and after the limiter is opened, the steering mechanism can achieve 360° rotation in all directions. When the limiter is closed, the steering mechanism can only rotate in a limited direction, such as a horizontal direction.
[0095] like Figure 7 As shown, all human position information in the blowing coverage area includes the human position information of user A, user B, user C, and user D. The fan device in this embodiment can plan a fan shaking path including the human position information of user A, user B, user C, and user D, so as to ensure that the fan device can blow air to user A, user B, user C, and user D respectively during one shaking blowing process. Among them, one shaking blowing process is the air supply process in which the fan head starts to rotate from the current position until it returns to the current position.
[0096] Assuming that user A and user C are the target human bodies, the fan device in this embodiment can plan a fan shaking path including the human body position information of user A and user D, and user B is not within the blowing coverage. It should be noted that user C can be included in the fan shaking path of the human body position information of user A and user D, or user C can be excluded from the fan shaking path of the human body position information of user A and user D by adjusting the steering mechanism.
[0097] In summary, this embodiment provides a method for controlling air supply, whereby the fan device can identify the position information of the portrait of a designated target based on an infrared image, and then adjust the shaking angle to the position of the person based on the portrait position information to blow air, so that the wind follows the person's movement. This improves the user experience, ensures that the fan always blows air at the user, and enhances the user comfort. This improves the intelligence level of the product, reduces the system's computational burden, and improves real-time performance by optimizing the image processing algorithm.
[0098] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0099] Based on the same inventive concept, the embodiment of the present application also provides an air supply control device for implementing the air supply control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more air supply control device embodiments provided below can refer to the limitations of the air supply control method above, and will not be repeated here.
[0100] In one embodiment, Figure 8 As shown, an air supply control device 800 is provided, comprising: an image acquisition module 810, a feature division module 820, a position acquisition module 830 and an air supply control module 840, wherein:
[0101] An image acquisition module 810 is used to acquire an infrared image of the air blowing coverage area of the electric fan device;
[0102] The feature segmentation module 820 is used to perform feature segmentation on the infrared image according to a preset image processing model to obtain a target area and a background area, wherein the target area is an area including a human body;
[0103] The position acquisition module 830 is used to acquire the position information of the target area and obtain the position information of the human body;
[0104] The air supply control module 840 is used to control the electric fan device to supply air toward the area where the human body is located according to the human body position information.
[0105] In one embodiment, the feature segmentation module 820 is specifically used to perform feature segmentation on the infrared image according to the target convolutional neural network model to obtain the target area and the background area, wherein the target convolutional neural network model uses the cosine similarity algorithm to perform convolution processing on the infrared image.
[0106] In one embodiment, the feature segmentation module 820 is specifically used to perform threshold segmentation on the infrared image to obtain a target image and a background image; process the target image and the background image in sequence according to the target convolution kernel, the activation layer and the maximum pooling layer to obtain a target feature vector and a background feature vector; input the target feature vector and the background feature vector into a target binary classification problem classifier to obtain a target area and a background area; and obtain human body position information based on the position information of the target area.
[0107] In one embodiment, the feature segmentation module 820 is specifically used to obtain at least one feature threshold, wherein the feature threshold is related to the target human body; image segmentation is performed on the grayscale data in the infrared image according to the feature threshold to obtain a target image and a background image, wherein the target image includes the target human body.
[0108] In one embodiment, the feature segmentation module 820 is specifically used to use the cosine similarity algorithm as the target convolution kernel to perform convolution processing on the target image and the background image; use the ReLU function as the activation function of the activation layer to activate the convolved image; extract features from the activated image through the maximum pooling layer to obtain target features and background features; flatten the target features and background features according to preset vector specifications to obtain target feature vectors and background feature vectors.
[0109] In one of the embodiments, the air supply control module 840 is specifically used to obtain the position information of all human bodies in the blowing coverage area; when the blowing coverage area includes at least two human body position information, plan the target shaking path according to the human body position information; and control the steering mechanism of the electric fan according to the target shaking path to shake the head and supply air to all human bodies in the blowing coverage area.
[0110] In summary, this embodiment provides an air supply control device, where the fan device can identify the position information of the portrait of a designated target based on the infrared image, and then adjust the shaking angle to the position of the person to blow air based on the portrait position information, so that the wind follows the person. This improves the user experience, ensures that the fan always blows air at the user, and enhances the comfort of use. It improves the intelligence level of the product, reduces the computing burden of the system, and improves real-time performance by optimizing the image processing algorithm.
[0111] Each module in the above-mentioned air supply control device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0112] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for controlling air supply is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0113] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0114] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0115] Acquire an infrared image of the air blowing coverage area of the electric fan device;
[0116] Performing feature division on the infrared image according to a preset image processing model to obtain a target area and a background area, wherein the target area is an area including a human body;
[0117] Acquire the position information of the target area to obtain the position information of the human body;
[0118] The electric fan device is controlled to supply air toward the area where the human body is located according to the human body position information.
[0119] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0120] Acquire an infrared image of the air blowing coverage area of the electric fan device;
[0121] Performing feature division on the infrared image according to a preset image processing model to obtain a target area and a background area, wherein the target area is an area including a human body;
[0122] Acquire the position information of the target area to obtain the position information of the human body;
[0123] The electric fan device is controlled to supply air toward the area where the human body is located according to the human body position information.
[0124] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0125] Acquire an infrared image of the air blowing coverage area of the electric fan device;
[0126] Performing feature division on the infrared image according to a preset image processing model to obtain a target area and a background area, wherein the target area is an area including a human body;
[0127] Acquire the position information of the target area to obtain the position information of the human body;
[0128] The electric fan device is controlled to supply air toward the area where the human body is located according to the human body position information.
[0129] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0130] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0131] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0132] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for controlling air supply, characterized in that: include: Acquire an infrared image of the air blowing coverage area of the electric fan device; Performing feature division on the infrared image according to a preset image processing model to obtain a target area and a background area, wherein the target area is an area including a human body; Acquire the position information of the target area to obtain the position information of the human body; The electric fan device is controlled to supply air toward the area where the human body is located according to the human body position information.
2. The method according to claim 1, characterized in that The step of performing feature division on the infrared image according to a preset image processing model to obtain a target area and a background area includes: The infrared image is feature-divided according to the target convolutional neural network model to obtain a target area and a background area, wherein the target convolutional neural network model performs convolution processing on the infrared image using a cosine similarity algorithm.
3. The method according to claim 2, characterized in that The step of processing the infrared image according to the target convolutional neural network model to obtain human body position information includes: Performing threshold segmentation on the infrared image to obtain a target image and a background image; Processing the target image and the background image in sequence according to the target convolution kernel, the activation layer and the maximum pooling layer to obtain a target feature vector and a background feature vector; Inputting the target feature vector and the background feature vector into a target binary classification problem classifier to obtain a target area and a background area; The human body position information is obtained according to the position information of the target area.
4. The method according to claim 3, characterized in that The step of performing threshold segmentation on the infrared image to obtain a target image and a background image includes: Acquire at least one feature threshold, wherein the feature threshold is related to the target human body; Image segmentation is performed on the grayscale data in the infrared image according to the characteristic threshold to obtain a target image and a background image, wherein the target image includes a target human body.
5. The method according to claim 3, characterized in that: The step of sequentially processing the target image and the background image according to the target convolution kernel, the activation layer, and the maximum pooling layer to obtain a target feature vector and a background feature vector includes: Using the cosine similarity algorithm as the target convolution kernel, convolution processing is performed on the target image and the background image; Using the ReLU function as the activation function of the activation layer to activate the convolved image; Performing feature extraction on the activated image through the maximum pooling layer to obtain target features and background features; The target feature and the background feature are flattened according to a preset vector specification to obtain the target feature vector and the background feature vector.
6. The method according to claim 3, characterized in that The target binary classification problem classifier is a sigmoid classifier.
7. The method according to claim 1, characterized in that The step of controlling the electric fan device to supply air toward the area where the human body is located according to the human body position information comprises: Acquire the position information of all human bodies in the blowing coverage area; In a case where the wind blowing coverage area includes at least two pieces of human body position information, planning a target shaking path according to the human body position information; The steering mechanism of the electric fan is controlled according to the target shaking path to shake the fan to supply air to all human bodies within the blowing coverage area.
8. An air supply control device, characterized in that: include: An image acquisition module, used to acquire an infrared image of the blowing coverage area of the electric fan device; A feature segmentation module, used for performing feature segmentation on the infrared image according to a preset image processing model to obtain a target area and a background area, wherein the target area is an area including a human body; A position acquisition module is used to acquire the position information of the target area and obtain the position information of the human body; The air supply control module is used to control the electric fan device to supply air towards the area where the human body is located according to the human body position information.
9. A fan device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: The fan device also includes an infrared camera, which is connected to the processor and is used to collect infrared images. When the processor executes the computer program, the steps of the air supply control method described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the air supply control method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Image processing method and device
CN105809180A
Intelligent air supply method and device of air conditioner and air conditioner
CN110173866A
Air supply control method of air conditioner, air conditioner and storage medium
CN110195923A
Wind direction adjusting method and device, storage medium and air supply equipment
CN111486571A
Air conditioner control method and device, air conditioner and storage medium
CN115950068A