A fan control method and device, and storage medium
By identifying user attributes and actions to adjust the fan speed, it solves the problem that traditional electric fan safety protection devices cannot fully protect users and motor damage, and improves safety and user experience.
Patent Information
- Application Number
- CN202211639176.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-20
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-12-20
AI Technical Summary
When emergency braking is activated, the safety protection device of a traditional electric fan cannot completely protect the user from injury due to inertia, and long-term use can easily cause damage to the motor, resulting in a poor user experience.
By identifying user attributes and actions, the fan speed is adjusted according to the preset motor speed adjustment matching relationship table to ensure that the user's cooling needs are met while protecting user safety and reducing fan motor wear.
It can meet users' needs for cooling while protecting user safety, reducing fan motor wear and improving user experience.
Smart Images

Figure CN115898929B
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a fan control method and device, and a storage medium. Background Art
[0002] At present, the safety protection device of traditional electric fans is generally a mesh cover or a mesh cover plus electronic components such as sensors for detection. When a human body is sensed within the danger range, the capacitance of the sensitive electronic components changes to change the PWM signal output by the controller, thereby activating the emergency braking function to stop the fan blades from rotating. However, for rapidly rotating fan blades, due to inertia, when the emergency braking is activated, a strong impact force is still retained, and the human body cannot be completely protected from injury. Moreover, the protection device often activates the emergency braking to stop the fan blades from rotating when the fan is rotating rapidly. In the long run, this not only easily causes damage to the motor, but also provides a poor user experience. Summary of the invention
[0003] The main purpose of the embodiments of the present application is to propose a fan control method, device and storage medium, aiming to ensure that the air volume meets user needs through fan control while protecting the user from being injured by the fan, thereby improving the user experience.
[0004] To achieve the above object, a first aspect of an embodiment of the present application provides a fan control method, the method comprising:
[0005] Identify the attributes of the user in front of the fan;
[0006] Acquire the distance between the user and the fan based on the user attributes to obtain a target distance;
[0007] Identify a user's behavior in front of the fan based on the target distance;
[0008] According to the user attribute, the target distance and the user behavior action, the fan adjustment data is searched from a preset motor speed adjustment matching relationship table; wherein the fan adjustment data includes: a target step monitoring value and a target speed adjustment value;
[0009] The speed of the fan is adjusted according to the target step monitoring value and the target speed adjustment value.
[0010] According to some embodiments of the present invention, the user attribute is the user age, the motor speed adjustment matching relationship table includes: a first speed adjustment matching table and a second speed adjustment matching table, and searching for fan adjustment data from the preset motor speed adjustment matching relationship table according to the user attribute, the target distance and the user behavior action includes:
[0011] Comparing the user's age with a preset age group; wherein the preset age group is characterized by the age group of young and middle-aged people;
[0012] If the user age is within the preset age group, searching the first adjustment data in the first speed adjustment matching table according to the target distance and the user behavior;
[0013] If the user age is not within the preset age group, second adjustment data is found in the second speed adjustment matching table according to the target distance and the user behavior action; wherein the first adjustment data is greater than the second adjustment data.
[0014] According to some embodiments of the present invention, the first adjustment data includes: a first preset speed, first deceleration adjustment data, and second deceleration adjustment data; if the user age is within the preset age group, searching the first adjustment data in the first speed adjustment matching table according to the target distance and the user behavior action includes:
[0015] If the user's age is within the preset age group, comparing the target distance with a first preset distance threshold and a second preset distance threshold; wherein the first preset distance threshold is lower than the second preset distance threshold;
[0016] If the target distance is greater than a second preset distance threshold, extracting a first preset speed from the first speed adjustment matching table;
[0017] If the target distance is between the first preset distance threshold and the second preset distance threshold, extracting first deceleration adjustment data from the first speed adjustment matching table; wherein the first deceleration adjustment data includes a first deceleration value and a first step monitoring value;
[0018] If the target distance is less than the first preset distance threshold, second deceleration adjustment data is searched in the first speed adjustment matching table according to the user behavior action; wherein the first deceleration adjustment data is greater than the second deceleration adjustment data.
[0019] According to some embodiments of the present invention, the second deceleration adjustment data includes: a second deceleration value, a second step detection value and a speed stop value; if the target distance is less than the first preset distance threshold, searching the first speed adjustment matching table for the second deceleration adjustment data according to the user behavior action includes:
[0020] If the target distance is lower than a first preset distance threshold, the user behavior action is matched with a preset behavior reference action to obtain an action judgment result; wherein the behavior reference action is characterized as a dangerous action;
[0021] If the action judgment result is characterized as action matching, extracting the speed stop value from the first speed adjustment matching table; wherein the speed stop value is used to control the fan to stop;
[0022] If the action judgment result indicates that the action is not matched, second deceleration adjustment data is extracted from the first speed adjustment matching table; wherein the second deceleration adjustment data includes a second deceleration value and a second step monitoring value.
[0023] According to some embodiments of the present invention, the second adjustment data includes: a second preset speed, third deceleration adjustment data, and fourth deceleration adjustment data; if the user age is not within the preset age group, searching the second adjustment data in the second speed adjustment matching table according to the target distance and the user behavior action includes:
[0024] If the user's age is not within the preset age group, comparing the target distance with a first preset distance threshold and a second preset distance threshold; wherein the first preset distance threshold is lower than the second preset distance threshold;
[0025] If the target distance is greater than a second preset distance threshold, extracting a second preset speed from the second speed adjustment matching table;
[0026] If the target distance is between the first preset distance threshold and the second preset distance threshold, extracting third deceleration adjustment data from the second speed adjustment matching table; wherein the third deceleration adjustment data includes a third deceleration value and a third step monitoring value;
[0027] If the target distance is less than the first preset distance threshold, fourth deceleration adjustment data is searched in the first speed adjustment matching table according to the user behavior action; wherein the third deceleration adjustment data is greater than the fourth deceleration adjustment data.
[0028] According to some embodiments of the present invention, the fourth deceleration adjustment data includes: a fourth deceleration value, a fourth step detection value and a speed stop value; if the target distance is less than the first preset distance threshold, searching the fourth deceleration adjustment data in the second speed adjustment matching table according to the user behavior action includes:
[0029] If the target distance is lower than a first preset distance threshold, the user behavior action is matched with a preset behavior reference action to obtain an action judgment result; wherein the behavior reference action is characterized as a dangerous action;
[0030] If the action judgment result is characterized as action matching, extracting the speed stop value from the second speed adjustment matching table; wherein the speed stop value is used to control the fan to stop;
[0031] If the action judgment result indicates that the action is not matched, fourth deceleration adjustment data is extracted from the second speed adjustment matching table; wherein the fourth deceleration adjustment data includes a fourth deceleration value and a fourth step monitoring value.
[0032] According to some embodiments of the present invention, identifying the attributes of the user located in front of the fan includes:
[0033] Collecting user characteristics of the user through an infrared wide-angle camera; wherein the user characteristics include: appearance characteristics, height characteristics, skin color characteristics and human eye characteristics;
[0034] Convert the appearance feature into an appearance feature vector element, convert the height feature into a height feature vector element, convert the skin color feature into a skin color feature vector element, convert the eye feature into an eye feature vector element, and combine the appearance feature vector element, the height feature vector element, the skin color feature vector element and the eye feature vector element into a user feature vector;
[0035] The user feature vector is input into a preset age recognition model for age recognition processing to obtain the user age.
[0036] To achieve the above object, a second aspect of an embodiment of the present application provides a fan control device, the device comprising:
[0037] A first identification module, used for identifying attributes of a user located in front of the fan;
[0038] A detection module, used for acquiring the distance between the user and the fan based on the user attribute to obtain a target distance;
[0039] A second recognition module is used to recognize the user's behavior in front of the fan based on the target distance;
[0040] A processing module, used to find out fan adjustment data from a preset motor speed adjustment matching relationship table according to the user attribute, the target distance and the user behavior action; wherein the fan adjustment data includes: a target step monitoring value and a target speed adjustment value;
[0041] The adjustment control module is used to adjust the speed of the fan according to the target step monitoring value and the target speed adjustment value.
[0042] According to some embodiments of the present invention, the user attribute is the user age; the motor speed matching relationship table includes: a first speed adjustment matching table and a second speed adjustment matching table; the processing module includes: a first judgment module, a first processing submodule and a second processing submodule;
[0043] The first judgment module is used to compare the user's age with a preset age group; wherein the preset age group is characterized by the age group of young and middle-aged people;
[0044] The first processing submodule is configured to search the first speed adjustment matching table for first adjustment data according to the target distance and the user behavior action if the user age is within the preset age group;
[0045] The second processing submodule searches for second adjustment data in the second speed adjustment matching table according to the target distance and the user behavior action if the user age is not within the preset age group; and the first adjustment data is greater than the second adjustment data.
[0046] To achieve the above-mentioned purpose, a third aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0047] The present application proposes a fan control method, device and storage medium, which identifies the user attributes in front of the fan, obtains the distance between the user and the fan based on the user attributes to obtain the target distance, identifies the user behavior in front of the fan based on the target distance, and finds the fan adjustment data from a preset motor speed adjustment matching relationship table according to the user attributes, the target distance and the user behavior, wherein the fan adjustment data includes: a target step monitoring value and a target speed adjustment value, and adjusts the fan speed according to the target step monitoring value and the target speed adjustment value. Therefore, the present application gradually adjusts the fan speed through the user attributes, the distance between the user and the fan and the user's behavior, which can protect the user's safety, reduce the wear of the fan motor and improve the user's user experience while meeting the user's need for cooling off. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 is a flow chart of a fan control method provided by an embodiment of the present application;
[0049] Figure 2 yes Figure 1 Flow chart of step S104 in FIG.
[0050] Figure 3 yes Figure 2 Flow chart of step S202 in FIG.
[0051] Figure 4 yes Figure 3 Flow chart of step S304 in FIG.
[0052] Figure 5 yes Figure 2 Flow chart of step S203 in FIG.
[0053] Figure 6 yes Figure 5 Flow chart of step S504 in FIG.
[0054] Figure 7 yes Figure 1 Flow chart of step S101 in FIG.
[0055] Figure 8 is a module block diagram of a fan control device provided by an embodiment of the present application;
[0056] Fig. 9 yes Figure 8 A block diagram of the processing module in FIG. DETAILED DESCRIPTION
[0057] 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.
[0058] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0059] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0060] At present, the safety protection device of traditional electric fans is generally a mesh cover or a mesh cover plus electronic components such as sensors for detection. When a human body is sensed within the danger range, the capacitance of the sensitive electronic components changes to change the PWM signal output by the controller, thereby activating the emergency braking function to stop the fan blades from rotating. However, for rapidly rotating fan blades, due to inertia, when the emergency braking is activated, a strong impact force is still retained, and the human body cannot be completely protected from injury. Moreover, the protection device often activates the emergency braking to stop the fan blades from rotating when the fan is rotating rapidly. In the long run, this not only easily causes damage to the motor, but also provides a poor user experience.
[0061] Based on this, the embodiments of the present application provide a fan control method and device and a storage medium, aiming to protect the user's safety, reduce fan motor wear, and improve the user experience while ensuring the user's cooling needs are met through fan control.
[0062] A fan control method, device, and storage medium provided in an embodiment of the present application are specifically described through the following embodiments. First, the fan control method in an embodiment of the present application is described.
[0063] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0064] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0065] The fan control method provided in the embodiment of the present application relates to the field of artificial intelligence technology. The fan control method provided in the embodiment of the present application can be applied to a terminal. In some embodiments, the terminal can be a floor fan, a ceiling fan, a table fan, etc.;
[0066] Reference Figure 1 According to the fan control method provided in the first aspect of the embodiment of the present application, Figure 1 The method may include but is not limited to steps S101 to S105.
[0067] Step S101, identifying attributes of a user in front of a fan;
[0068] Step S102, obtaining the distance between the user and the fan based on the user attributes to obtain a target distance;
[0069] Step S103, identifying the user's behavior in front of the fan based on the target distance;
[0070] Step S104, searching for fan adjustment data from a preset motor speed adjustment matching relationship table according to user attributes, target distance and user behavior, wherein the fan adjustment data includes: a target step monitoring value and a target speed adjustment value;
[0071] Step S105, adjusting the speed of the fan according to the target step monitoring value and the target speed adjustment value.
[0072] Steps S101 to S105 shown in the embodiment of the present application are to identify the attributes of the user in front of the fan, obtain the distance between the user and the fan based on the user attributes to obtain the target distance, identify the user's behavior in front of the fan based on the target distance, and find out the fan adjustment data from the preset motor speed adjustment matching relationship table according to the user attributes, the target distance and the user's behavior, wherein the fan adjustment data includes: the target step monitoring value and the target speed adjustment value, and finally adjust the fan speed according to the target step monitoring value and the target speed adjustment value. Therefore, by finding out the fan adjustment data from the preset motor speed adjustment matching relationship table according to the user attributes, the target distance and the user's behavior, and adjusting the fan speed according to the fan adjustment data, it is ensured that while meeting the user's need for cooling off, the user's safety is protected, the fan motor wear is reduced, and the user's user experience is improved.
[0073] In some embodiments, see Figure 2 Step S101 may include but is not limited to steps S201 to S203:
[0074] Step S201, collecting user characteristics of the user through an infrared wide-angle camera, wherein the user characteristics include: appearance characteristics, height characteristics, skin color characteristics and human eye characteristics;
[0075] Step S202, converting the appearance feature into an appearance feature vector element, converting the height feature into a height feature vector element, converting the skin color feature into a skin color feature vector element, converting the human eye feature into a human eye feature vector element, and combining the appearance feature vector element, the height feature vector element, the skin color feature vector element and the human eye feature vector element into a user feature vector;
[0076] Step S203: input the user feature vector into a preset age recognition model for age recognition processing to obtain the user's age.
[0077] In step S201 of some embodiments, video data of the user is collected by an infrared wide-angle camera, and the video data is framed to obtain a video frame image, and feature extraction is performed on the video frame image to obtain user features, and the user features include appearance features, height features, skin color features and human eye features, so as to determine the current user attributes of the fan based on the appearance features, height features, skin color features and human eye features.
[0078] In step S202 of some embodiments, the appearance features, height features, skin color features and eye features extracted from the image are converted into corresponding feature vector elements through a built-in monitoring algorithm, and finally a user feature vector is obtained by combining the four feature vector elements to represent a user feature vector with user age characteristics.
[0079] In step S203 of some embodiments, the user feature vector is input into a preset age recognition model for age recognition processing to obtain the user's age, wherein the age recognition model is trained by a large number of user feature vectors evenly distributed in various age groups, and can effectively identify the age group to which the user feature vector belongs.
[0080] In steps S201 to S203 shown in the present embodiment, images are captured at regular intervals by an infrared wide-angle camera. If a user is detected in the captured image, user features of the user are collected by a built-in monitoring algorithm, wherein the user features include: appearance features, height features, skin color features and human eye features. The appearance features are then converted into appearance feature vector elements, the height features are converted into height feature vector elements, the skin color features are converted into skin color feature vector elements, the human eye features are converted into human eye feature vector elements, and the appearance feature vector elements, the height feature vector elements, the skin color feature vector elements and the human eye feature vector elements are combined into a user feature vector. During the conversion and combination process, the user features are extracted and converted in a targeted manner by the built-in monitoring algorithm through a preset conversion algorithm and a combination algorithm, so that they can better represent the user's age features. Finally, the user feature vector is input into a preset age recognition model for age recognition processing to obtain the user's age.
[0081] In some embodiments, see Figure 3 , the user attribute is the user age, the motor speed adjustment matching relationship table includes: a first speed adjustment matching table and a second speed adjustment matching table, and step S104 may include but is not limited to steps S301 to S303:
[0082] Step S301, comparing the user's age with a preset age group, wherein the preset age group is characterized by the age group of young and middle-aged people;
[0083] Step S302, if the user's age is within the preset age group, first adjustment data is searched in a first speed adjustment matching table according to the target distance and the user's behavior;
[0084] Step S303: if the user's age is not within the preset age group, second adjustment data is searched in the second speed adjustment matching table according to the target distance and the user's behavior, wherein the first adjustment data is greater than the second adjustment data.
[0085] In step S301 of some embodiments, the preset age groups include: children, young people, middle-aged people, and elderly people. Generally, people of different age groups have different possibilities of being harmed by fans. People are further distinguished according to the possibility of different groups being harmed by fans. For example, young people and middle-aged people can be determined as low-risk groups, and children and elderly people can be determined as high-risk groups. Therefore, by comparing the user's age with the preset age group, the user's group can be accurately distinguished.
[0086] In step S302 of some embodiments, if the user's age is within the preset age range, that is, it is determined that the user in front of the fan belongs to the low-risk group, then it is determined that the user is safer to use the fan, and a higher speed wind can be provided to improve the user's cooling experience, but the user's safety still needs to be protected when the distance is close. The first adjustment data is found in the first speed adjustment matching table according to the target distance and the user's behavior, and the first adjustment data is greater than the second adjustment data, so the fan speed is controlled according to the first adjustment data to ensure the user's safety while providing a better cooling experience.
[0087] In step S303 of some embodiments, if the user's age is not within the preset age range, it is determined that the user in front of the fan belongs to a high-risk group and is easily harmed by the fan. Therefore, it is necessary to lower the upper limit of the fan speed to ensure that emergency braking can be completed in a shorter time without damaging the fan motor. The second adjustment data is found in the second speed adjustment matching table according to the target distance and the user's behavior, and then the fan speed is controlled according to the second adjustment data. The first adjustment data is set to be greater than the second adjustment data, so the fan adjustment data is determined to be the second adjustment data to ensure that the upper limit of the speed of the second adjustment data is lower, so that it is easier to accurately control the fan to improve the safety of high-risk groups when using the fan and not easy to damage the fan motor.
[0088] In steps S301 to S303 shown in this embodiment, by comparing the user's age with the preset age group, the user's group is determined, and higher speed adjustment data is provided to the low-risk group to protect the safety of the low-risk group when using the fan without affecting the experience of the low-risk group, thereby improving the user experience, and using lower adjustment data for the high-risk group to ensure the safety of the user and the fan motor. Therefore, different speed adjustment schemes are used for the fan according to different types of people, making the fan control more targeted and effective.
[0089] In some embodiments, see Figure 4 The first adjustment data includes: a first preset speed, a first deceleration adjustment data, and a second deceleration adjustment data; step S302 may include but is not limited to steps S401 to S404:
[0090] Step S401, if the user's age is within the preset age range, compare the target distance with a first preset distance threshold and a second preset distance threshold; wherein the first preset distance threshold is lower than the second preset distance threshold;
[0091] Step S402, if the target distance is greater than the second preset distance threshold, extracting a first preset speed from a first speed adjustment matching table;
[0092] Step S403, if the target distance is between the first preset distance threshold and the second preset distance threshold, extracting first deceleration adjustment data from the first speed adjustment matching table, wherein the first deceleration adjustment data includes a first deceleration value and a first step monitoring value;
[0093] Step S404: if the target distance is less than the first preset distance threshold, find the second deceleration adjustment data in the first speed adjustment matching table according to the user behavior action, wherein the first deceleration adjustment data is greater than the second deceleration adjustment data.
[0094] In step S401 of some embodiments, by comparing the target distance with the first preset distance threshold and the second preset distance threshold, the users are further limited to the close-distance group, the medium-distance group and the long-distance group, and more accurate motion monitoring is performed on the group of users whose ages are within the preset age group, and the relative relationship of the first preset distance threshold being lower than the second preset distance threshold is limited.
[0095] In step S402 of some embodiments, if the target distance is greater than the second preset distance threshold, it means that the user is far away from the fan, which means that the user belongs to the long-distance crowd and is far away from the fan, which often leads to a poor cooling experience due to the long distance. The first preset speed is extracted from the first speed adjustment matching table, and then the fan speed is adjusted to the first preset speed according to the first preset speed, wherein the first preset speed is a speed set in advance by the user, and the user preset speed is not reduced, thereby ensuring that the user can still have a good cooling experience even at a distance from the fan.
[0096] In step S403 of some embodiments, if the target distance is between the first preset distance threshold and the second preset distance threshold, it means that the user belongs to the middle distance crowd. If the user moves further toward the fan, he may become a close distance crowd. Therefore, it is necessary to reduce the fan speed when the user approaches the fan to ensure that when the user suddenly moves toward the fan, the fan speed can also be reduced accordingly, so as to ensure that the fan will not be braked urgently from a higher speed level and cause damage to the fan motor. Therefore, the first deceleration adjustment data is extracted from the first speed adjustment matching table, wherein the first deceleration adjustment data includes the first deceleration value and the first step monitoring value, so as to ensure that when the user approaches the fan, the fan speed will also be decelerated and adjusted according to the first deceleration value and the first step monitoring value.
[0097] Specifically, when the distance between the user and the fan changes by the first step detection value, the fan speed drops by the first deceleration value. For example, when the distance between the user and the fan is less than the second preset distance threshold of 3m, a judgment is made whether the safe distance between the user and the fan is greater than or equal to the first preset distance threshold of 1m. If it is greater than or equal to 1m, 0.5m is used as the first step detection value, and the first deceleration value is 300 revolutions per step. After each reduction of 0.5m in distance, the motor speed changes by 1800-n*300, where 1800 is the first preset speed.
[0098] In step S404 of some embodiments, if the target distance is less than the first preset distance threshold, it means that the user belongs to the close-range group, which is the group most likely to make dangerous actions on the fan. Therefore, the infrared camera above the fan will detect and identify the user's action behavior, and then find the second deceleration adjustment data in the first speed adjustment matching table according to the user's action. Among them, because the user is closer to the fan, the detection and adjustment of the user also need to be more sensitive and rapid, so the first deceleration adjustment data is greater than the second deceleration adjustment data.
[0099] In steps S401 to S404 shown in this embodiment, by detecting the target distance between users within a preset age group and the fan, three different fan control methods are performed for people at long, medium and short distances to ensure that users have a better user experience and can also ensure user safety.
[0100] In some embodiments, see Figure 5 Step S404 may include but is not limited to steps S501 to S503:
[0101] Step S501, if the target distance is lower than a first preset distance threshold, the user's behavior action is matched with a preset behavior reference action to obtain an action judgment result, wherein the behavior reference action is characterized as a dangerous action;
[0102] Step S502: if the action judgment result is characterized as action matching, extracting a speed stop value from the first speed adjustment matching table, wherein the speed stop value is used to control the fan to stop;
[0103] Step S503: if the action judgment result indicates that the action is not matched, extract the second deceleration adjustment data from the first speed adjustment matching table, wherein the second deceleration adjustment data includes a second deceleration value and a second step monitoring value.
[0104] In step S501 of some embodiments, if the target distance is lower than the first preset distance threshold, that is, behavior detection is performed on people at close range, and the user's behavior is matched with the preset behavior reference action to obtain an action judgment result, wherein the behavior reference action is characterized as a dangerous action, that is, if the action judgment result matches the behavior reference action, it means that the user has made a dangerous action, otherwise, no dangerous action has been made. In this way, the fan can accurately make corresponding fan control for the corresponding matching result.
[0105] In step S502 of some embodiments, for users with matching actions, that is, users who make dangerous actions, a speed stop value is extracted from the first speed adjustment matching table, where the speed stop value is used to control the fan to stop, that is, when the user makes a dangerous action on the fan, the fan can take emergency braking measures to ensure the safety of the user.
[0106] In step S503 of some embodiments, for users whose actions do not match, that is, for users who have not made any dangerous actions, the second deceleration adjustment data is extracted from the first speed adjustment matching table, and then the fan speed is controlled according to the second deceleration adjustment data, wherein the second deceleration adjustment data includes a second deceleration value and a second step monitoring value, so as to achieve the effect that the fan speed will be lower when the user is closer to the fan. If the user makes a dangerous action at a closer distance, the fan can be emergency braked at a lower speed. Therefore, the fan motor gradually decelerates according to the distance from the user, so emergency braking of the fan motor at a low speed will not cause significant damage to the motor, and the fan can be stopped in time, thereby achieving the effect of protecting the fan motor and completing emergency braking faster to protect the safety of the user.
[0107] It should be noted that when the distance between the user and the fan is 0, the fan speed also drops to 0, because it is difficult to capture the user's behavior when the user is too close to the fan. Therefore, when the user is too close to the fan, the fan stops rotating to ensure the user's safety.
[0108] In steps S501 to S503 shown in this embodiment, if the target distance is lower than the first preset distance threshold, the action judgment result is obtained by matching the user behavior action with the preset behavior reference action. If the action judgment result is characterized by action matching, the speed stop value is extracted from the first speed adjustment matching table for emergency braking to protect the user's safety. If the action judgment result is characterized by action mismatch, the second deceleration adjustment data is extracted from the first speed adjustment matching table for deceleration and adjustment of the fan motor speed to ensure the user's cooling experience and safety, while also ensuring that the fan motor is not damaged.
[0109] In some embodiments, see Figure 6 The second adjustment data includes: a second preset speed, a third deceleration adjustment data, and a fourth deceleration adjustment data; step S303 includes but is not limited to steps S601 to S604:
[0110] Step S601, if the user's age is not within the preset age group, compare the target distance with a first preset distance threshold and a second preset distance threshold, wherein the first preset distance threshold is lower than the second preset distance threshold;
[0111] Step S602, if the target distance is greater than a second preset distance threshold, extracting a second preset speed from a second speed adjustment matching table;
[0112] Step S603, if the target distance is between the first preset distance threshold and the second preset distance threshold, extracting third deceleration adjustment data from the second speed adjustment matching table, wherein the third deceleration adjustment data includes a third deceleration value and a third step monitoring value;
[0113] Step S604: if the target distance is less than the first preset distance threshold, find out fourth deceleration adjustment data in the first speed adjustment matching table according to the user behavior action, wherein the third deceleration adjustment data is greater than the fourth deceleration adjustment data.
[0114] In step S601 of some embodiments, by comparing the target distance with the first preset distance threshold and the second preset distance threshold, the users are further limited to the close-distance group, the medium-distance group and the long-distance group, and more accurate motion monitoring is performed on the group of users whose age is within the preset age group, and the relative relationship of the first preset distance threshold being lower than the second preset distance threshold is limited.
[0115] In step S602 of some embodiments, if the target distance is greater than the second preset distance threshold, it means that the user is far away from the fan, which means that the user belongs to the long-distance crowd and is far away from the fan, which often leads to a poor cooling experience due to the long distance. The second preset speed is extracted from the second speed adjustment matching table, and then the fan speed is adjusted to the second preset speed according to the second preset speed, wherein the second preset speed is a speed preset by the user, and the speed preset by the user is not reduced, so as to ensure that the user can still have a good cooling experience even at a distance from the fan.
[0116] In step S603 of some embodiments, if the target distance is between the first preset distance threshold and the second preset distance threshold, it means that the user belongs to the middle-distance crowd. If the user moves further toward the fan, he may become a close-distance crowd. Therefore, it is necessary to reduce the fan speed when the user approaches the fan to ensure that when the user suddenly moves toward the fan, the fan speed can also be reduced accordingly, so as to ensure that the fan will not be emergency braked from a higher speed level and cause damage to the fan motor. Therefore, the third deceleration adjustment data is extracted from the second speed adjustment matching table, wherein the third deceleration adjustment data includes a third deceleration value and a third step monitoring value, so as to ensure that when the user approaches the fan, the fan speed will also be decelerated and adjusted according to the third deceleration value and the third step monitoring value.
[0117] Specifically, when the distance between the user and the fan changes by the third step detection value, the fan speed drops by the third deceleration value. For example, when the distance between the user and the fan is less than the second preset distance threshold of 3m, a judgment is made whether the safe distance between the user and the fan is greater than or equal to the first preset distance threshold of 1m. If it is greater than or equal to 1m, 0.5m is used as the third step detection value, and the first deceleration value is 200 revolutions per step. After each distance reduction of 0.5m, the motor speed changes by 1200-n*200, where 1200 is the second preset speed.
[0118] In step S604 of some embodiments, if the target distance is less than the first preset distance threshold, it means that the user belongs to the close-range group, which is the group most likely to make dangerous actions on the fan. Therefore, the infrared camera above the fan will detect and identify the user's action behavior, and find the fourth deceleration adjustment data in the second speed adjustment matching table according to the user's action. Among them, because the user is closer to the fan, the detection and adjustment of the user also need to be more sensitive and rapid, so the third deceleration adjustment data is greater than the fourth deceleration adjustment data.
[0119] Specifically, when the distance between the user and the fan is less than a first preset distance threshold of 1m, it is determined whether the user makes any dangerous actions. If the user makes any dangerous actions such as reaching out or approaching with other sticks, the motor directly adjusts the speed to 0. If no dangerous actions are made, then when the distance between the user and the fan changes by the fourth step detection value, the speed of the fan decreases by the fourth deceleration value. For example, when the distance between the user and the fan is less than 1m, the motor takes 0.2m as the fourth step detection value, and decelerates at a speed of 400-n*80 for every 0.2m reduction until the speed reaches 0. If during this period the user moves away from the fan, that is, the distance between the user and the fan increases, the speed of the fan will also increase accordingly.
[0120] In steps S601 to S604 shown in this embodiment, by detecting the target distance between users within a preset age group and the fan, three different fan control methods are performed for people at long, medium and short distances to ensure that users have a better cooling experience and their safety is guaranteed.
[0121] In some embodiments, see Figure 7 The fourth deceleration adjustment data includes: a fourth deceleration value, a fourth step detection value and a speed stop value; step S604 includes but is not limited to steps S701 to S703:
[0122] Step S701, if the target distance is lower than a first preset distance threshold, the user behavior action is matched with a preset behavior reference action to obtain an action judgment result, wherein the behavior reference action is characterized as a dangerous action;
[0123] Step S702: if the action judgment result is characterized as action matching, extracting a speed stop value from the second speed adjustment matching table, wherein the speed stop value is used to control the fan to stop;
[0124] Step S703: if the action judgment result indicates that the action is not matched, extract fourth deceleration adjustment data from the second speed adjustment matching table, wherein the fourth deceleration adjustment data includes a fourth deceleration value and a fourth step monitoring value.
[0125] In step S701 of some embodiments, if the target distance is lower than the first preset distance threshold, that is, behavior detection is performed on people at close range, and the user's behavior is matched with the preset behavior reference action to obtain an action judgment result, wherein the behavior reference action is characterized as a dangerous action, that is, if the action judgment result matches the behavior reference action, it means that the user has made a dangerous action, otherwise, no dangerous action has been made. In this way, the fan can accurately make corresponding fan control for the corresponding matching result.
[0126] In step S702 of some embodiments, for users with matching actions, that is, users who make dangerous actions, a speed stop value is extracted from the second speed adjustment matching table, where the speed stop value is used to control the fan to stop, that is, when the user makes a dangerous action on the fan, the fan can take emergency braking measures to ensure the safety of the user.
[0127] In step S703 of some embodiments, for users whose actions do not match, that is, for users who have not made any dangerous actions, the fourth deceleration adjustment data is extracted from the second speed adjustment matching table, and then the fan speed is controlled according to the fourth deceleration adjustment data, wherein the fourth deceleration adjustment data includes a fourth deceleration value and a fourth step monitoring value, so as to achieve the effect that the fan speed will be lower when the user is closer to the fan. If the user makes a dangerous action at a closer distance, the fan can be emergency braked at a lower speed. Therefore, the fan motor gradually decelerates according to the distance from the user, so emergency braking of the fan motor at a low speed will not cause significant damage to the motor, and the fan can be stopped in time, thereby achieving the effect of protecting the fan motor and completing emergency braking faster to protect the safety of the user.
[0128] It should be noted that when the distance between the user and the fan is 0, the fan speed also drops to 0, because it is difficult to capture the user's behavior when the user is too close to the fan. Therefore, when the user is too close to the fan, the fan stops rotating to ensure the user's safety.
[0129] In steps S701 to S703 shown in this embodiment, if the target distance is lower than the first preset distance threshold, the action judgment result is obtained by matching the user behavior action with the preset behavior reference action. If the action judgment result is characterized by action matching, the speed stop value is extracted from the second speed adjustment matching table for emergency braking to protect the user's safety. If the action judgment result is characterized by action mismatch, the fourth deceleration adjustment data is extracted from the second speed adjustment matching table for deceleration and adjustment of the fan motor speed to ensure the user's cooling experience and safety, while also ensuring that the fan motor is not damaged.
[0130] See also Figure 8 The present application also provides a fan control device that can implement the above-mentioned fan control method. The device includes:
[0131] The first identification module 801 is used to identify the attributes of the user in front of the fan;
[0132] A detection module 802 is used to obtain the distance between the user and the fan based on the user attributes to obtain a target distance;
[0133] The second recognition module 803 is used to recognize the user's behavior in front of the fan based on the target distance;
[0134] The processing module 804 is used to find out the fan adjustment data from the preset motor speed adjustment matching relationship table according to the user attributes, the target distance and the user behavior action; wherein the fan adjustment data includes: the target step monitoring value and the target speed adjustment value;
[0135] The adjustment control module 805 is used to adjust the speed of the fan according to the target step monitoring value and the target speed adjustment value.
[0136] In some embodiments, see Fig. 9 , the processing module 804 may include:
[0137] The first judgment module 901 is used to compare the user's age with a preset age group; wherein the preset age group is characterized by the age group of young and middle-aged people;
[0138] The first processing submodule 902 is used to find out the first adjustment data in the first speed adjustment matching table according to the target distance and the user's behavior action if the user's age is within the preset age group;
[0139] The second processing submodule 903 is used to find the second adjustment data in the second speed adjustment matching table according to the target distance and the user's behavior if the user's age is not within the preset age group. The first adjustment data is greater than the second adjustment data.
[0140] The specific implementation of the fan control device is substantially the same as the specific implementation of the above-mentioned fan control method, and will not be described in detail herein.
[0141] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned fan control method is implemented.
[0142] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0143] The fan control method, fan control device and storage medium provided in the embodiment of the present application identify the attributes of the user in front of the fan, obtain the distance between the user and the fan based on the user attributes, obtain the target distance, identify the user's behavior in front of the fan based on the target distance, and then find the fan adjustment data from the preset motor speed adjustment matching relationship table according to the user attributes, target distance and user behavior, wherein the fan adjustment data includes: target step monitoring value and target speed adjustment value; finally, adjust the fan speed according to the target step monitoring value and the target speed adjustment value. Therefore, through this scheme, the speed of the fan can be adjusted and controlled in real time according to the distance between the user and the fan and the user's behavior to ensure the safety of the user while also improving the user's cooling experience, and when the user is close to the fan and makes dangerous actions, the real-time speed adjustment strategy of this scheme can ensure that the fan motor will start emergency braking at a lower speed, thereby also achieving the technical effect of protecting the fan motor.
[0144] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0145] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0146] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0147] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0148] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0149] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0150] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0151] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0152] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0153] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0154] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A fan control method, It is characterized in that The method comprises: Identify the attribute of the user in front of the fan; wherein the user attribute is the user's age; Acquire the distance between the user and the fan based on the user attribute to obtain a target distance; Identify a user's behavior in front of the fan based on the target distance; According to the user attribute, the target distance and the user behavior action, the fan adjustment data is searched from a preset motor speed adjustment matching relationship table; wherein the fan adjustment data includes: a target step monitoring value and a target speed adjustment value; The identifying the attributes of the user located in front of the fan includes: Collecting user characteristics of the user through an infrared wide-angle camera; wherein the user characteristics include: appearance characteristics, height characteristics, skin color characteristics and human eye characteristics; Convert the appearance feature into an appearance feature vector element, convert the height feature into a height feature vector element, convert the skin color feature into a skin color feature vector element, convert the eye feature into an eye feature vector element, and combine the appearance feature vector element, the height feature vector element, the skin color feature vector element and the eye feature vector element into a user feature vector; Inputting the user feature vector into a preset age recognition model for age recognition processing to obtain the user age; The step of searching for fan adjustment data from a preset motor speed adjustment matching relationship table according to the user attribute, the target distance, and the user behavior action includes: Comparing the user's age with a preset age group; wherein the preset age group is characterized by the age group of young and middle-aged people; Based on the user attributes, a corresponding preset motor speed adjustment matching relationship table is obtained; wherein the motor speed adjustment matching relationship table includes: a first speed adjustment matching table and a second speed adjustment matching table; If the user age is within the preset age group, first adjustment data is searched in the first speed adjustment matching table according to the target distance and the user behavior; wherein the first adjustment data includes: a first preset speed, a first deceleration adjustment data, and a second deceleration adjustment data; If the user age is not within the preset age group, find the second adjustment data in the second speed adjustment matching table according to the target distance and the user behavior; wherein the first adjustment data is greater than the second adjustment data, and the second adjustment data includes: a second preset speed, a third deceleration adjustment data, and a fourth deceleration adjustment data; If the user age is within the preset age group, searching the first adjustment data in the first speed adjustment matching table according to the target distance and the user behavior action includes: If the user's age is within the preset age group, comparing the target distance with a first preset distance threshold and a second preset distance threshold; wherein the first preset distance threshold is lower than the second preset distance threshold; If the target distance is greater than a second preset distance threshold, extracting a first preset speed from the first speed adjustment matching table; If the target distance is between the first preset distance threshold and the second preset distance threshold, extracting first deceleration adjustment data from the first speed adjustment matching table; wherein the first deceleration adjustment data includes a first deceleration value and a first step monitoring value; If the target distance is less than the first preset distance threshold, searching for second deceleration adjustment data in the first speed adjustment matching table according to the user behavior action; wherein the first deceleration adjustment data is greater than the second deceleration adjustment data; If the user age is not within the preset age group, searching the second adjustment data in the second speed adjustment matching table according to the target distance and the user behavior action includes: If the user's age is not within the preset age group, comparing the target distance with a first preset distance threshold and a second preset distance threshold; wherein the first preset distance threshold is lower than the second preset distance threshold; If the target distance is greater than a second preset distance threshold, extracting a second preset speed from the second speed adjustment matching table; If the target distance is between the first preset distance threshold and the second preset distance threshold, extracting third deceleration adjustment data from the second speed adjustment matching table; wherein the third deceleration adjustment data includes a third deceleration value and a third step monitoring value; If the target distance is less than the first preset distance threshold, searching for fourth deceleration adjustment data in the second speed adjustment matching table according to the user behavior action; wherein the third deceleration adjustment data is greater than the fourth deceleration adjustment data; The speed of the fan is adjusted according to the target step monitoring value and the target speed adjustment value.
2. The method according to claim 1, It is characterized in that The second deceleration adjustment data includes: a second deceleration value, a second step detection value and a speed stop value; if the target distance is less than the first preset distance threshold, searching the first speed adjustment matching table for the second deceleration adjustment data according to the user behavior action includes: If the target distance is lower than a first preset distance threshold, the user behavior action is matched with a preset behavior reference action to obtain an action judgment result; wherein the behavior reference action is characterized as a dangerous action; If the action judgment result is characterized as action matching, extracting the speed stop value from the first speed adjustment matching table; wherein the speed stop value is used to control the fan to stop; If the action judgment result indicates that the action is not matched, second deceleration adjustment data is extracted from the first speed adjustment matching table; wherein the second deceleration adjustment data includes a second deceleration value and a second step monitoring value.
3. The method according to claim 1, It is characterized in that The fourth deceleration adjustment data includes: a fourth deceleration value, a fourth step detection value and a speed stop value; if the target distance is less than the first preset distance threshold, searching the fourth deceleration adjustment data in the second speed adjustment matching table according to the user behavior action includes: If the target distance is lower than a first preset distance threshold, the user behavior action is matched with a preset behavior reference action to obtain an action judgment result; wherein the behavior reference action is characterized as a dangerous action; If the action judgment result is characterized as action matching, extracting the speed stop value from the second speed adjustment matching table; wherein the speed stop value is used to control the fan to stop; If the action judgment result indicates that the action is not matched, fourth deceleration adjustment data is extracted from the second speed adjustment matching table; wherein the fourth deceleration adjustment data includes a fourth deceleration value and a fourth step monitoring value.
4. A fan control device, It is characterized in that The fan control device is used to implement the fan control method according to any one of claims 1 to 3, and the device comprises: A first identification module is used to identify the attribute of the user in front of the fan; wherein the user attribute is the user's age; A detection module, used for acquiring the distance between the user and the fan based on the user attribute to obtain a target distance; A second recognition module is used to recognize the user's behavior in front of the fan based on the target distance; A processing module, configured to search for fan adjustment data from a preset motor speed adjustment matching relationship table according to the user attribute, the target distance and the user behavior action; wherein the motor speed matching relationship table includes: a first speed adjustment matching table and a second speed adjustment matching table, and the fan adjustment data includes: a target step monitoring value and a target speed adjustment value; The processing module comprises: A first judgment module is used to compare the user's age with a preset age group; wherein the preset age group is characterized by the age group of young and middle-aged people; A first processing submodule, configured to search the first speed adjustment matching table for first adjustment data according to the target distance and the user behavior action if the user age is within the preset age group; A second processing submodule, if the user age is not within the preset age group, searching for second adjustment data in the second speed adjustment matching table according to the target distance and the user behavior action; wherein the first adjustment data is greater than the second adjustment data; The adjustment control module is used to adjust the speed of the fan according to the target step monitoring value and the target speed adjustment value.
5. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the fan control method according to any one of claims 1 to 3 is implemented.
