Fan control method, fan and computer readable storage medium

文档序号:184623 发布日期:2021-11-02 浏览:17次 中文

阅读说明:本技术 风扇控制方法、风扇及计算机可读存储介质 (Fan control method, fan and computer readable storage medium ) 是由 陈小平 唐清生 于 2020-04-30 设计创作,主要内容包括:本申请实施例公开了一种风扇控制方法、风扇及计算机可读存储介质,本申请实施例可以控制风扇按照预设的初始送风范围对晾衣区域进行送风;每隔预设时间检测所述初始送风范围内是否存在用户;当检测到所述初始送风范围内存在用户时,确定所述用户的位置;根据所述用户的位置更新所述初始送风范围,得到目标送风范围,所述用户的位置不位于所述目标送风范围内;根据所述目标送风范围控制所述风扇运行,以避开所述用户送风。该方案在风扇对衣物送风的过程中,可以避开用户送风,提高了对风扇控制的灵活性和可靠性。(The embodiment of the application discloses a fan control method, a fan and a computer readable storage medium, and the fan can be controlled to supply air to a clothes airing area according to a preset initial air supply range; detecting whether a user exists in the initial air supply range every preset time; when detecting that a user exists in the initial air supply range, determining the position of the user; updating the initial air supply range according to the position of the user to obtain a target air supply range, wherein the position of the user is not located in the target air supply range; and controlling the fan to operate according to the target air supply range so as to avoid the air supply of the user. According to the scheme, in the process of supplying air to clothes by the fan, air supply of a user can be avoided, and the flexibility and reliability of fan control are improved.)

1. A fan control method, comprising:

controlling a fan to supply air to a clothes airing area according to a preset initial air supply range;

detecting whether a user exists in the initial air supply range every preset time;

when detecting that a user exists in the initial air supply range, determining the position of the user;

updating the initial air supply range according to the position of the user to obtain a target air supply range, wherein the position of the user is not located in the target air supply range;

and controlling the fan to operate according to the target air supply range so as to avoid the air supply of the user.

2. The fan control method of claim 1, wherein the determining the location of the user comprises:

detecting the outline of the user, and setting the area where the outline is located as the position of the user; alternatively, the first and second electrodes may be,

and detecting the height and the width of the user, determining a polygon according to the height and the width, and setting the area where the polygon is located as the position of the user.

3. The fan control method according to claim 1, wherein the updating the initial air supply range according to the position of the user to obtain a target air supply range includes:

determining a swing angle of the fan by avoiding the position of the user, and determining a target air supply range according to the swing angle; alternatively, the first and second electrodes may be,

and determining the area of the fan for stopping air supply in the initial air supply range based on the position of the user, and determining the target air supply range according to the area for stopping air supply.

4. The fan control method according to claim 1, wherein the controlling the fan to blow air to the clothes drying area in accordance with a preset initial blowing range includes:

acquiring a wet area of clothes in a clothes drying area, determining an initial air supply range of a fan according to the wet area, and controlling the fan to supply air to the clothes drying area according to the initial air supply range; alternatively, the first and second electrodes may be,

and receiving an initial air supply range of the fan input by the user based on an operation interface, and controlling the fan to supply air to the clothes drying area according to the initial air supply range.

5. The fan control method of claim 4, wherein the obtaining a wet area of clothes in the clothes drying area comprises:

acquiring an image containing clothes in a clothes airing area and acquiring a corresponding reference image when the clothes are dry;

comparing the pixel value of the image with the pixel value of the reference image to obtain pixel difference;

determining a wet area of the clothing according to the pixel difference; alternatively, the first and second electrodes may be,

and acquiring an image containing clothes in the clothes airing area, and identifying the image through a preset identification model to obtain a wet area.

6. The fan control method according to claim 1, wherein the controlling the fan operation according to the target blowing range includes:

acquiring the humidity grade of the clothes;

determining the air volume and/or the air temperature of the fan according to the humidity level;

and controlling the fan to operate according to the target air supply range, the air volume and/or the temperature of the air.

7. The fan control method according to any one of claims 1 to 6, wherein after the controlling the fan operation according to the target blowing range, the fan control method further includes:

detecting whether the laundry is dried, and turning off the fan when the laundry is dried; alternatively, the first and second electrodes may be,

detecting whether the fan supplies air against natural wind or not, and turning off the fan when the fan supplies air against natural wind; alternatively, the first and second electrodes may be,

and detecting the air volume of the natural wind, and closing the fan when the air volume of the natural wind is larger than a preset threshold value.

8. The fan control method according to claim 7, wherein the detecting whether the laundry is dried includes:

acquiring the current weight of the clothes and the corresponding reference weight when the clothes are dried, and determining that the clothes are dried if the current weight is less than or equal to the reference weight; alternatively, the first and second electrodes may be,

the method comprises the steps of collecting current images containing all surfaces of clothes and corresponding reference images when the clothes are dried, and determining that the clothes are dried if the current images are matched with the pixels of the reference images.

9. A fan comprising a processor and a memory, the memory having a computer program stored therein, the processor executing the fan control method according to any one of claims 1 to 8 when calling the computer program in the memory.

10. A computer-readable storage medium for storing a computer program which is loaded by a processor to execute the fan control method of any one of claims 1 to 8.

Technical Field

The present application relates to the field of electronic device technologies, and in particular, to a fan control method, a fan, and a computer-readable storage medium.

Background

Along with the improvement of living standard of people, the fan is more and more popular, and the fan can be used in more occasions. For example, a fan may be used to blow air to an object to cool the object, or a fan may be used to blow air to a wet object to dry the object, or a fan may be used to blow air to a room to circulate indoor air. The fan is used for blowing clothes, people can blow the clothes by the fan, but the fan can only blow air according to a fixed mode in the operation process, the clothes cannot be blown as soon as possible, and the clothes can be blown to users who do not want to blow air, and particularly the clothes cannot meet the requirements of people when the body is uncomfortable or the weather is cold.

Disclosure of Invention

Embodiments of the present application provide a fan control method, a fan, and a computer-readable storage medium, which can improve flexibility and reliability of fan control.

In a first aspect, an embodiment of the present application provides a fan control method, including:

controlling a fan to supply air to a clothes airing area according to a preset air supply range;

detecting whether a user exists in the air supply range every preset time;

when detecting that a user exists in the air supply range, determining the position of the user;

updating the air supply range according to the position of the user to obtain a target air supply range, wherein the position of the user is not in the target air supply range;

and controlling the fan to operate according to the target air supply range so as to avoid the air supply of the user.

In a second aspect, an embodiment of the present application further provides a fan, which includes a memory and a processor, where the memory stores a computer program, and the processor executes any one of the fan control methods provided in the embodiments of the present application when calling the computer program in the memory.

In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is used for storing a computer program, and the computer program is loaded by a processor to execute any one of the fan control methods provided in the embodiment of the present application.

The method and the device can control the fan to supply air to the clothes airing area according to the preset air supply range, detect whether the user exists in the air supply range at intervals of preset time, and determine the position of the user when the user exists in the air supply range; and then, the air supply range can be updated according to the position of the user to obtain a target air supply range, the position of the user is not positioned in the target air supply range, and the fan is controlled to operate according to the target air supply range so as to avoid air supply of the user. According to the scheme, in the process of supplying air to clothes by the fan, air supply of a user can be avoided, and the flexibility and reliability of fan control are improved.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.

FIG. 1 is a flow chart illustrating a fan control method according to an embodiment of the present disclosure;

FIG. 2 is a schematic diagram of an image of a garment provided by an embodiment of the present application;

FIG. 3 is a schematic view of an initial supply air range determination provided by an embodiment of the present application;

FIG. 4 is a schematic diagram of user detection provided by an embodiment of the present application;

FIG. 5 is a schematic diagram of a user's location determination provided by an embodiment of the present application;

FIG. 6 is a schematic diagram of natural wind detection provided by embodiments of the present application;

fig. 7 is a schematic structural diagram of a fan according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.

Embodiments of the present application provide a fan control method, a fan, and a computer-readable storage medium. The fan control method can be applied to a mobile terminal, and the mobile terminal can comprise a mobile terminal such as a smart phone, a tablet computer, a palm computer or a notebook computer and is used for controlling the fan. For example, the mobile terminal can control the fan to supply air to a clothes drying area according to a preset air supply range, detect whether a user exists in the air supply range at intervals of preset time, and determine the position of the user when the user exists in the air supply range; and then, the air supply range can be updated according to the position of the user to obtain a target air supply range, the position of the user is not positioned in the target air supply range, and the fan is controlled to operate according to the target air supply range so as to avoid air supply of the user.

The fan control method can be applied to a fan, and the fan control method is applied to the fan as an example and will be described in detail below.

Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a fan control method according to an embodiment of the present disclosure. The fan control method may include steps S101 to S105, and the like, and specifically may be as follows:

s101, controlling a fan to supply air to a clothes drying area according to a preset initial air supply range.

The type of the fan can be flexibly set according to actual needs, for example, the fan can be a circulating fan or the like. The fan can be controlled to supply air to the clothes airing area according to the initial air supply range, and the initial air supply range can be flexibly set according to actual needs.

In some embodiments, controlling the fan to blow the clothes drying area according to the preset initial blowing range may include: and acquiring a wet area of clothes in the clothes drying area, determining an initial air supply range of the fan according to the wet area, and controlling the fan to supply air to the clothes drying area according to the initial air supply range.

In order to improve the reliability of the initial air supply range determination, the wet area of the clothes can be accurately supplied based on the initial air supply range, the wet area of the clothes can be acquired, and the initial air supply range of the fan is determined according to the wet area. The clothes can comprise clothes, socks, towels and other objects needing to be aired.

In some embodiments, the wet area for accessing the items of clothing within the clothing drying area may include: acquiring an image containing clothes in a clothes airing area and acquiring a corresponding reference image when the clothes are dry; comparing the pixel value of the image with that of the reference image to obtain pixel difference; and determining the moisture area of the clothes according to the pixel difference.

In order to improve the accuracy of the identification of the moisture area of the laundry, the moisture area of the laundry may be determined based on a pixel difference of the laundry in the image. For example, an image of clothes in the clothes drying area may be acquired by an image acquisition device such as a camera or a camera preset in the clothes drying area, the clothes may include one or more pieces of clothes, the setting position, type, shooting angle, and the like of the image acquisition device may be flexibly set according to actual needs, specific contents are not limited herein, and for example, an image including the clothes may be as shown in fig. 2.

And acquiring a pre-stored reference image corresponding to the clothes drying process, and then comparing the acquired image of the clothes with the reference image in a pixel value manner, namely comparing the pixel value of the area where the clothes are located in the image of the clothes with the pixel value of the area where the clothes are located in the reference image to obtain the pixel difference. Since the pixel value of the laundry in the wet state is different from the pixel value of the laundry in the dry state, the wet area of the laundry may be determined according to the pixel difference of the laundry between the image of the laundry and the reference image.

In some embodiments, the wet area for accessing the items of clothing within the clothing drying area may include: and acquiring an image containing clothes in the clothes airing area, and identifying the image through a preset identification model to obtain a wet area.

In order to improve the accuracy of identifying the wet area of the clothes, the wet area of the clothes in the image can be identified through the identification model, for example, after the current image containing the clothes is acquired, the wet area of the clothes in the image can be identified through the preset identification model, and the wet area is obtained. The type of the recognition model can be flexibly set according to actual needs, the recognition model can be a target detection model SSD or YOLOv3, and the recognition model can also be a convolutional neural network CNN or R-CNN. The recognition model can be trained through a plurality of sample images containing clothes of different damp types to obtain a trained recognition model, and the preset recognition model is the trained recognition model.

In some embodiments, acquiring an image containing clothing may include: detecting whether the clothes are dry or not after the clothes are aired for a preset time; and if the clothes are not dry, acquiring an image containing the clothes through the camera.

In order to achieve that the fan is started to assist the clothes to be dried as soon as possible under the condition that the clothes are not dried after the clothes are aired for the preset time, so as to improve convenience and flexibility of fan control, specifically, a timer can be started to start timing when the clothes are aired, and after the timer times the preset time, the clothes are aired for the preset time, and whether the clothes are dried or not can be detected. The preset time can be flexibly set according to actual needs, for example, the preset time can be set by a user or a default time.

In some embodiments, detecting whether the laundry is dry may include: acquiring the current weight of the clothes and the corresponding reference weight when the clothes are dried; if the current weight is greater than the reference weight, determining that the clothes are not dried; and if the current weight is less than or equal to the reference weight, determining that the laundry is dried.

In order to improve the accuracy of the laundry drying detection, whether the laundry is dried may be determined by the weight of the laundry. Specifically, when the laundry is in a dry state, the weight of the laundry may be detected in advance by an electronic scale or gravity sensing or the like, a reference weight may be obtained, and the reference weight may be stored. And acquiring the current weight of the clothes aired currently through a preset gravity sensor on the clothes airing rod or the clothes hanger, comparing the current weight with a pre-stored reference weight, and judging whether the current weight of the clothes is greater than the reference weight. If the current weight is greater than the reference weight, determining that the clothes are not dried; and if the current weight is less than or equal to the reference weight, determining that the laundry is dried.

It should be noted that when a plurality of pieces of clothes are included, the current weight of each piece of clothes may be compared with the corresponding reference weight, or the current weight of each piece of clothes is summed to obtain the total weight, and the reference weight of each piece of clothes is summed to obtain the total reference weight, and then the total weight is compared with the total reference weight, and if the total weight is greater than the total reference weight, it is determined that the clothes are not dried; if the total weight is less than or equal to the total reference weight, it is determined that the laundry is dried.

In some embodiments, detecting whether the laundry is dry may include: acquiring current images of all surfaces of clothes, and acquiring corresponding reference images when the clothes are dry; if the pixels of the current image and the reference image are not matched, determining that the clothes are not dried; and if the pixels of the current image and the reference image are matched, determining that the clothes are dry.

In order to improve the convenience of the clothes drying detection, whether the clothes are dried or not can be determined through pixel comparison of the image. Specifically, when the clothes are in a dry state, images including respective surfaces of the clothes may be captured in advance from different shooting angles by an image capturing apparatus such as a camera or a camera, a reference image may be obtained, and the reference image may be stored. Then, images including the surfaces of the clothes can be acquired from different shooting angles through one or more image acquisition devices preset in the clothes drying area, so that a plurality of current images are obtained, and the current images at the corresponding shooting angles are compared with the reference image, for example, the current image of the front of the clothes a is compared with the reference image of the front of the clothes a. And judging whether the pixels of the current image and the reference image are matched, wherein the color of the clothes in a wet state is different from the color of the clothes in a dry state, if the pixels of the current image and the reference image are not matched, the clothes are determined not to be dry, and if the pixels of the current image and the reference image are matched, the clothes are determined to be dry. The pixel matching can be the pixel value of the clothes in the current image, the difference value between the pixel value of the clothes in the current image and the pixel value of the clothes in the reference image is smaller than a preset threshold value, and the preset threshold value can be flexibly set according to actual needs.

In some embodiments, acquiring an image containing clothing may include: when detecting that clothes exist in the clothes airing area, acquiring images containing the clothes through the camera.

In order to realize that when the clothes start to be dried, the fan is started to assist the clothes to be dried as soon as possible, so that the reliability of fan control is improved. Specifically, images in a clothes drying area can be acquired through image acquisition equipment such as a preset camera in the clothes drying area to obtain an initial image, whether clothes exist in the clothes drying area is detected based on the initial image, when the clothes exist in the clothes drying area is detected, images containing the clothes are acquired through the camera, and when the clothes do not exist in the clothes drying area, the images containing the clothes cannot be acquired.

In some embodiments, determining the initial blowing range of the fan according to the moisture area may include: and acquiring circumscribed polygons of discrete areas of the damp area distribution, and determining the air supply edges of the fan in a plurality of different directions according to the circumscribed polygons to obtain an initial air supply range.

In order to improve the accuracy of determining the air supply range, the fan can blow all the wet areas of the clothes, as shown in fig. 3, the circumscribing polygon may first be determined from the discrete regions of the moisture area distribution, the discrete area may include one or more, and then, a rightmost edge wetting point, a leftmost edge wetting point, an uppermost edge wetting point, and a lowermost edge wetting point in the discrete area may be detected, a circumscribed polygon of the discrete area may be determined from points of the respective edges, the number of the edges of the circumscribed polygon can be flexibly set according to actual needs, for example, the circumscribed polygon can be a fan shape or a quadrangle, the air supply edges of the fan in different directions such as up, down, left and right can be determined according to the circumscribed polygon, an initial air supply range is obtained, and the fan can be controlled to supply air to the clothes drying area according to the initial air supply range.

In some embodiments, controlling the fan to blow the clothes drying area according to the preset initial blowing range may include: and receiving an initial air supply range of the fan input by a user based on the operation interface, and controlling the fan to supply air to the clothes drying area according to the initial air supply range.

In order to improve the flexibility of determining the air supply track, so that the fan can supply air according to the requirement of a user, the initial air supply range of the fan input by the user based on the operation interface can be received. The style of the operation interface can be flexibly set according to actual needs, for example, the operation interface may include a plurality of wet areas and/or an air supply range generated based on the wet areas. For example, in order to enable the fan to blow to a wet area of the clothes according to the requirement of the user, after the wet area of the clothes is obtained, an operation interface can be generated based on the wet area, and the operation interface is sent to a mobile terminal such as a mobile phone used by the user for displaying, or the operation interface is displayed in a display screen preset by the fan, so that the user can view and operate the operation interface.

Then, the air supply range input by the user on the operation interface may be received, for example, a sliding operation performed by the user in the displayed operation interface may be received, so as to form the air supply range based on the sliding track generated by the sliding operation, resulting in an initial air supply range. Or the click operation of a plurality of different positions executed by the user in the displayed operation interface can be received, so that a polygon including the humid area is determined according to each click position based on the plurality of click positions generated by the click operation, the number of sides of the polygon can be flexibly set according to actual needs, for example, the polygon can be a sector or a quadrangle, and at this time, the air supply edges of the fan in a plurality of different directions such as up, down, left and right can be determined according to the polygon, and the initial air supply range is obtained. Or, a plurality of candidate air supply ranges can be displayed in the operation interface for the user to select, a selection instruction of the user is received, one of the candidate air supply ranges is selected as an initial air supply range based on the selection instruction, and at the moment, the fan can be controlled to supply air to the clothes drying area according to the initial air supply range.

And S102, detecting whether a user exists in the initial air supply range every preset time.

When the fan is about to start to operate or in the process of operating the fan, whether a user exists in the initial air supply range can be detected in real time or at preset time intervals, for example, an image including a region corresponding to the initial air supply range can be collected through a preset camera, the image is detected, and if the user is detected, the user exists in the initial air supply range, as shown in fig. 4; and if the user is not detected, determining that the user does not exist in the initial air supply range. Alternatively, whether a user is present in the initial air supply range may be detected by a preset infrared sensor, and the like.

S103, when the user is detected to exist in the initial air supply range, the position of the user is determined.

When detecting that no user exists in the initial air supply range, maintaining the current operation state of the fan; when it is detected that the user is present within the initial air supply range, the position of the user is determined so that the initial air supply range is updated based on the position of the user.

In some implementations, determining the location of the user can include: detecting the outline of the user, and setting the area where the outline is located as the position of the user. In order to improve the accuracy of determining the position of the user, an image containing the user can be collected through a camera, the outline of the user is detected based on the image, and the area where the outline of the user is located is set as the position of the user.

In some implementations, determining the location of the user can include: and detecting the height and the width of the user, determining a polygon according to the height and the width, and setting the area where the polygon is located as the position of the user. In order to improve flexibility and convenience of user position determination, for example, as shown in fig. 5, an image including a user may be captured by a camera, a height, a width, and the like of the user are detected based on the image, a polygon, which may be a quadrangle, is determined according to the height and the width of the user, and then an area where the polygon is located may be set as a position of the user.

And S104, updating the initial air supply range according to the position of the user to obtain a target air supply range, wherein the position of the user is not in the target air supply range.

In some embodiments, updating the initial air supply range according to the user's location, and obtaining the target air supply range may include: and determining the swing angle of the fan by avoiding the position of a user, and determining a target air supply range according to the swing angle.

In order to prevent the fan from blowing to the user in the operation process, the user can be excluded from the air supply range of the fan, the swing angle of the fan can be determined by avoiding the position of the user, and the target air supply range can be determined according to the swing angle. For example, when the user's position is area a, it may be determined that the target air blowing range is determined to be area B, which does not include area a.

In some embodiments, updating the initial air supply range according to the user's location, and obtaining the target air supply range may include: the area of the fan for stopping air supply in the initial air supply range is determined based on the position of the user, and the target air supply range is determined according to the area for stopping air supply.

In order to prevent the fan from blowing to the user during the operation, the air supply may be stopped when the fan swings to the position of the user, and the air supply may be restarted after the fan swings to the position of the user, that is, the area where the air supply of the fan is stopped within the initial air supply range is determined based on the position of the user, and the target air supply range is determined according to the area where the air supply is stopped.

And S105, controlling the fan to operate according to the target air supply range so as to avoid air supply of the user.

After the target air supply range of the fan is determined, the swing angle of the fan can be determined based on the target air supply range, and the fan is controlled to supply air according to the swing angle, so that the fan can supply air into the target air supply range. The fan can comprise one or more than one fan, in the running process of the fan, the time required by drying the clothes can be acquired in real time, the time can be dynamically output in a voice broadcasting or display screen display mode, or the time can be sent to a mobile phone or a terminal such as an intelligent sound box, so that the terminal can dynamically output the time in a voice broadcasting or display screen display mode, and a user can check the time conveniently.

In some embodiments, controlling the fan operation according to the target blowing range may include: acquiring the humidity grade of the clothes; determining the air volume and/or the air temperature of the fan according to the humidity level; and controlling the fan to operate according to the target air supply range, the air quantity and/or the air temperature.

In order to enable the fan to flexibly and adaptively operate according to the proper operation parameters according to the actual condition that the clothes are wet, and improve the drying efficiency of the clothes, the moisture level of the clothes can be obtained, for example, because the pixel values of the clothes under different moisture levels are different, the pixel values of the clothes can be detected based on the image of the clothes, and the moisture level of the clothes can be determined according to the pixel values. For another example, since the weights of the laundry under different moisture levels are different, the weight of the laundry may be detected, and the moisture level of the laundry may be determined according to the weight of the laundry. Then, a mapping relation between different humidity levels and the air volume of the fan or the temperature of the air and the like may be obtained, and the air volume of the fan and/or the temperature of the air corresponding to the humidity level may be determined according to the mapping relation, for example, the more humid the laundry is, the larger the air volume of the fan, the higher the temperature of the air supplied by the fan (which may also be determined in combination with the type of the laundry) and the like, at which time the operation of the fan may be controlled according to the air supply range, the air volume and/or the temperature of the air.

It should be noted that the type of the clothes can also be obtained, the air volume and/or the air temperature of the fan can be determined according to the humidity level, the type of the clothes and the like, and the operation of the fan can be controlled according to the air supply range, the air volume and/or the air temperature.

In some embodiments, after controlling the operation of the fan according to the target blowing range, the fan control method may further include: whether the laundry is dried is detected, and when the laundry is dried, the fan is turned off.

In order to improve the intelligence and convenience of the fan control, whether the clothes are dry or not may be detected in real time or at preset time intervals during the operation of the fan, for example, whether the clothes are dry or not may be determined by comparing pixels of an image of the clothes, or whether the clothes are dry or not may be determined by the weight of the clothes, etc. When the clothes are not dried, the opening state of the fan is maintained; when the laundry has been dried, the fan is turned off.

In some embodiments, detecting whether the laundry is dried may include: the method comprises the steps of obtaining the current weight of the clothes and the corresponding reference weight when the clothes are dried, and determining that the clothes are dried if the current weight is less than or equal to the reference weight.

In order to improve the accuracy of the laundry drying detection, whether the laundry is dried may be determined by the weight of the laundry. Specifically, when the laundry is in a dry state, the weight of the laundry may be detected in advance by an electronic scale or gravity sensing or the like, a reference weight may be obtained, and the reference weight may be stored. And acquiring the current weight of the clothes aired currently through a preset gravity sensor on the clothes airing rod or the clothes hanger, comparing the current weight with a pre-stored reference weight, and judging whether the current weight of the clothes is greater than the reference weight. If the current weight is greater than the reference weight, determining that the clothes are not dried; and if the current weight is less than or equal to the reference weight, determining that the laundry is dry.

In some embodiments, detecting whether the laundry is dried may include: the method comprises the steps of collecting current images containing all surfaces of clothes and corresponding reference images when the clothes are dried, and determining that the clothes are dried if the current images are matched with pixels of the reference images.

In order to improve the convenience of the clothes drying detection, whether the clothes are dried or not can be determined through pixel comparison of the image. Specifically, when the clothes are in a dry state, images including respective surfaces of the clothes may be captured in advance from different shooting angles by an image capturing apparatus such as a camera or a camera, a reference image may be obtained, and the reference image may be stored. Then, images including the surfaces of the clothes can be acquired from different shooting angles through one or more image acquisition devices preset in the clothes drying area, so that a plurality of current images are obtained, and the current images at the corresponding shooting angles are compared with the reference image, for example, the current image of the front of the clothes a is compared with the reference image of the front of the clothes a. Judging whether the collected current image of the clothes is matched with the pixels of the reference image, and determining that the clothes are not dried if the current image of the clothes is not matched with the pixels of the reference image because the color of the clothes in a wet state is different from the color of the clothes in a dry state, and determining that the clothes are dried if the current image of the clothes is matched with the pixels of the reference image. The pixel matching can be the pixel value of the clothes in the current image, the difference value between the pixel value of the clothes in the current image and the pixel value of the clothes in the reference image is smaller than a preset threshold value, and the preset threshold value can be flexibly set according to actual needs.

In some embodiments, after controlling the operation of the fan according to the target blowing range, the fan control method may further include: and detecting whether the fan supplies air against natural wind or not, and closing the fan when the fan supplies air against the natural wind.

In order to avoid the problem that the fan cannot supply air to clothes when supplying air against natural wind and waste energy, in the running process of the fan, whether the fan supplies air against the natural wind or not can be detected in real time or at preset intervals, for example, whether fan blades of the fan are subjected to natural wind resistance or the wind direction of the natural wind or the like can be detected. When the fan is not blowing against the natural wind, the opening state of the fan is maintained; when the fan is blown against the natural wind, the fan is turned off.

In some embodiments, after controlling the operation of the fan according to the target blowing range, the fan control method may further include: and detecting the air volume of the natural wind, and turning off the fan when the air volume of the natural wind is larger than a preset threshold value.

For example, as shown in fig. 6, in order to avoid that the fan cannot supply air to the clothes when a large natural wind exists, and waste energy, during the operation of the fan, the air volume of the natural wind in the environment where the clothes are located may be detected in real time or at preset time intervals, for example, the air volume of the natural wind may be detected by an air speed detector or the like. When the air volume of the natural wind is smaller than a preset threshold value, the opening state of the fan is maintained; when the air quantity of the natural wind is larger than a preset threshold value, the effect of the fan on accelerating the drying of the clothes is small, the fan is turned off, and the preset threshold value can be flexibly set according to actual needs.

The method and the device can control the fan to supply air to the clothes airing area according to the preset air supply range, detect whether the user exists in the air supply range at intervals of preset time, and determine the position of the user when the user exists in the air supply range; and then, the air supply range can be updated according to the position of the user to obtain a target air supply range, the position of the user is not positioned in the target air supply range, and the fan is controlled to operate according to the target air supply range so as to avoid air supply of the user. According to the scheme, in the process of supplying air to clothes by the fan, air supply of a user can be avoided, and the flexibility and reliability of fan control are improved.

Referring to fig. 7, fig. 7 is a schematic block diagram of a fan according to an embodiment of the present disclosure.

As shown in fig. 7, the fan 300 may include a processor 302, a memory 303, and a communication interface 304 connected by a system bus 301, where the memory 303 may include a non-volatile computer-readable storage medium and an internal memory.

The non-transitory computer readable storage medium may store a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any of the fan control methods.

Processor 302 is used to provide computing and control capabilities, supporting the operation of the entire fan.

The memory 303 provides an environment for the execution of a computer program in a non-transitory computer readable storage medium, which when executed by the processor 302, causes the processor 302 to perform any of the fan control methods.

The communication interface 304 is used for communication. Those skilled in the art will appreciate that the configuration shown in fig. 7 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the fan 300 to which the present application is applied, and that a particular fan 300 may include more or fewer components than shown, or combine certain components, or have a different arrangement of components.

It should be understood that the bus 301 is, for example, an I2C (Inter-Integrated Circuit) bus, the Memory 303 may be a Flash chip, a Read-Only Memory (ROM), a magnetic disk, an optical disk, a usb disk, or a removable hard disk, the Processor 302 may be a Central Processing Unit (CPU), the Processor 302 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

