CN113584843B - Circulating fan control method, circulating fan and storage medium - Google Patents

Circulating fan control method, circulating fan and storage medium Download PDF

Info

Publication number
CN113584843B
CN113584843B CN202010366700.8A CN202010366700A CN113584843B CN 113584843 B CN113584843 B CN 113584843B CN 202010366700 A CN202010366700 A CN 202010366700A CN 113584843 B CN113584843 B CN 113584843B
Authority
CN
China
Prior art keywords
distance
deflection angle
circulating fan
image
deflection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010366700.8A
Other languages
Chinese (zh)
Other versions
CN113584843A (en
Inventor
陈小平
唐清生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yunmi Internet Technology Guangdong Co Ltd
Original Assignee
Yunmi Internet Technology Guangdong Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yunmi Internet Technology Guangdong Co Ltd filed Critical Yunmi Internet Technology Guangdong Co Ltd
Priority to CN202010366700.8A priority Critical patent/CN113584843B/en
Publication of CN113584843A publication Critical patent/CN113584843A/en
Application granted granted Critical
Publication of CN113584843B publication Critical patent/CN113584843B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • DTEXTILES; PAPER
    • D06TREATMENT OF TEXTILES OR THE LIKE; LAUNDERING; FLEXIBLE MATERIALS NOT OTHERWISE PROVIDED FOR
    • D06FLAUNDERING, DRYING, IRONING, PRESSING OR FOLDING TEXTILE ARTICLES
    • D06F58/00Domestic laundry dryers
    • D06F58/32Control of operations performed in domestic laundry dryers 
    • D06F58/34Control of operations performed in domestic laundry dryers  characterised by the purpose or target of the control
    • D06F58/36Control of operational steps, e.g. for optimisation or improvement of operational steps depending on the condition of the laundry
    • D06F58/38Control of operational steps, e.g. for optimisation or improvement of operational steps depending on the condition of the laundry of drying, e.g. to achieve the target humidity
    • DTEXTILES; PAPER
    • D06TREATMENT OF TEXTILES OR THE LIKE; LAUNDERING; FLEXIBLE MATERIALS NOT OTHERWISE PROVIDED FOR
    • D06FLAUNDERING, DRYING, IRONING, PRESSING OR FOLDING TEXTILE ARTICLES
    • D06F34/00Details of control systems for washing machines, washer-dryers or laundry dryers
    • D06F34/04Signal transfer or data transmission arrangements
    • DTEXTILES; PAPER
    • D06TREATMENT OF TEXTILES OR THE LIKE; LAUNDERING; FLEXIBLE MATERIALS NOT OTHERWISE PROVIDED FOR
    • D06FLAUNDERING, DRYING, IRONING, PRESSING OR FOLDING TEXTILE ARTICLES
    • D06F2103/00Parameters monitored or detected for the control of domestic laundry washing machines, washer-dryers or laundry dryers
    • D06F2103/02Characteristics of laundry or load
    • D06F2103/08Humidity
    • DTEXTILES; PAPER
    • D06TREATMENT OF TEXTILES OR THE LIKE; LAUNDERING; FLEXIBLE MATERIALS NOT OTHERWISE PROVIDED FOR
    • D06FLAUNDERING, DRYING, IRONING, PRESSING OR FOLDING TEXTILE ARTICLES
    • D06F2105/00Systems or parameters controlled or affected by the control systems of washing machines, washer-dryers or laundry dryers
    • D06F2105/30Blowers

Abstract

The application relates to the field of intelligent home, and particularly discloses a circulating fan control method, a circulating fan and a storage medium, wherein the method comprises the following steps: acquiring a color depth image comprising hanging clothes, wherein the color depth image comprises depth information, and the color depth image is acquired by the depth camera; determining the blowing distance of the circulating fan in the first direction according to the depth information; inputting the color depth image into a pre-trained recognition model to determine a wet area of the hanging garment; determining boundary coordinates of the wet area based on a position of the wet area in the color depth image; and calculating a left deflection angle section and a right deflection angle section of the circulating fan in a second direction according to the boundary coordinates and the blowing distance, so as to adjust the blowing range of the circulating fan according to the left deflection angle section and the right deflection angle section. The circulating fan can adjust the air supply range in real time according to the actual dry and wet condition of the clothes hung on the clothes hanger.

Description

Circulating fan control method, circulating fan and storage medium
Technical Field
The application relates to the field of intelligent home, in particular to a circulating fan control method, a circulating fan and a storage medium.
Background
In overcast and rainy or humid weather, the clothes aired on the clothes hanger cannot be dried in time due to weather, and bacteria can be bred in the clothes after long-time wetness, so that skin diseases are caused. Therefore, in order to enable the clothes aired on the clothes hanger to be dried in time, the circulating fan can be utilized to blow the position of the clothes hanger so as to promote air circulation and speed up clothes drying.
However, most of existing circulating fans need to manually adjust the swing angle and the air supply mode of the circulating fan, so that the circulating fan can blow according to the position of the clothes hanger, and as wet clothes hung on the clothes hanger are dried gradually in the blowing process, the circulating fan cannot adjust the air supply range in real time according to the actual dry and wet conditions of the clothes hung on the clothes hanger, and the use experience of users is reduced.
Therefore, how to make the circulation fan to adjust the air supply range in real time according to the actual dry and wet conditions of the clothes hung on the clothes hanger is a problem to be solved.
Disclosure of Invention
The application provides a control method of a circulating fan, the circulating fan and a storage medium, so that the circulating fan can adjust the air supply range in real time according to the actual dry and wet conditions of clothes hung on a clothes hanger.
In a first aspect, the present application provides a control method for a circulation fan, where a depth camera is disposed on the circulation fan, the method includes:
acquiring a color depth image comprising hanging clothes, wherein the color depth image comprises depth information, and the color depth image is acquired by the depth camera;
determining the blowing distance of the circulating fan in the first direction according to the depth information;
inputting the color depth image into a pre-trained recognition model to determine a wet area of the hanging garment;
determining boundary coordinates of the wet area based on a position of the wet area in the color depth image;
and calculating a left deflection angle section and a right deflection angle section of the circulating fan in a second direction according to the boundary coordinates and the blowing distance, so as to adjust the blowing range of the circulating fan according to the left deflection angle section and the right deflection angle section.
In a second aspect, the present application also provides a circulation fan, the circulation fan including a depth camera, a memory, and a processor;
the camera is used for collecting color depth images comprising hanging clothes;
the memory is used for storing a computer program;
the processor is configured to execute the computer program and implement the circulating fan control method as described above when the computer program is executed.
In a third aspect, the present application also provides a computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to implement a circulating fan control method as described above.
The application discloses a circulating fan control method, a circulating fan and a storage medium. The wet area for hanging clothes is determined according to the collected color depth image, the left deflection angle interval and the right deflection angle interval of the circulating fan are determined according to the space range of the wet area, so that the air supply range of the circulating fan is determined, the circulating fan can accurately blow the space range of the wet area for hanging clothes, and the circulating fan can timely adjust the air supply area according to the wet area along with gradual drying of the clothes, and the convenience and the accuracy for controlling the circulating fan are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic block diagram of a circulation fan provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of steps of a training method for an identification model according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating steps of a method for controlling a circulation fan according to an embodiment of the present application;
fig. 4 is a schematic diagram of a blowing distance of a circulation fan in a first direction according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a step of determining boundary coordinates of a wet area according to an embodiment of the present application;
FIG. 6 is a schematic view of the deflection distance of the circulation fan in a second direction provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of steps for calculating a left-right deflection angle interval of a circulating fan in a second direction according to an embodiment of the present application;
FIG. 8 is a schematic diagram of steps for determining the upper and lower deflection angle intervals of a circulating fan according to an embodiment of the present application;
FIG. 9 is a schematic diagram illustrating steps of another method for controlling a circulation fan according to an embodiment of the present application;
fig. 10 is a schematic diagram of a step of calculating an up-down deflection angle interval of a circulation fan in a third direction according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification 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 the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
The embodiment of the application provides a circulating fan control method, a circulating fan control system and a storage medium.
Referring to fig. 1, fig. 1 is a schematic block diagram of a circulation fan according to an embodiment of the present application. The circulation fan 10 comprises a depth camera 11, a processor 12 and a memory 13, wherein the depth camera 11, the processor 12 and the memory 13 are connected through a bus.
The memory 13 may include a nonvolatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause the processor to perform any one of a number of circulating fan control methods.
The depth camera 11 is used for capturing color depth images, and is mainly used for capturing depth images of hanging clothes in a circulating fan blowing range in the embodiment of the application.
The processor 12 is used to provide computing and control capabilities supporting the operation of the overall terminal device.
The internal memory provides an environment for the execution of a computer program in a non-volatile storage medium that, when executed by a processor, causes the processor to perform any of a number of circulating fan control methods.
It will be appreciated that the configuration shown in fig. 1 is merely a block diagram of a portion of the configuration associated with the present application and is not limiting of the circulation fan to which the present application is applied, and that a particular circulation fan may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be appreciated that the processor 12 may be a central processing unit (Central Processing Unit, CPU), which may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein in one embodiment the processor is configured to run a computer program stored in the memory to implement the steps of:
acquiring a color depth image comprising hanging clothes, wherein the color depth image comprises depth information, and the color depth image is acquired by the depth camera;
determining the blowing distance of the circulating fan in the first direction according to the depth information;
inputting the color depth image into a pre-trained recognition model to determine a wet area of the hanging garment;
determining boundary coordinates of the wet area based on a position of the wet area in the color depth image;
and calculating a left deflection angle section and a right deflection angle section of the circulating fan in a second direction according to the boundary coordinates and the blowing distance, so as to adjust the blowing range of the circulating fan according to the left deflection angle section and the right deflection angle section.
In one embodiment, the processor, when implementing the determining the boundary coordinates of the wet area based on the position of the wet area in the color depth image, is configured to implement:
acquiring coordinates of a plurality of pixel points of a wet area for hanging clothes in the color depth image;
and screening the pixel point coordinates to obtain boundary coordinates of the wet area.
In one embodiment, the processor is further configured to implement:
and calculating an up-down deflection angle interval of the circulating fan in a third direction according to the boundary coordinates and the blowing distance.
In one embodiment, the boundary coordinates include an upper boundary coordinate and a lower boundary coordinate, and the processor is configured to, when implementing the calculating the upper and lower deflection angle intervals of the circulation fan in the third direction according to the boundary coordinates and the blowing distance, implement:
acquiring a reference line of the color depth image, and calculating an upper image distance between the upper boundary coordinate and the reference line and a lower image distance between the lower boundary coordinate and the reference line;
based on a deflection distance calculation formula, respectively calculating an upper deflection distance and a lower deflection distance of the circulating fan in a third direction according to the upper image distance and the lower image distance;
calculating an upper deflection angle and a lower deflection angle of the circulating fan according to the upper deflection distance, the lower deflection distance and the blowing distance respectively by using an inverse trigonometric function formula;
and determining an upper deflection angle interval and a lower deflection angle interval of the circulating fan based on the upper deflection angle and the lower deflection angle.
In one embodiment, the boundary coordinates include left boundary coordinates and right boundary coordinates, and the processor is configured, when implementing the calculating the left and right deflection angle interval of the circulation fan in the second direction according to the boundary coordinates and the blowing distance, to implement:
acquiring a reference line of the color depth image, and calculating a left image distance between the left boundary coordinate and the reference line and a right image distance between the right boundary coordinate and the reference line;
calculating a left deflection distance and a right deflection distance of the circulation fan in a second direction according to the left image distance and the right image distance based on a deflection distance calculation formula;
calculating a left deflection angle and a right deflection angle of the circulating fan according to the left deflection distance, the right deflection distance and the blowing distance respectively by using an inverse trigonometric function formula;
and determining a left deflection angle section and a right deflection angle section of the circulating fan based on the left deflection angle and the right deflection angle.
In one embodiment, the processor, when implementing the determining the left and right deflection angle intervals of the circulation fan based on the left deflection angle and the right deflection angle, is configured to implement:
determining the position of the wet area in the depth color image according to the left boundary coordinate, the right boundary coordinate and the datum line;
determining a left-right deflection direction of the circulating fan according to the position of the wet area in the depth color image;
and determining left and right deflection angle intervals of the circulating fan according to the left and right deflection directions, the left deflection angle and the right deflection angle.
In one embodiment, the deflection distance calculation formula is as follows:
wherein ,Wi Represents deflection distance, F represents blowing distance, F represents focal length of camera, x i The image distance and i the azimuth.
In one embodiment, the processor is further configured to implement:
acquiring a sample image, wherein the sample image comprises a wet-state clothing image and a corresponding dry-state clothing image which are shot by a depth camera;
labeling the sample image according to the wet state and the dry state to construct sample data;
based on a convolutional neural network, model training is carried out according to the sample data to obtain an identification model, and the obtained identification model is used as a pre-trained identification model.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating steps of a training method for an identification model according to an embodiment of the application. The recognition model is obtained by model training based on a convolutional neural network, and can be obtained by training by other networks.
As shown in fig. 2, the training method of the recognition model is used for training the recognition model so as to be applied to the control method of the circulating fan. The training method comprises a step S201 and a step S203.
S201, acquiring a sample image, wherein the sample image comprises a wet-state clothing image and a corresponding dry-state clothing image which are shot by a depth camera.
Specifically, a depth camera is used to capture an image of the same laundry in a wet state and an image of the laundry in a dry state, so that the captured images of the laundry are taken together as a sample image.
The image of the clothes in the wet state can be that the clothes are all in the wet state, or that parts of the clothes are in the wet state, for example, a piece of dress, all of the dress are in the wet state, or that the skirt of the dress is in the wet state.
In the specific implementation process, in the shooting sample image, clothes with different colors and different materials can be used for shooting, so that the diversity of the sample image is improved, and the recognition accuracy of a recognition model obtained through training is improved.
S202, labeling the sample image according to the wet state and the dry state to construct sample data.
Specifically, the images in the wet state and the dry state in the sample image are respectively marked, so that sample data are constructed, and the identification model is trained according to the marked sample data.
Wherein, for the image of the clothes part in the wet state, the wet part and the dry part can be marked respectively, so as to construct sample data.
And S203, performing model training according to the sample data based on the convolutional neural network to obtain an identification model, and taking the obtained identification model as a pre-trained identification model.
Specifically, the convolutional neural network is utilized, the sample data is input into the convolutional neural network for model training, and after repeated iterative training and verification, the finally obtained recognition model is used as a pre-trained recognition model.
In some embodiments, since the control method of the circulation fan is applied to the circulation fan, the trained model can be stored in the circulation fan, so as to improve the data processing speed and the response speed of the model, improve the interaction speed, and bring more real-time experience to the user.
In some embodiments, in order to ensure the normal operation of the circulation fan and quickly identify the hanging clothes, the training identification model is further required to be compressed, and the compressed model is stored in the identification device of the circulation fan.
The compression processing specifically includes quantization processing and the like on the identification model so as to reduce the size of the identification model, and further, the identification model is conveniently stored in the identification device of the circulating fan with smaller capacity.
According to the training method provided by the embodiment, the clothing images in the wet state and the dry state are obtained, the sample images are marked, the sample data are constructed, finally, the model training is carried out according to the sample data based on the convolutional neural network to obtain the identification model, and the obtained identification model is applied to the circulating fan control method, so that the accuracy of determining the dry and wet states of the hung clothing through image identification is improved.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating steps of a control method of a circulation fan according to an embodiment of the application. The control method of the circulation fan can be applied to the circulation fan shown in fig. 1, the blowing distance of the circulation fan in the first direction is determined through the depth image comprising the hung clothes, then the wet area of the hung clothes is identified according to the color depth image comprising the hung clothes, and the boundary coordinates of the wet area are determined, so that the left deflection angle interval and the right deflection angle interval of the circulation fan are obtained through calculation, the blowing range of the circulation fan is adjusted, and the circulation fan can blow the wet area of the hung clothes better.
As shown in fig. 3, the control method of the circulation fan specifically includes: step S301 to step S305.
S301, acquiring a color depth image which is acquired by the depth camera and comprises hanging clothes.
Wherein the color depth image includes depth information. The depth camera on the circulation fan is started, and the processor acquires color depth images including hanging clothes, which are acquired by the depth camera on the circulation fan, so that the acquired color depth images are further processed.
In some embodiments, to reduce the power consumption of the depth camera on the circulation fan, the depth camera may be controlled to be turned on once every preset period, for example, once every 6 hours. Acquiring a color depth image near the clothes hanger after opening, carrying out image recognition on the acquired color depth image near the clothes hanger to judge whether the clothes hanger is hung or not, continuously acquiring the color depth image comprising the hung clothes if the clothes hanger is hung or not, and closing the depth camera if the clothes hanger is not hung or not.
It should be noted that, for convenience of description, the depth camera mounted on the circulation fan in the present application is collected when the circulation fan is at the initial position, that is, when the deflection angle of the fan head of the circulation fan is 0, when collecting the color depth image including hanging clothes.
S302, determining the blowing distance of the circulating fan in the first direction according to the depth information.
The first direction refers to a first direction of the circulating fan relative to the clothes hanging and placing, wherein the first direction can be a horizontal longitudinal direction, and the blowing distance refers to a distance between the clothes hanging and placing and the circulating fan in the horizontal longitudinal direction. As shown in fig. 4, F represents the blowing distance.
The pixels in the depth image represent the distance of the object at the specific coordinates from the plane of the depth camera in the field of view of the depth camera. Accordingly, by the depth information included in the color depth image, a blowing distance of the circulation fan with respect to the hanging laundry in the first direction can be determined.
In some embodiments, the circulating fan control method further comprises: and determining the blowing gear of the circulating fan according to the blowing distance.
Specifically, the higher the gear of blowing of circulation fan, then wind-force is bigger, and its distance of blowing is also far away, consequently, acquire the distance interval of blowing of each gear of circulation fan respectively, after obtaining the distance of blowing, can judge the gear of blowing of circulation fan according to this distance of blowing for circulation fan can automatically regulated wind-force, it is convenient to use.
S303, inputting the color depth image into a pre-trained recognition model to determine a wet area of the hung clothes.
Specifically, the color depth image is input into a pre-trained recognition model, the recognition model is used for carrying out image recognition on the hung clothes, and the wet area of the hung clothes is determined from the color depth image of the hung clothes.
Since the colors of the clothes hung in the wet state and the dry state are slightly different for the clothes with the same color, the color depth image can be subjected to image recognition through the pre-training recognition model so as to determine the wet area of the clothes hung in.
S304, determining boundary coordinates of the wet area based on the position of the wet area in the color depth image.
Specifically, the position of the wet area in the color depth image is determined, and the boundary coordinates of the wet area are determined according to the position of the wet area.
The coordinates of the boundary coordinates are coordinate systems established by taking the position of the camera on the circulating fan as the origin.
In some embodiments, referring to fig. 5, determining boundary coordinates of the wet area may specifically include step S3041 and step S3042.
S3041, acquiring coordinates of a plurality of pixel points of the wet area for hanging clothes in the color depth image.
Specifically, after the recognition model recognizes the wet area of the hanging clothes, a plurality of pixel point coordinates of the wet area in the whole color depth image are obtained, wherein the pixel point coordinates jointly form the wet area of the hanging clothes.
S3042, screening the pixel point coordinates to obtain boundary coordinates of the wet area.
Specifically, the coordinates of a plurality of pixel points forming the wet area for hanging clothes are respectively screened, so that the boundary coordinates of the wet area are obtained.
The boundary coordinates may include an upper boundary coordinate, a lower boundary coordinate, a left boundary coordinate, and a right boundary coordinate.
When the upper boundary coordinates and the lower boundary coordinates are screened, the abscissa of each pixel point coordinate can be screened, the pixel point coordinate corresponding to the maximum value of the abscissa is taken as the right boundary coordinate, and the pixel point coordinate corresponding to the minimum value of the abscissa is taken as the left boundary coordinate.
If there are a plurality of pixel coordinates corresponding to the maximum value of the abscissa and/or pixel coordinates corresponding to the minimum value of the abscissa, any one is taken as the right boundary coordinate or the left boundary coordinate.
When the upper boundary coordinates or the lower boundary coordinates are screened, the ordinate of each pixel point coordinate can be screened, the pixel point coordinate corresponding to the maximum value of the ordinate is taken as the upper boundary coordinate, and the pixel point coordinate corresponding to the minimum value of the ordinate is taken as the lower boundary coordinate.
If there are a plurality of pixel point coordinates corresponding to the maximum value of the ordinate and/or pixel point coordinates corresponding to the minimum value of the ordinate, any one of the pixel point coordinates is taken as an upper boundary coordinate or a lower boundary coordinate.
S305, calculating a left deflection angle section and a right deflection angle section of the circulating fan in the second direction according to the boundary coordinates and the blowing distance, and adjusting the blowing range of the circulating fan according to the left deflection angle section and the right deflection angle section.
Specifically, the second direction refers to a second direction of the circulation fan relative to the clothes hanging, and after the boundary coordinates are obtained, the deflection distance of the circulation fan in the second direction can be calculated according to the boundary coordinates and the blowing distance.
The second direction may be a horizontal direction, and the deflection distance of the circulation fan in the second direction relative to the hanging clothes may be the distance between the hanging clothes and the fan head of the circulation fan in the horizontal direction, as shown in fig. 6, and W represents the deflection distance.
The left and right deflection distance of the circulating fan in the second direction can be calculated according to the boundary coordinates and the blowing distance, and then the left and right deflection angle interval of the circulating fan in the second direction can be calculated according to the left and right deflection distance and the blowing distance, so that the circulating fan can adjust the air supply range of the circulating fan according to the left and right deflection angle interval.
In some embodiments, referring to fig. 7, the calculation of the left-right deflection angle interval of the circulating fan in the second direction specifically includes steps S3051 to S3054.
S3051, acquiring a reference line of the color depth image, and calculating a left image distance between the left boundary coordinate and the reference line and a right image distance between the right boundary coordinate and the reference line.
The datum line refers to the position of the plane where the depth camera mounted on the circulation fan is located in a coordinate system.
When calculating the left image distance, the abscissa in the left boundary coordinate may be subtracted from the abscissa of the reference line, and the absolute value of the difference may be taken as the left image distance, and similarly, when calculating the right image distance, the abscissa in the right image distance may be subtracted from the abscissa of the reference line, and the absolute value of the difference may be taken as the right image distance.
For example, the left boundary coordinates are (-20, 40), the right boundary coordinates are (60, 40), the reference line is x=25, the left image distance is |20-25|=45, and the right image distance is |60-25|=35.
S3052, calculating left deflection distance and right deflection distance of the circulation fan in the second direction according to the left image distance and the right image distance based on a deflection distance calculation formula.
Specifically, after the left image distance and the right image distance are calculated, the left deflection distance and the right deflection distance of the circulation fan in the second direction may be calculated, respectively, according to a deflection distance calculation formula.
The deflection distance calculation formula is as follows:
wherein ,Wi Represents deflection distance, F represents blowing distance, F represents focal length of camera, x i The image distance and i the azimuth. Wherein, the azimuth can be up, down, left and right.
S3053, calculating a left deflection angle and a right deflection angle of the circulating fan according to the left deflection distance, the right deflection distance and the blowing distance by using an inverse trigonometric function formula.
Specifically, an inverse trigonometric function formula is used for calculating a left deflection included angle between the hung clothes and the circulating fan according to the blowing distance and the left deflection distance, and an inverse trigonometric function formula is used for calculating a right deflection included angle between the hung clothes and the circulating fan according to the blowing distance and the right deflection distance.
For example, when the blowing distance and the left deflection distance are known, the calculation formula of the left deflection angle may be:
wherein, angle A is left deflection angle, W Left side The left deflection distance is represented, and F represents the blowing distance.
Similarly, when the blowing distance and the right deflection distance are known, the calculation formula of the right deflection angle is as follows
Wherein, B is the right deflection angle, W Right side The right deflection distance is represented, and F represents the blowing distance.
And S3054, determining a left deflection angle section and a right deflection angle section of the circulating fan based on the left deflection angle and the right deflection angle.
Specifically, after the left deflection angle and the right deflection angle are calculated, the left and right deflection angle intervals of the circulation fan in the second direction can be determined.
In some embodiments, as shown in fig. 8, the left-right deflection angle interval of the circulation fan is determined, specifically including steps S3054a to S3054c.
And S3054a, determining the position of the wet area in the depth color image according to the left boundary coordinate, the right boundary coordinate and the datum line.
Specifically, the position of the wet area in the depth color image, that is, the position of the wet area with respect to the circulation fan is determined according to the left boundary coordinates, the right boundary coordinates, and the reference line of the wet area where the laundry is hung.
The position of the wet area relative to the circulating fan can be that the wet area is all on the left side of the circulating fan, the wet area is all on the right side of the circulating fan, and the wet area is partially on the left side of the circulating fan and the wet area is partially on the right side of the circulating fan.
If the difference between the abscissa of the left boundary coordinate and the reference line is a negative number and the difference between the abscissa of the right boundary coordinate and the reference line is a positive number, the wet area where the clothes are hung is indicated to be on the left side of the circulating fan and the wet area where the clothes are hung is indicated to be on the right side of the circulating fan.
If the difference between the horizontal coordinate of the left boundary coordinate and the horizontal coordinate of the right boundary coordinate and the datum line is negative, the wet area for hanging clothes is all left of the circulating fan.
If the difference between the horizontal coordinate of the left boundary coordinate and the horizontal coordinate of the right boundary coordinate and the reference line is positive, the wet area for hanging clothes is all on the right side of the circulating fan.
And if the difference value between the abscissa of the left boundary coordinate or the abscissa of the right boundary coordinate and the datum line is 0, indicating that the left boundary or the right boundary of the wet area where the clothes are hung is opposite to the circulating fan.
S3054b, determining the left-right deflection direction of the circulating fan according to the position of the hung clothes in the depth color image.
Specifically, when the wet area where the laundry is hung is all on the left side of the circulation fan, the left-right deflection direction of the circulation fan is always deflected on the left side of the initial position of the circulation fan.
When the wet area for hanging clothes is all on the right side of the circulating fan, the left-right deflection direction of the circulating fan is always deflected on the right side of the initial position of the circulating fan.
When the wet area for hanging clothes is at the left side of the circulating fan and the wet area for hanging clothes is at the right side of the circulating fan, the left-right deflection direction of the circulating fan is firstly the left side deflection of the initial position of the circulating fan, and then the left side deflection of the initial position of the circulating fan; or first to the right of the initial position of the circulating fan and then to the left of the initial position of the circulating fan.
And S3054c, determining a left deflection angle section and a right deflection angle section of the circulating fan according to the left deflection direction, the right deflection angle and the right deflection angle.
For example, if it is defined that the angle of the circulation fan when the initial position is rotated to the right is positive and the angle when the circulation fan is rotated to the left is negative, then:
when all the wet areas for hanging clothes are at the left side of the circulating fan, if the left deflection angle is 70 degrees and the right deflection angle is 15 degrees, the left deflection angle interval and the right deflection angle interval of the circulating fan are-15 degrees to-70 degrees.
When all the wet areas for hanging clothes are at the left side of the circulating fan, if the left deflection angle is 15 degrees and the right deflection angle is 70 degrees, the left deflection angle interval and the right deflection angle interval of the circulating fan are 15 degrees to 70 degrees.
When the wet area for hanging clothes is positioned at the left side of the circulating fan and the wet area for hanging clothes is positioned at the right side of the circulating fan, if the left deflection angle is 15 degrees and the right deflection angle is 70 degrees, the left deflection angle interval and the right deflection angle interval of the circulating fan are-15 degrees to 70 degrees.
In the specific implementation process, after the readings of the left deflection angle and the right deflection angle are calculated, the calculated left deflection angle can be reduced by 5 degrees, the calculated right deflection angle is increased by 5 degrees, and the calculated left deflection angle is used as a left deflection angle interval and a right deflection angle interval of a final circulation fan so as to compensate the calculation errors of the left deflection angle and the right deflection angle in calculation and improve the blowing effect of the circulation fan.
According to the circulating fan control method, the color depth image including hanging clothes, acquired by the depth camera, is acquired, the blowing distance of the circulating fan is determined according to the depth information in the color depth image, the color depth image is input into the pre-trained recognition model, so that the wet area for hanging the clothes is determined, the boundary coordinates of the wet area are determined based on the position of the wet area in the color depth image, and finally the left and right deflection angle intervals of the circulating fan in the second direction are calculated according to the boundary coordinates and the blowing distance, so that the circulating fan can adjust the blowing range according to the left and right deflection angle intervals. The method comprises the steps of determining a wet area for hanging clothes according to an acquired color depth image, and determining left and right deflection angle intervals of a circulating fan according to the space range of the wet area, so that the air supply range of the circulating fan is determined, the circulating fan can accurately blow the space range of the wet area for hanging clothes, and convenience and accuracy in control of the circulating fan are improved.
Referring to fig. 9, fig. 9 is a schematic diagram illustrating steps of another control method of a circulation fan according to an embodiment of the application.
As shown in fig. 9, the control method of the circulation fan specifically includes: step S401 to step S406.
S401, acquiring a color depth image which is acquired by the depth camera and comprises hanging clothes;
s402, determining the blowing distance of the circulating fan in the first direction according to the depth information;
s403, inputting the color depth image into a pre-trained recognition model to determine a wet area of the hung clothes;
s404, determining boundary coordinates of the wet area based on the position of the wet area in the color depth image;
s405, calculating a left deflection angle interval and a right deflection angle interval of the circulating fan in a second direction according to the boundary coordinates and the blowing distance;
s406, calculating an upper deflection angle interval and a lower deflection angle interval of the circulating fan in a third direction according to the boundary coordinates and the blowing distance, and adjusting the blowing range of the circulating fan according to the left deflection angle interval, the right deflection angle interval and the upper deflection angle interval and the lower deflection angle interval.
The third direction may be a vertical direction, and in the specific implementation process, the third direction may be a height direction of the hanging clothes, and the vertical deflection angle interval refers to an interval in which the circulation fan adjusts the vertical deflection angle according to the height of the hanging clothes wet area.
After the upper and lower deflection angle intervals are calculated, the air supply range of the circulating fan can be adjusted according to the left and right deflection angle intervals and the upper and lower deflection angle intervals, so that the circulating fan can comprehensively blow the range area where the hung clothes are located.
In some embodiments, the boundary coordinates include upper boundary coordinates and lower boundary coordinates. As shown in fig. 10, the calculation of the up-down deflection angle interval of the circulation fan in the third direction specifically includes steps S4061 to S4064.
S4061, acquiring a reference line of the color depth image, and calculating an upper image distance between the upper boundary coordinate and the reference line, and a lower image distance between the lower boundary coordinate and the reference line.
The datum line refers to the position of the plane where the depth camera mounted on the circulation fan is located in a coordinate system.
In calculating the upper image distance, the ordinate in the upper boundary coordinate may be subtracted from the ordinate of the reference line, and the difference value may be taken as the upper image distance.
For example, the upper boundary coordinates are (-20, 100), the lower boundary coordinates are (60, 40), the reference line is y=25, the upper image distance is |100-25|=75, and the lower image distance is |40-25|=15.
S4062, respectively calculating an upper deflection distance and a lower deflection distance of the circulation fan in a third direction according to the upper image distance and the lower image distance based on a deflection distance calculation formula.
Specifically, after the upper image distance and the lower image distance are calculated, the upper image distance and the lower image distance of the circulation fan in the third direction may be calculated, respectively, according to a deflection distance calculation formula.
The deflection distance calculation formula is as follows:
wherein ,Wi Represents deflection distance, F represents blowing distance, F represents focal length of camera, x i The image distance and i the azimuth.
S4063, calculating an upper deflection angle and a lower deflection angle of the circulating fan according to the upper deflection distance, the lower deflection distance and the blowing distance by using an inverse trigonometric function formula.
Specifically, an inverse trigonometric function formula is used for calculating a left deflection included angle between the hung clothes and the circulating fan according to the blowing distance and the left deflection distance, and an inverse trigonometric function formula is used for calculating a right deflection included angle between the hung clothes and the circulating fan according to the blowing distance and the right deflection distance.
For example, when the blowing distance and the upper deflection distance are known, the calculation formula of the upper deflection angle may be:
wherein, C is the upper deflection angle, W Upper part The upper deflection distance is represented, and F represents the blowing distance.
Similarly, when the blowing distance and the lower deflection distance are known, the calculation formula of the lower deflection angle is:
wherein, the angle D is the lower deflection angle, W Lower part(s) Represents the lower deflection distance, F represents blowingWind distance.
S4064, determining an upper deflection angle section and a lower deflection angle section of the circulating fan based on the upper deflection angle and the lower deflection angle.
Specifically, after the upper deflection angle and the lower deflection angle are calculated, the upper deflection angle and the lower deflection angle of the circulating fan in the third direction can be determined.
For example, if the upper deflection angle is 70 ° and the lower deflection angle is 15 °, the left and right deflection angle sections of the circulation fan are 15 ° to 70 °.
According to the circulating fan control method provided by the embodiment, the color depth image including the hung clothes, acquired by the depth camera, is acquired, the blowing distance of the circulating fan is determined according to the depth information in the color depth image, the color depth image is input into the pre-trained recognition model, so that the wet area for hanging the clothes is determined, the boundary coordinates of the wet area are determined based on the position of the wet area in the color depth image, the left and right deflection angle intervals of the circulating fan in the second direction are calculated according to the boundary coordinates and the blowing distance, and the upper and lower deflection angle intervals of the circulating fan in the third direction are calculated according to the boundary coordinates and the blowing distance, so that the circulating fan can adjust the blowing range according to the left and right deflection angle intervals and the upper and lower deflection angle intervals. The air supply range of the circulating fan is determined jointly according to the width and the height of the wet areas where clothes are hung, so that the circulating fan can also blow air to the wet areas with different heights, and the convenience and the accuracy of control of the circulating fan are improved.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, the computer program comprises program instructions, and the processor executes the program instructions to realize any one of the circulating fan control methods provided by the embodiment of the application.
The computer readable storage medium may be an internal storage unit of the computer device according to the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, which are provided on the computer device.
While the application has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (9)

1. The utility model provides a circulation fan control method which is characterized in that, be provided with the degree of depth camera on the circulation fan, include:
acquiring a color depth image comprising hanging clothes, wherein the color depth image comprises depth information, and the color depth image is acquired by the depth camera;
determining the blowing distance of the circulating fan in the first direction according to the depth information;
inputting the color depth image into a pre-trained recognition model to determine a wet area of the hanging garment;
determining boundary coordinates of the wet area based on a position of the wet area in the color depth image;
calculating a left deflection angle interval and a right deflection angle interval of the circulating fan in a second direction according to the boundary coordinates and the blowing distance, and adjusting the blowing range of the circulating fan according to the left deflection angle interval and the right deflection angle interval;
the boundary coordinates include a left boundary coordinate and a right boundary coordinate, and the calculating a left deflection angle interval and a right deflection angle interval of the circulation fan in the second direction according to the boundary coordinates and the blowing distance includes:
acquiring a reference line of the color depth image, and calculating a left image distance between the left boundary coordinate and the reference line and a right image distance between the right boundary coordinate and the reference line;
calculating a left deflection distance and a right deflection distance of the circulation fan in a second direction according to the left image distance and the right image distance based on a deflection distance calculation formula;
calculating a left deflection angle and a right deflection angle of the circulating fan according to the left deflection distance, the right deflection distance and the blowing distance respectively by using an inverse trigonometric function formula;
and determining a left deflection angle section and a right deflection angle section of the circulating fan based on the left deflection angle and the right deflection angle.
2. The circulation fan control method of claim 1, wherein the determining boundary coordinates of the wet area based on the position of the wet area in the color depth image comprises:
acquiring coordinates of a plurality of pixel points of a wet area for hanging clothes in the color depth image;
and screening the pixel point coordinates to obtain boundary coordinates of the wet area.
3. The circulation fan control method according to claim 1, characterized in that the method further comprises:
and calculating an up-down deflection angle interval of the circulating fan in a third direction according to the boundary coordinates and the blowing distance.
4. The circulation fan control method according to claim 3, wherein the boundary coordinates include upper boundary coordinates and lower boundary coordinates, and the calculating the upper and lower deflection angle intervals of the circulation fan in the third direction from the boundary coordinates and the blowing distance includes:
acquiring a reference line of the color depth image, and calculating an upper image distance between the upper boundary coordinate and the reference line and a lower image distance between the lower boundary coordinate and the reference line;
based on a deflection distance calculation formula, respectively calculating an upper deflection distance and a lower deflection distance of the circulating fan in a third direction according to the upper image distance and the lower image distance;
calculating an upper deflection angle and a lower deflection angle of the circulating fan according to the upper deflection distance, the lower deflection distance and the blowing distance respectively by using an inverse trigonometric function formula;
and determining an upper deflection angle interval and a lower deflection angle interval of the circulating fan based on the upper deflection angle and the lower deflection angle.
5. The circulation fan control method according to claim 1, wherein the determining the left and right deflection angle sections of the circulation fan based on the left and right deflection angles includes:
determining the position of the wet area in the color depth image according to the left boundary coordinate, the right boundary coordinate and the datum line;
determining a left-right deflection direction of the circulating fan according to the position of the wet area in the color depth image;
and determining left and right deflection angle intervals of the circulating fan according to the left and right deflection directions, the left deflection angle and the right deflection angle.
6. The circulation fan control method according to claim 4 or 1, characterized in that the deflection distance calculation formula is as follows:
wherein ,represents deflection distance, F represents blowing distance, F represents focal length of camera, +.>The image distance is represented by a distance of the image,
7. the circulation fan control method according to claim 1, characterized in that the method further comprises:
acquiring a sample image, wherein the sample image comprises a wet-state clothing image and a corresponding dry-state clothing image which are shot by a depth camera;
labeling the sample image according to the wet state and the dry state to construct sample data;
based on a convolutional neural network, model training is carried out according to the sample data to obtain an identification model, and the obtained identification model is used as a pre-trained identification model.
8. A circulation fan, which is characterized by comprising a depth camera, a memory and a processor;
the camera is used for collecting color depth images comprising hanging clothes;
the memory is used for storing a computer program;
the processor is configured to execute the computer program and to implement the circulation fan control method according to any one of claims 1 to 7 when the computer program is executed.
9. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, causes the processor to implement the circulation fan control method according to any one of claims 1 to 7.
CN202010366700.8A 2020-04-30 2020-04-30 Circulating fan control method, circulating fan and storage medium Active CN113584843B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010366700.8A CN113584843B (en) 2020-04-30 2020-04-30 Circulating fan control method, circulating fan and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010366700.8A CN113584843B (en) 2020-04-30 2020-04-30 Circulating fan control method, circulating fan and storage medium

Publications (2)

Publication Number Publication Date
CN113584843A CN113584843A (en) 2021-11-02
CN113584843B true CN113584843B (en) 2023-09-29

Family

ID=78237655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010366700.8A Active CN113584843B (en) 2020-04-30 2020-04-30 Circulating fan control method, circulating fan and storage medium

Country Status (1)

Country Link
CN (1) CN113584843B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114234390B (en) * 2021-11-19 2023-09-19 青岛海尔空调器有限总公司 Method and device for controlling air conditioner, air conditioner and storage medium
CN114963420A (en) * 2022-04-20 2022-08-30 青岛海尔空调器有限总公司 Method and device for controlling air conditioner, air conditioner and storage medium
CN117010831B (en) * 2023-08-07 2024-03-08 深圳远大科技工程有限公司 Building intelligent management system and method based on big data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105241022A (en) * 2015-10-29 2016-01-13 广东美的制冷设备有限公司 Air outlet control method of air conditioner
JP2016166708A (en) * 2015-03-10 2016-09-15 ジョンソンコントロールズ ヒタチ エア コンディショニング テクノロジー(ホンコン)リミテッド Air conditioner
DE102018107488B3 (en) * 2018-03-28 2019-06-27 Miele & Cie. Kg Laundry treatment device, preferably tumble dryer
CN109949306A (en) * 2019-04-02 2019-06-28 森思泰克河北科技有限公司 Reflecting face deviation detecting method, terminal device and storage medium
CN110373874A (en) * 2019-07-18 2019-10-25 珠海格力电器股份有限公司 A kind of method and device controlling clothes drying

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016166708A (en) * 2015-03-10 2016-09-15 ジョンソンコントロールズ ヒタチ エア コンディショニング テクノロジー(ホンコン)リミテッド Air conditioner
CN105241022A (en) * 2015-10-29 2016-01-13 广东美的制冷设备有限公司 Air outlet control method of air conditioner
DE102018107488B3 (en) * 2018-03-28 2019-06-27 Miele & Cie. Kg Laundry treatment device, preferably tumble dryer
CN109949306A (en) * 2019-04-02 2019-06-28 森思泰克河北科技有限公司 Reflecting face deviation detecting method, terminal device and storage medium
CN110373874A (en) * 2019-07-18 2019-10-25 珠海格力电器股份有限公司 A kind of method and device controlling clothes drying

Also Published As

Publication number Publication date
CN113584843A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN113584843B (en) Circulating fan control method, circulating fan and storage medium
WO2022002039A1 (en) Visual positioning method and device based on visual map
US9928405B2 (en) System and method for detecting and tracking facial features in images
TWI686774B (en) Human face live detection method and device
US20170083760A1 (en) Human detection system for construction machine
CN109654676B (en) Adjusting method, device and system of air supply device, computer equipment and storage medium
CN107066938A (en) Video analysis equipment, method and computer program product
KR101551576B1 (en) Robot cleaner, apparatus and method for recognizing gesture
US10465362B2 (en) Human detection system for construction machine
WO2020184207A1 (en) Object tracking device and object tracking method
CN105469430A (en) Anti-shielding tracking method of small target in large-scale scene
WO2019033570A1 (en) Lip movement analysis method, apparatus and storage medium
JP2015106197A (en) Image processing device and image processing method
WO2022002262A1 (en) Character sequence recognition method and apparatus based on computer vision, and device and medium
CN111626163A (en) Human face living body detection method and device and computer equipment
CN102428497A (en) Method and device for determining shape congruence in three dimensions
CN108985263A (en) A kind of collecting method, device, electronic equipment and computer-readable medium
CN114445769A (en) Fishing behavior detection method, device and system
CN111046831B (en) Poultry identification method, device and server
CN112696372A (en) Fan adjusting method, fan and storage medium
CN113668201B (en) Circulating fan control method, circulating fan control system and storage medium
US10917559B2 (en) Method for achieving non-selfie-taking effect through selfie-taking and photographing device
JP5391970B2 (en) Moving object detection device and pixel similarity determination method
CN109389367A (en) Staff attendance method, apparatus and storage medium
CN113584848B (en) Circulating fan control method, circulating fan control system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant