Fan control method, device and computer equipment

Image recognition technology is used to determine the user's stationary state and control the fan to enter sleep mode, solving the problem of the fan still running after the user falls asleep, achieving efficient energy saving of the equipment and convenient user control.

CN116006494BActive Publication Date: 2025-10-17JIANGSU DONGCHENG TOOLS TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310077915.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-07
Publication Date
2025-10-17
Estimated Expiration
2043-02-07

AI Technical Summary

Technical Problem

The fan control method in the prior art requires manual operation, which causes the fan to continue running after the user enters sleep mode, increasing device loss and reducing ease of use.

Method used

By acquiring an image of the target area, identifying the current time and user displacement information in the image, it is determined whether the user is in a stationary state. If the stationary time exceeds a preset time, the fan is controlled to enter sleep mode.

Benefits of technology

It achieves precise control of fans, reduces equipment losses, and improves usage flexibility and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116006494B_ABST
    Figure CN116006494B_ABST
Patent Text Reader

Abstract

The application provides a fan control method and device and computer equipment, and relates to the field of computers.The fan control method obtains an image of a target place, identifies a current time and user displacement information in the image, thereby determining whether the user is in a stationary state.If the user is continuously in a stationary state, the fan is controlled to switch to a sleep mode, thereby avoiding the inconvenience of manual operation of the equipment and achieving the technical effect of precisely controlling the operation of the fan.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present application relates to the computer technical field, specifically, a fan control method, device and computer equipment.

[0002] With the rapid development of science and technology, the use frequency of the fan is more and more frequent, in order to improve the use flexibility of the fan, the prior art can control the start and stop of the fan through the remote control method, but this method still needs the artificial operation of the user, especially when the person who takes a cool enters the sleep state, the fan is still rotating in the original state, the traditional electric fan control mode not only reduces the convenience of use, but also increases the loss of the equipment.

[0003] The main purpose of the present application is to provide a fan control method and device, which aims to realize the accurate control of the fan, improve the use flexibility of the fan, reduce the loss of the equipment, and meet the needs of the user.

[0004] The first aspect of the present application provides a fan control method, which comprises:

[0005] Obtaining a target image in a target area, the target image comprising at least one target user, the target area being the control area of the fan;

[0006] Identifying and processing the target image to determine the current time and the displacement information of the current user in the target image;

[0007] If the current user is determined to be in a stationary state according to the current time and the displacement information of the current user, the stationary time of the current user in the stationary state is accumulated;

[0008] If the stationary time of the current user is greater than a preset time length, the fan is controlled to enter a sleep mode.

[0009] The second aspect of the present application provides a fan control device, which comprises a collection module, an identification module, a processing module and a control module.

[0010] The collection module is used for obtaining a target image in a target area, the target image comprising at least one target user, the target area being the control area of the fan;

[0011] The identification module is used for identifying and processing the target image to determine the current time and the displacement information of the current user in the target image;

[0012] ​​​The processing module is configured to accumulate a static time of the current user in a static state if the current user is determined to be in the static state according to the current time and the displacement information of the current user.

[0013] The control module is configured to control the fan to enter a sleep mode if the static time of the current user is greater than a preset time length.

[0014] A third aspect of the embodiments of the present application provides a computer device, including a memory and a processor, the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0015] A fourth aspect of the embodiments of the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of any one of the above methods.

[0016] In the embodiments of the present disclosure, the target image in the room can be acquired by the image acquisition device, and the displacement information of the current indoor user and the current time point can be recognized. When detecting the personnel information, the target image in the room can be acquired by the image acquisition device, and then the acquired image can be recognized. According to the recognition result, it can be determined whether there is a person in the room at present, so as to obtain the personnel information. The scheme is simple to implement and has high usability.

[0017] In the embodiments of the present disclosure, after detecting the user displacement information and the current time, the determination rule corresponding to the current time period can be determined, and the user state can be determined by the determination rule. Therefore, the running mode of the fan can be selected according to the static state of the user. The scheme is simple to implement and has high usability.

[0018] In the embodiments of the present disclosure, after determining the user state corresponding to the current time period, the control mode of the fan can be selected according to the user state, and the limitation degree of different control modes on the fan is different. The process of selecting the fan mode by combining the current time period and the user information is realized, the intelligent degree of the fan device is improved, and the user is facilitated. BRIEF DESCRIPTION OF DRAWINGS

[0019] The specific embodiments of the present application will be further described in detail below with reference to the accompanying drawings:

[0020] Figure 1 is an application scenario diagram of a fan control method provided by an embodiment of the present application;

[0021] Figure 2 is a flowchart of a fan control method provided by an embodiment of the present application;

[0022] Figure 3is a fan control device structure schematic diagram provided by an embodiment of the present application.

[0023] Figure 4 is a computer device structure schematic diagram provided by an embodiment of the present application.

CONCRETE IMPLEMENTATION

[0024] In the process of implementing the present application, the inventors found that in the process of controlling the movement of the fan, the existing technology causes waste of device resources and poor control flexibility because of the inconvenience of manual operation.

[0025] In view of the above problems, the present application provides a fan control method.

[0026] In the current technical solution, the traditional electric fan control method not only reduces the convenience of use, but also increases the loss of the device. For example, the start, stop and gear operation of the fan are manually controlled through the keys of the fan device itself or a remote control device, and for example, the fan is controlled through voice recognition of the user's operation instruction. However, the operation method of the prior art has defects, that is, whether it is a button or voice recognition, the user needs to actively operate, and when the user is in sleep, the tool cannot be adjusted, which may cause waste of electric energy and poor user experience.

[0027] In view of the problem of excessive resource loss caused by the above fan control process, the present application provides a fan control method, which acquires an image of a target place, recognizes the current time and user displacement information in the image, and determines whether the user is in a stationary state. If the user is in a stationary state, the fan is controlled to switch to a sleep mode, thereby solving the problem of resource waste in the fan operation process and achieving the technical effect of improving the fan operation efficiency.

[0028] The scheme in the embodiment of the present application can be implemented in various computer languages, such as object-oriented programming language Java and interpreted script language JavaScript.

[0029] In order to make the technical solutions and advantages in the embodiments of the present application clearer, the following will further describe the exemplary embodiments of the present application in detail with reference to the drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0030] The application environment of the fan control method provided by the embodiments of the present application is briefly described as follows:

[0031] Please refer to Figure 1The fan control method provided in the embodiment of the application is applied to a fan control system 10, and the fan control system 10 at least includes an image acquisition device 101 and a processor 102. The image acquisition device 101 is configured to acquire an image in a target space; the processor 102 is configured to acquire the image sent by the image acquisition device 101, identify displacement information and time information of a current user in the image according to an image processing algorithm, determine whether the current user is in a static state according to the displacement information and the time information of the current user, and control the fan to enter a sleep mode according to the static state of the user.

[0032] Please refer to Figure 2 The following embodiment takes the fan control system 10 as an execution subject, and applies the method provided in the embodiment of the application to fan control, to identify the activity of a user and the current time according to a monitoring image in a target space, and to control the fan to operate according to the identification result. The fan control method provided in the embodiment of the application includes the following steps 201-203.

[0033] Step 201: Acquire a target image in a target area.

[0034] The target image includes at least one target user, and the target area refers to a control area of the fan, for example, a target area is set according to a distance at which a human body can sense the wind power of the fan. When multiple fans are deployed at different positions in a room, the target area can also be set according to the range set by a user to avoid errors in controlling the fan.

[0035] The embodiment of the application can acquire the target image by deploying multiple image acquisition modules in the target area. The image acquisition device is configured to acquire an image in the target area, to facilitate identification of a user in the target area and analysis of whether the user is in a static state. The image acquisition module can be integrated with the fan body or independently installed at a fixed position, and the specific deployment manner is not limited herein.

[0036] The embodiment of the application can further perform filtering processing on the image after acquiring the image of the target area, to improve the image recognition accuracy. For example, the image is subjected to noise reduction processing, and images that do not meet the preset requirements are removed, to avoid recognition errors caused by image quality. Alternatively, similar images are deleted, to avoid resource waste caused by repeated processing of the images. Multiple images can also be acquired within a preset time period, and the optimal image is determined for analysis and processing, to further improve the accuracy of image processing.

[0037] The embodiment of the present application converts the image into a digital signal after acquiring the image, identifies the user in the image through the digital signal, extracts the human feature parameters of the user such as the human contour, determines whether the user exists in the image through the matching analysis of the preset model and the human feature parameters, determines the position of the user in the target region through the edge detection method or the morphological positioning method when detecting the user in the image, further identifies the displacement range of the user in the position such as whether the user stands up, turns around or turns over after positioning the user, and finally determines whether the user is in a stationary state according to the displacement range of the user, so as to control the movement of the fan.

[0038] Step 202, identifying and processing the target image to determine the current time and the displacement information of the current user in the target image.

[0039] The displacement information of the current user includes the displacement angle and the displacement distance determined based on a target coordinate system. The target coordinate system can be a coordinate system determined through conversion processing based on a world coordinate system, a camera coordinate system in which an image acquisition device is located, and an image coordinate system in which the target image is located.

[0040] In the embodiment of the present application, the process of determining the displacement information of the user through the target image in step 202 can include:

[0041] acquiring the target image and the previous frame image of the target image;

[0042] and extracting the first contour of the current user in the target image and the second contour of the current user in the previous frame image of the target image;

[0043] According to the image coordinate system, the position information of the first contour and the position information of the second contour are sequentially identified;

[0044] According to the position information of the first contour and the position information of the second contour, the displacement amount of the current user is obtained.

[0045] In the embodiment of the present application, in order to improve the accuracy of positioning, the acquired image can also be divided into several regions, and the target object in each region is sequentially determined, and the displacement information of the object is marked, for example, according to the human skeleton, the head region, the trunk region, the left limb region, the right limb region, the back region, the left leg region and the right leg region are divided, after obtaining the displacement information of each region, the region is marked according to the identification information of the region, which is convenient for subsequent analysis of whether the user is in a sleep mode.

[0046] In the embodiment of the present application, the contour information of the user in the image can be identified through the edge detection algorithm, and the processing process can include:

[0047] The edge algorithm is used to identify the pixel points located at the edge positions in the target image, and the pixel points at the edge positions are connected to generate a preliminary contour line;

[0048] The remaining pixel points located at the edge positions within a preset range in the target image are identified;

[0049] The remaining pixel points are supplemented into the preliminary contour line according to a connection rule, and the connection rule is determined according to at least the magnitude and angle of the gradient vector of the pixel points;

[0050] After removing the noise in the preliminary contour line, a first contour of the current user in the target image is generated.

[0051] In the above edge identification, the pixel points at the edge positions can be determined according to the gray level step change of the image pixel points. When the gray value derivative is large or an extreme value occurs, the pixel points are defined as the pixel points at the edge positions.

[0052] In the practical process of the embodiments of the present application, the edge detection result is not a complete and complete edge due to edge breakage caused by noise, light, etc. Therefore, the edge connection algorithm is used to combine the edge pixels into meaningful edge or region boundary, so as to improve the accuracy of human body recognition. The edge connection algorithm can be divided into local processing method and global processing method. The local processing method of edge connection is to analyze the neighborhood of each edge pixel, and connect all similar points according to the predefined criteria to form the edge of the same type of pixel. In the local analysis, the similarity of the edge pixels is mainly judged based on the magnitude and direction of the gradient vector: each pixel of the image is detected, and if the current pixel point meets both the magnitude condition and the direction condition, the pixel is connected to the preliminary contour.

[0053] In the embodiments of the present application, the determination of the current time in the target image in step 202 includes:

[0054] The target image is analyzed to obtain the gray value of each pixel point in the target image;

[0055] If the gray value of the current pixel point is greater than the preset gray value, the current pixel point is determined as a first type of pixel point, and the number of the first type of pixel point is accumulated;

[0056] If the gray value of the current pixel point is less than or equal to the preset gray value, the current pixel point is determined as a second type of pixel point, and the number of the second type of pixel point is accumulated;

[0057] If the ratio of the number of the second type of pixel point to the first type of pixel point is greater than a threshold value, the time indication in the target image is determined as a first time period.

[0058] If the number of the second type of pixel points and the proportion of the first type of pixel points are less than or equal to a threshold, it is determined that the time indication in the target image is the second time period.

[0059] For example, the first time period indicates daytime, and the second time period indicates nighttime.

[0060] For example, in the embodiments of the present application, the target image can be recognized to perform grayscale processing on the image to obtain the grayscale value of each pixel point; the position (X, Y) in the target coordinate system is determined according to the grayscale value of each pixel point, wherein one coordinate axis in the target coordinate system can indicate the grayscale value of the pixel, and the other coordinate axis can indicate the sequence number value of the pixel point in the image; if the X value of the position coordinate of the current pixel point is greater than a preset value, and the Y value is greater than a preset value, the coordinate point is marked as a first type of pixel point, otherwise, it is a second type of pixel point; the number of the first type of pixel points and the number of all pixel points in the image are counted, and the proportion of the first type of pixel points in the image pixel points is calculated; if the proportion is greater than a preset value, it is determined that the current time indicates nighttime.

[0061] If the target region in the embodiments of the present application is indoors, the light in the current indoor environment can be with or without a lamp, daytime or nighttime. The brightness can be used to roughly distinguish between nighttime and daytime, but the brightness alone cannot accurately distinguish the light, so other parameter information in the auxiliary image is needed to avoid errors in subsequent identification of whether the user is in a stationary state, which ultimately reduces the accuracy of the fan control. For example, the position and transmission area of the light source can be combined, and the transmission area of natural light is greater than that of the lamp. The position of the lamp can be determined by image recognition, and further combined with weather information for comprehensive judgment.

[0062] The image acquisition device in the embodiments of the present application can be configured with an infrared imaging function, and can also acquire a target image including a color image part and an infrared image part. In the case of weak infrared light, the proportion of the color part image in the target image acquired by the image acquisition device is greater than the infrared part image; in the case of weak visible light, the proportion of the color part image in the target image acquired by the image acquisition device is less than the infrared part image, so that the image can be acquired in different lighting environments.

[0063] In step 203, whether the current user is in a sleep state is determined according to the current time and the displacement information of the current user.

[0064] The sleep state refers to a state in which the range of movement of the current user's body remains within a preset range within a preset time.

[0065] In the embodiments of the present application, the determination of whether the current user is in a sleep state in the above step 203 includes:

[0066] determining a target time period matched by the current time within a preset time period;

[0067] According to the second mapping relationship, a preset displacement range matched by the target time period is obtained, the second mapping relationship being used to indicate a relationship between a preset time period and a preset time threshold;

[0068] If the displacement range is less than or equal to the preset displacement range, it is determined that the current user is in a static state, and a static duration is started to be calculated.

[0069] If the displacement range is greater than the preset displacement range, it is determined that the user is not in a static state, and the user continues to be monitored by the target image.

[0070] The preset displacement range at least includes a preset displacement direction and a preset displacement distance, so that the displacement direction and the displacement distance of the user both need to be less than the preset displacement direction and the preset displacement distance, so as to determine that the user is in a static state.

[0071] When the image recognition is performed, the embodiments of the present application can be divided into a plurality of sub-regions, and a sub-image of each sub-region is obtained; a coordinate system in each sub-image is constructed according to a position of the user and a world coordinate system; displacement data of the user in the sub-region is obtained based on the coordinate system in each region, so as to accurately determine whether the displacement is within the preset displacement range.

[0072] The embodiments of the present application also construct a user data model through a displacement algorithm and user behavior data, so as to accurately determine whether the user is in a static state.

[0073] The embodiments of the present application can divide the recognized user region into a plurality of regions based on an artificial intelligence machine learning algorithm, each region can match different determination rules and determination thresholds, so as to accurately determine whether the user is in a sleep mode.

[0074] If it is determined through the image recognition processing that the target image collected detects a target object in a target space as a motion state, the fan is maintained to move.

[0075] Before determining whether the current user is in a sleep state in step 203, the embodiments of the present application further include:

[0076] Obtaining historical static data of the user in the target region, the historical static data at least including a frequency of being in a static state and a static duration of the user in each time period;

[0077] According to the historical static data, a preset displacement range and a preset duration matched by each time period are determined, and a first mapping relationship and a second mapping relationship are generated.

[0078] For example, if the historical static data shows that the user works more frequently in the daytime than in the evening, the preset time length in the daytime can be set to be greater than that in the evening, so as to determine the first mapping relationship, and the preset displacement range in the daytime can be set to be greater than that in the evening, so as to determine the second mapping relationship.

[0079] For another example, the target time period can be divided according to multiple time periods, for example, the first time period is set to be from 8:00 am to 4:00 pm, the second time period is set to be from 4:00 pm to 0:00 am, and the third time period is set to be from 0:00 am to 8:00 am; if the current time indicates the first time period, the corresponding target reference value is the second threshold value; if the current time indicates the second time period, the corresponding target reference value is the second threshold value; if the current time indicates the third time period, the corresponding target reference value is the third threshold value; according to the user activity law statistically obtained, different threshold values are set, for example, the user is a night shift user, and the corresponding night activity is greater than the daytime activity, so the threshold value for judging whether the user moves in the evening should be longer than that in the daytime; according to the above rule, the first threshold value is less than the second threshold value, and the second threshold value is less than the third threshold value.

[0080] In the embodiment of the application, if the user switches from the static state to the non-static state, it can be judged again whether the user enters the static state, so as to determine whether the user enters the sleep mode.

[0081] For example, the user may get up and move during sleep, and if the user enters the sleep mode again at the current time in the evening, the time for detecting and judging whether the user enters the sleep mode can be appropriately shortened within 20 minutes after the previous sleep mode ends.

[0082] The above determination of whether the user is in the static state can be determined by whether the user is in the moving state, including:

[0083] According to the target image, the static time of the current user in the static mode is obtained.

[0084] If the static time of the current user is greater than the target reference value, it is determined that the current user is in the sleep mode.

[0085] If the current user is in the sleep mode, the fan is controlled to enter the sleep mode.

[0086] The movement mode of the fan includes controlling the fan to start, stop, standby, and rotate, wherein the control of the fan rotation at least includes control of at least one of the rotation time length, the rotation angle, and the rotation gear of the fan.

[0087] For example, the sleep mode of the fan can be to reduce the rotation speed of the fan, so that the temperature in the target area decreases by a reduced amount; can be to control the rotation angle of the fan, so that the wind force in the target area is reduced or disappears, or can control the fan to stop and the like, so as to avoid the user's body temperature from being reduced after sleep or the body temperature from being reduced due to blowing, thereby improving the user's use experience and the intelligence of the device.

[0088] In the embodiment of the present application, the step 204 of controlling the fan to enter the sleep mode comprises:

[0089] determining a target time period matched by the current time in a preset time period, the preset time period comprising a plurality of time periods;

[0090] obtaining a preset duration matched by the target time period according to a first mapping relationship, the first mapping relationship being used to indicate the relationship between the preset time period and the preset time;

[0091] if the static time is greater than the preset duration, controlling the fan to enter the sleep mode;

[0092] if the static time is less than or equal to the preset duration, continuing to monitor the user.

[0093] When the human body motion is detected for more than a period of time, the tool is controlled to exit the sleep mode, and the preset value of the human body in the static state is adjusted according to the real-time time to determine when to enter the sleep mode.

[0094] Based on the above judgment process, the accuracy of user state recognition can be ensured, and the sleep mode is prevented from being misjudged, and different preset values are set for different time periods, thereby improving the user's use experience.

[0095] The embodiment of the present application can also be applied to the scene of multiple users, and each fan is controlled according to each user, and the control process comprises:

[0096] if multiple users are recognized in the target image, obtaining the position information of each user in the multiple users and the position information of each fan in the target area;

[0097] determining the target fan matched by each target user according to the position information of each user in the multiple users and the position information of each fan in the target area;

[0098] determining whether the target fan matched by the target user enters the sleep state according to whether the target user is in the static state.

[0099] By confirming the matched fan of each user, the operation of the fan can be more accurately controlled. If the fan areas of two users overlap, the judgment can be performed again when the fan rotates to the overlapping area. If both users are in a stationary state, the fan is controlled to enter a sleep mode. If only one of the two users is in a stationary state, the fan is controlled to reduce the wind speed or adjust the fan direction to avoid blowing to the user in the stationary state. The control is not specifically limited here, and the fan is controlled according to the actual state of the user.

[0100] The fan control method provided in the embodiments of the application can obtain an image of a target place, identify the current time and displacement information of a user in the image, determine whether the user is in a stationary state, and control the fan to switch to a sleep mode if the user is continuously in the stationary state. The fan control method solves the problem of resource waste in the operation of the fan, achieves the technical effect of accurately controlling the operation of the fan, and improves the user's comfort.

[0101] It should be understood that, although the steps in the flowchart are shown in order according to the arrows, the steps are not necessarily executed in order according to the arrows. Unless otherwise specified herein, the steps are not strictly limited in order of execution, and the steps can be executed in other orders. Moreover, at least part of the steps in the figure can include multiple sub-steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times. The execution order of the sub-steps or stages is not necessarily sequential, but can be alternately or alternately executed with at least part of other steps or sub-steps or stages of other steps.

[0102] Please refer to Figure 3 An embodiment of the application provides a fan control device 30, which comprises an acquisition module 301, an identification module 302, a processing module 303 and a control module 304.

[0103] The acquisition module 301 is used to obtain a target image in a target area, the target image comprising at least one target user, and the target area being a control area of the fan.

[0104] The identification module 302 is used to identify and process the target image, and determine the current time and displacement information of the current user in the target image.

[0105] The processing module 303 is used to accumulate the stationary time of the current user if it is determined that the user is in a stationary state according to the current time and the displacement information of the current user.

[0106] The control module 304 is used to control the fan to enter a sleep mode if the stationary time of the current user is greater than a preset time length.

[0107] In an optional embodiment, the identification module 302 in the apparatus 30 is further configured to:

[0108] Acquire the target image and the previous frame image of the target image;

[0109] Extracting a first outline of the current user in the target image and a second outline of the current user in a previous frame of the target image;

[0110] sequentially identifying position information of the first contour and position information of the second contour according to the image coordinate system;

[0111] The displacement information of the current user is acquired according to the position information of the first outline and the position information of the second outline.

[0112] In an optional embodiment, the identification module 302 in the apparatus 30 is further configured to:

[0113] Analyze the target image to obtain the grayscale value of each pixel in the target image;

[0114] If the grayscale value of the current pixel is greater than the preset grayscale value, the current pixel is determined to be a pixel of the first type, and the number of pixels of the first type is accumulated;

[0115] If the grayscale value of the current pixel is less than or equal to the preset grayscale value, the current pixel is determined to be a second type pixel, and the number of the second type pixels is accumulated;

[0116] If the ratio of the number of the second type of pixels to the first type of pixels is greater than a threshold, it is determined that the time indication in the target image is the first time period.

[0117] In an optional embodiment, the processing module 303 in the apparatus 30 is further configured to:

[0118] Parsing the target image to obtain displacement information of the current user, wherein the displacement information includes a displacement distance and a displacement angle of the user;

[0119] Determining a target time period that matches the current moment within a preset time period;

[0120] Obtaining a preset displacement range matched by the target time period according to a second mapping relationship, where the second mapping relationship is used to indicate a relationship between a preset time period and a preset time threshold;

[0121] If the displacement information of the current user is within the preset displacement range, it is determined that the current user is in a stationary state, and the stationary time length is calculated.

[0122] In an optional embodiment, the control module 304 in the device 30 is further configured to:

[0123] determine a target time period matched with the current time in a preset time period, the preset time period including a plurality of time periods;

[0124] obtain a preset duration matched with the target time period according to a first mapping relationship, the first mapping relationship being used to indicate a relationship between the preset time period and a preset time;

[0125] if the stationary time is greater than the preset duration, control the fan to enter a sleep mode.

[0126] The device for fan control provided in the embodiments of the present application obtains an image of a target place, identifies a current time and displacement information of a user in the image, and determines whether the user is in a stationary state, and if the user is continuously in the stationary state, controls the fan to switch to a sleep mode, thereby solving the problem of resource waste in the operation of the fan, achieving the technical effect of precisely controlling the operation of the fan, and improving the user's comfort.

[0127] The specific limitations of the device for fan control can be found in the limitations of the fan control method described above, and will not be repeated here. Each module in the device for fan control can be realized by software, hardware, or a combination thereof, in whole or in part. Each module described above can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory in the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to each module.

[0128] In one embodiment, a computer device is provided, and an internal structure diagram of the computer device can be as shown in Figure 4 The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. The processor of the computer device is configured 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, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The database of the computer device is configured to store data. The network interface of the computer device is configured to communicate with an external terminal through a network connection. The computer program is executed by the processor to implement a fan control method as described above. The computer program includes a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement any step of the fan control method described above.

[0129] In one embodiment, a computer readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, can implement any of the steps of the fan control method as described above.

[0130] Those skilled in the art will appreciate that embodiments of the present application can be supplied as a method, a system, or a computer program product. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer readable program code thereon.

[0131] The present application is described in reference to the flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart illustrations and / or block diagrams block or blocks. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams block or blocks. Figure 1 means for performing the function specified by the flowchart illustrations and / or block diagrams block or blocks.

[0132] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the flowchart illustrations and / or block diagrams block or blocks. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams block or blocks. Figure 1 means for performing the function specified by the flowchart illustrations and / or block diagrams block or blocks.

[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the flowchart illustrations and / or block diagrams block or blocks. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams block or blocks. Figure 1 means for performing the function specified by the flowchart illustrations and / or block diagrams block or blocks.

[0134] While the preferred embodiments of the application have been described, additional variations and modifications can be made to these embodiments by those skilled in the art once they have the benefit of the present disclosure without departing from the spirit and scope of the application. Accordingly, it is intended that such additions and modifications be included within the scope of the application. It is the following claims, including any amendments thereto, which define the scope of the application.

[0135] Obviously, numerous modifications and variations of the present application are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims and their equivalents, the application can be practiced otherwise than as specifically described.

Claims

1. A fan control method, characterized in that: include: Acquire a target image within a target area, wherein the target image includes at least one target user, and the target area is a control area of ​​the fan; Identify and process the target image, and determine the displacement information of the current moment and the current user in the target image; If it is determined that the current user is in a stationary state based on the current time and the displacement information of the current user, then accumulating the stationary time of the current user in the stationary state; If the current user's inactivity time is greater than a preset duration, the fan is controlled to enter a sleep mode, wherein the preset duration includes: a plurality of different duration values, wherein the duration values ​​are set according to the current time and / or historical inactivity data; Before determining that the current user is in a stationary state, the method further includes: Acquire historical static data of the user in the target area, the historical static data including at least the frequency and duration of the user's static state in each time period, the time period including at least daytime or nighttime; According to the historical static data, a preset displacement range and a preset duration matched by each time period are determined, and a first mapping relationship and a second mapping relationship are generated.

2. The fan control method according to claim 1, wherein: The controlling the fan to enter the sleep mode includes: Determining a target time period that matches the current moment within a preset time period, where the preset time period includes multiple time periods; Acquire, according to a first mapping relationship, a preset duration matched by the target time period, wherein the first mapping relationship is used to indicate a relationship between a preset time period and a preset duration; If the idle time is greater than a preset time, the fan is controlled to enter a sleep mode.

3. The fan control method according to claim 1, wherein: Determining that the current user is in a stationary state includes: Parsing the target image to obtain displacement information of the current user, wherein the displacement information includes a displacement distance and a displacement angle of the user; Determining a target time period that matches the current time within a preset time period; Obtaining a preset displacement range matched by the target time period according to a second mapping relationship, where the second mapping relationship is used to indicate a relationship between a preset time period and a preset time threshold; If the displacement information of the current user is within the preset displacement range, it is determined that the current user is in a stationary state, and the stationary time length is calculated.

4. The fan control method according to claim 3, wherein: The method further comprises: Acquire the previous frame image of the target image; Extracting a first outline of the current user in the target image and a second outline of the current user in a previous frame of the target image; sequentially identifying position information of the first contour and position information of the second contour according to the image coordinate system; The displacement information of the current user is acquired according to the position information of the first outline and the position information of the second outline.

5. The fan control method according to claim 4, wherein: The extracting a first outline of the current user in the target image includes: Identify pixel points at edge positions in the target image using an edge algorithm, and connect the pixel points to generate contour lines; Identifying the remaining pixel points in the target image that are located at edge positions within a preset range; Supplementing the remaining pixels into the contour line according to a connection rule, wherein the connection rule is determined at least according to the amplitude and angle of the pixel points; After performing denoising processing on the contour lines, a first contour of the current user in the target image is generated.

6. The fan control method according to claim 2, wherein: The determining of a target time period that matches the current moment within a preset time period, wherein the target time period includes a first time period, includes: Analyze the target image to obtain the grayscale value of each pixel in the target image; If the grayscale value of the current pixel is greater than the preset grayscale value, the current pixel is determined to be a pixel of the first type, and the number of pixels of the first type is accumulated; If the grayscale value of the current pixel is less than or equal to the preset grayscale value, the current pixel is determined to be a second type pixel, and the number of the second type pixels is accumulated; If the ratio of the number of the second type of pixels to the first type of pixels is greater than a threshold, it is determined that the time indication in the target image is the first time period.

7. The fan control method according to claim 1, wherein: The method further comprises: If multiple users are identified in the target image, obtaining location information of each of the multiple users and location information of each fan in the target area; determining a target fan matched with each target user according to the location information of each user among the multiple users and the location information of each fan in the target area; According to whether the target user is in a stationary state, it is determined whether a target fan matched with the target user enters a sleep state.

8. A fan control device, characterized in that: include: Acquisition module, recognition module, processing module and control module; The acquisition module is configured to acquire a target image within a target area, wherein the target image includes at least one target user, and the target area is a control area of ​​the fan; The recognition module is used to recognize and process the target image, and determine the displacement information of the current moment and the current user in the target image; The processing module is configured to accumulate a stationary time of the current user if it is determined that the current user is in a stationary state based on the current time and the displacement information of the current user; The control module is configured to control the fan to enter a sleep mode if the current user's inactivity time is greater than a preset duration, wherein the preset duration includes a plurality of different duration values, wherein the duration values ​​are set according to the current time and / or historical inactivity data; Before determining that the current user is in a stationary state, the method further includes: Acquire historical static data of the user in the target area, the historical static data including at least the frequency and duration of the user's static state in each time period, the time period including at least daytime or nighttime; According to the historical static data, a preset displacement range and a preset duration matched by each time period are determined, and a first mapping relationship and a second mapping relationship are generated.

9. A computer device comprising: The method comprises a memory and a processor, wherein the memory stores a computer program, and is characterized in that the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.

Citation Information

Patent Citations

  • Air supply control method and device of air conditioning device

    CN109405206A

  • Fan with sleep control function

    CN110953700A

  • Intelligent sleep control method of air conditioner, air conditioner and computer readable storage medium

    CN111895576A

  • Method for adjusting air speed of fan, fan and computer readable storage medium

    CN112922875A

  • Detection method, detection system, equipment and storage medium

    CN114022503A