In some embodiments, the processor 302 is configured to run a computer program stored in the memory 303 to perform the following steps:

controlling a fan to supply air to a clothes airing area according to a preset initial air supply range, and detecting whether a user exists in the initial air supply range at intervals of preset time; when detecting that a user exists in the initial air supply range, determining the position of the user, updating the initial air supply range according to the position of the user to obtain a target air supply range, and controlling the fan to operate according to the target air supply range so as to avoid air supply of the user.

In some implementations, in determining the location of the user, the processor 302 further performs: detecting the outline of a user, and setting the area where the outline is located as the position of the user; or detecting the height and the width of the user, determining a polygon according to the height and the width, and setting the area where the polygon is located as the position of the user.

In some embodiments, processor 302 further performs, when updating the initial air supply range according to the user's location, resulting in a target air supply range: determining a swing angle of the fan by avoiding the position of a user, and determining a target air supply range according to the swing angle; alternatively, the area where the air supply of the fan is stopped within the initial air supply range is determined based on the position of the user, and the target air supply range is determined from the area where the air supply is stopped.

In some embodiments, when the fan is controlled to blow the clothes drying area according to the preset initial blowing range, the processor 302 further performs: acquiring a damp area of clothes in a clothes drying area, determining an initial air supply range of a fan according to the damp area, and controlling the fan to supply air to the clothes drying area according to the initial air supply range; or receiving an initial air supply range of the fan input by a user based on the operation interface, and controlling the fan to supply air to the clothes drying area according to the initial air supply range.

In some embodiments, in acquiring a wet area of clothing within the clothing drying area, the processor 302 further performs: acquiring an image containing clothes in a clothes airing area and acquiring a corresponding reference image when the clothes are dry; comparing the pixel value of the image with that of the reference image to obtain pixel difference; determining a wet area of the clothes according to the pixel difference; or acquiring an image containing clothes in the clothes airing area, and identifying the image through a preset identification model to obtain the wetting area.

In some embodiments, when controlling the fan operation according to the target blowing range, the processor 302 further performs: acquiring the humidity grade of the clothes; determining the air volume and/or the air temperature of the fan according to the humidity level; and controlling the fan to operate according to the target air supply range, the air quantity and/or the air temperature.

In some embodiments, after controlling the fan operation according to the target blowing range, the processor 302 further performs: detecting whether the laundry is dried, and turning off the fan when the laundry is dried; or detecting whether the fan supplies air against natural wind, and closing the fan when the fan supplies air against natural wind; or detecting the air volume of the natural wind, and closing the fan when the air volume of the natural wind is larger than a preset threshold value.

In some embodiments, in detecting whether the laundry is dry, the processor 302 further performs: acquiring the current weight of the clothes and the corresponding reference weight when the clothes are dried, and determining that the clothes are dried if the current weight is less than or equal to the reference weight; or acquiring a current image containing each surface of the clothes and a corresponding reference image when the clothes are dried, and determining that the clothes are dried if the current image is matched with the pixels of the reference image.

In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the fan control method, and are not described herein again.

The embodiment of the application also provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, the computer program comprises program instructions, and a processor executes the program instructions to realize any fan control method provided by the embodiment of the application. For example, the computer program is loaded by a processor and may perform the following steps:

controlling a fan to supply air to a clothes airing area according to a preset initial air supply range, and detecting whether a user exists in the initial air supply range at intervals of preset time; when detecting that a user exists in the initial air supply range, determining the position of the user, updating the initial air supply range according to the position of the user to obtain a target air supply range, and controlling the fan to operate according to the target air supply range so as to avoid air supply of the user.

The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.

The computer readable storage medium may be an internal storage unit of the fan of the foregoing embodiment, such as a hard disk or a memory of the fan. The computer readable storage medium may also be an external storage device of the fan, such as a plug-in hard disk provided on the fan, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like.

Since the computer program stored in the computer-readable storage medium can execute any fan control method provided in the embodiments of the present application, beneficial effects that can be achieved by any fan control method provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted here for the sake of detail in the foregoing embodiments.

It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.

The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments. While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and various equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:循环扇控制方法、系统、中控设备和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!