CN113584850A - 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
CN113584850A
CN113584850A CN202010368398.XA CN202010368398A CN113584850A CN 113584850 A CN113584850 A CN 113584850A CN 202010368398 A CN202010368398 A CN 202010368398A CN 113584850 A CN113584850 A CN 113584850A
Authority
CN
China
Prior art keywords
deflection
distance
circulating fan
calculating
blowing
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.)
Pending
Application number
CN202010368398.XA
Other languages
Chinese (zh)
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 CN202010368398.XA priority Critical patent/CN113584850A/en
Publication of CN113584850A publication Critical patent/CN113584850A/en
Pending legal-status Critical Current

Links

Images

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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Textile Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Image Analysis (AREA)

Abstract

The application relates to the field of smart home, and discloses a circulating fan control method, a circulating fan and a storage medium, wherein a depth camera is arranged on the circulating fan, and the method comprises the following steps: acquiring a depth image which is acquired by the depth camera and comprises hung clothes, wherein the depth image comprises depth information; determining the blowing distance of the circulating fan in the first direction according to the depth information; carrying out contour recognition on the depth image to obtain boundary coordinates of the hung clothes; calculating a deflection distance of the circulating fan in a second direction according to the boundary coordinate and the blowing distance; and calculating a left deflection angle interval and a right deflection angle interval of the circulating fan according to the blowing distance and the deflection distance so as to adjust the air supply range of the circulating fan according to the left deflection angle interval and the right deflection angle interval. So that the circulating fan can automatically adjust the air supply range according to the hanging position of the clothes.

Description

Circulating fan control method, circulating fan and storage medium
Technical Field
The application relates to the field of smart home, in particular to a circulating fan control method, a circulating fan and a storage medium.
Background
In rainy or wet weather, clothes aired on the clothes hanger cannot be aired in time due to weather, and bacteria can grow on the clothes when the clothes are wet for a long time, so that skin diseases are caused. Therefore, in order to dry the clothes on the clothes hanger in time, the circulating fan can be used for blowing air to the position of the clothes hanger, so as to promote air circulation and accelerate the drying speed of the clothes.
However, most of the existing circulating fans need a user to manually adjust the swinging angle and the air supply mode of the circulating fan, so that the circulating fan blows air according to the position of clothes hung on the clothes hanger, the operation is complex, and the use experience of the user is reduced.
Therefore, how to enable the circulation fan to automatically adjust the air supply range according to the hanging position of the clothes becomes a problem to be solved urgently.
Disclosure of Invention
The application provides a circulating fan control method, a circulating fan and a storage medium, so that the circulating fan can automatically adjust an air supply angle according to the position of a user.
In a first aspect, the present application provides a method for controlling a circulation fan, where the circulation fan is provided with a depth camera, and the method includes:
acquiring a depth image which is acquired by the depth camera and comprises hung clothes, wherein the depth image comprises depth information;
determining the blowing distance of the circulating fan in the first direction according to the depth information;
carrying out contour recognition on the depth image to obtain boundary coordinates of the hung clothes;
calculating a deflection distance of the circulating fan in a second direction according to the boundary coordinate and the blowing distance;
and calculating a left deflection angle interval and a right deflection angle interval of the circulating fan according to the blowing distance and the deflection distance so as to adjust the air supply range of the circulating fan according to the left deflection angle interval and the right deflection angle interval.
In a second aspect, the present application further provides a circulation fan comprising a depth camera, a memory, and a processor;
the camera is used for collecting a depth image including clothes hung on the camera;
the memory is used for storing a computer program;
the processor is configured to execute the computer program and to implement the loop fan control method as described above when executing the computer program.
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 the loop fan control method as described above.
The application discloses a control method of a circulating fan, the circulating fan and a storage medium, wherein a depth image which is acquired by a depth camera and comprises a hanging clothes is obtained, the blowing distance of the circulating fan in a first direction is determined according to depth information in the depth image, then the depth image is subjected to contour recognition to obtain boundary coordinates of the hanging clothes, the deflection distance of the circulating fan in a second direction is calculated according to the boundary coordinates and the blowing distance, and finally, the left and right deflection angle intervals of the circulating fan are calculated according to the blowing distance and the deflection distance to adjust the air supply range of the circulating fan. The depth image of putting the clothing including hanging is shot to the degree of depth camera that sets up through the circulation fan, and the space width is put to hanging of putting the clothing according to the confirmed hanging of depth image to according to hanging the position determination air supply scope of putting the clothing, improved the convenience of control and the precision of circulation fan range of blowing to the circulation fan.
Drawings
In order to more clearly illustrate the technical solutions of 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 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 schematic view of a circulation fan provided herein;
FIG. 2 is a schematic diagram illustrating steps of a method for controlling a circulation fan according to an embodiment of the present disclosure;
fig. 3 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. 4 is a schematic view of a deflection distance of the circulation fan in a second direction according to an embodiment of the present application;
FIG. 5 is a flow diagram illustrating sub-steps of a method of controlling the circulation fan provided in FIG. 2;
FIG. 6 is a schematic diagram illustrating a step of calculating a left-right deflection angle interval of the circulation fan based on the blowing distance and the deflection distance according to an embodiment of the present application;
FIG. 7 is a schematic view of the substeps provided in FIG. 6 for calculating the left and right deflection angle intervals of the circulation fan based on the blowing distance and the deflection distance;
FIG. 8 is a schematic diagram illustrating steps of another method for controlling a circulation fan according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram illustrating a step of calculating an up-down deflection angle interval of the circulation fan in the third direction according to the boundary coordinates and the blowing distance according to the embodiment of the present application;
fig. 10 is a schematic block diagram of a structure of a circulation 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 some, but not all, embodiments of the present application. 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.
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.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic view of a circulation fan provided in the present application.
The circulation fan 100 includes a circulation fan body 110, a depth camera 120, and a function control device 130. The circulating fan body comprises a driving motor, a turbofan, a flow guide grid and a shell. In some embodiments, the circulation fan 100 can perform multi-directional oscillating air supply, such as oscillating in a horizontal direction, and/or oscillating in a vertical direction, wherein the oscillating can be achieved by using a motor and a driving mechanism, such as a crank and a connecting rod, or a driving wheel and a driven wheel cooperating, and the like. For example, the air blowing can be performed by swinging 180 ° in the left-right direction and 90 ° in the up-down direction.
The depth camera 120 is mounted on the circulating fan body 110 and is in signal connection with the function control device 130, and is configured to collect a depth image including clothes hung thereon, and send the collected depth image to the function control device 130. In some embodiments, depth camera 120 may be specifically mounted on a fan head. The depth camera 120 may be a TOF camera, a stereo camera, or the like.
The function control device 130 is provided on the circulation fan body 110, and may include a processor and a control module. The processor is used for processing and analyzing the acquired depth image, calculating a processing result, obtaining the blowing distance of the circulating fan in the first direction and the deflection distance of the circulating fan in the second direction, and calculating the left and right deflection angle interval of the circulating fan; the control module is used for sending out a control instruction according to a result generated by the processor so as to control the circulating fan.
The Processor may be a Central Processing Unit (CPU), or may be other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Illustratively, the circulation fan provided by the application can acquire a depth image which is acquired by a depth camera and comprises a hung clothes, then determines the blowing distance of the circulation fan in the first direction based on the depth image, then carries out contour recognition on the depth image to obtain the boundary coordinate of the hung clothes, calculates the deflection distance of the circulation fan in the second direction according to the boundary coordinate and the blowing distance, and finally calculates the left and right deflection angle intervals of the circulation fan according to the blowing distance and the deflection distance so as to adjust the air supply range of the circulation fan according to the left and right deflection angle intervals.
It will be understood that the names of the circulation fan in fig. 1 and the above-described components of the circulation fan are for identification purposes only and do not limit the embodiments of the present application accordingly.
The following describes in detail a circulation fan control method provided by an embodiment of the present application based on the circulation fan in fig. 1.
Referring to fig. 2, fig. 2 is a schematic step diagram of a method for controlling a circulation fan according to an embodiment of the present disclosure. The control method of the circulating fan can be applied to the circulating fan shown in figure 1, the blowing distance of the circulating fan in the first direction is determined through the depth image including the hung clothes, then the outline recognition is carried out on the depth image, the left and right deflection angle intervals of the circulating fan are obtained through calculation, and therefore the air supply range of the circulating fan is adjusted, and the circulating fan can better supply air to the hung clothes.
As shown in fig. 2, the method for controlling the circulation fan specifically includes: step S201 to step S205.
S201, obtaining a depth image which is acquired by the depth camera and comprises a hanging clothes.
Wherein the depth image comprises depth information. And starting the depth camera on the circulating fan, and acquiring a depth image which is acquired by the depth camera on the circulating fan and comprises hung clothes by a processor in the function control device so as to further process the acquired depth image.
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 every preset period, for example, every 6 hours. And after the clothes hanger is started, acquiring a depth image near the clothes hanger, performing image recognition on the acquired depth image near the clothes hanger to judge whether clothes are hung on the clothes hanger or not, if the clothes are hung on the clothes hanger, continuously acquiring the depth image including the hung clothes, and if the clothes are not hung on the clothes hanger, closing the depth camera.
It should be noted that, for convenience of description, when the depth camera mounted on the circulation fan in the present application collects a depth image including the hung clothes, the depth camera is collected when the circulation fan is at an initial position, that is, when a deflection angle of a fan head of the circulation fan is 0.
S202, determining the blowing distance of the circulating fan in the first direction according to the depth information.
The first direction is a first direction of the circulation fan relative to the hung clothes, wherein the first direction can be a horizontal longitudinal direction, and the blowing distance is a distance between the hung clothes and the circulation fan in the horizontal longitudinal direction. As shown in fig. 3, F denotes an air blowing distance.
The pixel points in the depth image represent the distance from the object at the specific coordinate to the plane of the depth camera in the field of view of the depth camera. Accordingly, through the depth information included in the depth image, the blowing distance of the circulation fan in the first direction with respect to the hung laundry may be determined.
S203, carrying out contour recognition on the depth image to obtain the boundary coordinate of the hung clothes.
Specifically, the depth image including the hung clothes is subjected to contour recognition, wherein the contour recognition can be edge detection or other related detection algorithms to recognize the image contour of the hung clothes in the depth image. And determining boundary coordinates for hanging clothes according to the image contour, wherein the boundary coordinates can be a plurality of.
And S204, calculating the deflection distance of the circulating fan in the second direction according to the boundary coordinate and the blowing distance.
Specifically, the second direction is a second direction of the circulation fan relative to the hung clothes, 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 transverse direction, and the deflection distance of the circulation fan in the second direction relative to the hung clothes may also be referred to as a distance between the hung clothes and the head of the circulation fan in the transverse horizontal direction, as shown in fig. 4, W represents the deflection distance.
In some embodiments, the deflection distance may include a left deflection distance and a right deflection distance, and referring to fig. 5, step S204 includes steps S2041 to S2043.
S2041, screening the boundary coordinates to obtain left boundary coordinates and right boundary coordinates.
Specifically, the boundary coordinates are screened, and the left boundary coordinates and the right boundary coordinates of the hung clothes are determined. When the left boundary coordinate and the right boundary coordinate are determined, the abscissa of the plurality of boundary coordinates can be screened, the boundary coordinate corresponding to the maximum value of the abscissa is taken as the right boundary coordinate, and the boundary coordinate corresponding to the minimum value of the abscissa is taken as the left boundary coordinate.
S2042, determining a center line of the depth image, and calculating a left image distance between a left boundary coordinate and the center line and a right image distance between a right boundary coordinate and the center line.
Specifically, the center point coordinates of the depth image captured by the depth camera may be determined first, and then the central line of the depth image may be determined based on the center point coordinates.
In a specific implementation process, graying processing may be performed on the depth image to obtain a processed grayscale image; then binarizing the processed gray level image to obtain a binarized image; and finally, determining the central point of the image according to the graphic profile of the binary image, and determining the central line of the depth image based on the central point of the image after the central point of the image is determined.
In the calculation of the left image distance, the abscissa in the left boundary coordinates and the abscissa of the center line may be subtracted, and the absolute value of the difference may be taken as the left image distance.
For example, if the left boundary coordinates are (20,40), the right boundary coordinates are (60,100), and the center line is x equal to 25, the left image distance is |20-25| -5, and the right image distance is |60-25| -35.
S2043, calculating a left deflection distance and a right deflection distance of the hung clothes relative to the circulating fan in the second direction according to the left image distance and the right image distance, the focal length of the camera and the blowing distance respectively.
Specifically, after the left image distance and the right image distance are calculated, a left deflection distance and a right deflection distance of the hung laundry in the second direction with respect to the circulation fan may be calculated, respectively, according to the deflection distance calculation formula.
Wherein, the calculation formula of the deflection distance is as follows:
Figure BDA0002477294280000071
wherein, WiIndicating left or right yaw distance, F indicating air blowing distance, F indicating focal length of camera, xiRepresenting either the left image distance or the right image distance.
When x in the formula is the left image distance, the left deflection distance is obtained through calculation, and when x in the formula is the right image distance, the right deflection distance is obtained through calculation.
S205, calculating a left deflection angle interval and a right deflection angle interval of the circulating fan according to the blowing distance and the deflection distance, and adjusting the air supply range of the circulating fan according to the left deflection angle interval and the right deflection angle interval.
After the blowing distance and the deflection distance are obtained, the left and right deflection angle interval of the circulating fan in the second direction can be calculated according to the blowing distance and the deflection distance, and the left and right deflection angle interval is sent to the circulating fan so as to adjust the air supply range of the circulating fan according to the left and right deflection angle interval.
In some embodiments, as shown in fig. 6, the calculating of the left and right deflection angle sections of the circulation fan based on the blowing distance and the deflection distance specifically includes steps S2051 to S2053:
s2051, calculating a left deflection included angle between the hung clothes and the circulating fan according to the blowing distance and the left deflection distance by using an inverse trigonometric function formula.
Specifically, after the air blowing distance and the left deflection distance are known, the degree of the included angle A between the hung clothes and the circulating fan can be calculated by using an inverse trigonometric function, and the calculated degree of the angle A is used as the left deflection angle of the circulating fan. Specifically, the included angle a is in degrees:
Figure BDA0002477294280000072
wherein, angle A is a left deflection angle WLeft side ofIndicating the left deflection distance and F the blowing distance.
And S2052, calculating a right deflection included angle between the hung clothes and the circulating fan according to the blowing distance and the right deflection distance by using an inverse trigonometric function formula.
Specifically, after the blowing distance and the right deflection distance are known, the degree of the included angle B between the hung clothes and the circulating fan can be calculated by using the inverse trigonometric function, and the calculated degree of the included angle B is used as the right deflection angle of the circulating fan. Specifically, the degree of the included angle B is:
Figure BDA0002477294280000073
wherein, angle B is a right deflection angle, WRight sideIndicating a right deflection distance and F an air blowing distance.
And S2053, determining a left deflection angle interval and a right deflection angle interval of the circulating fan based on the left deflection included angle and the right deflection included angle.
Specifically, after the left deflection included angle and the right deflection included angle are calculated, the left deflection angle interval and the right deflection angle interval of the circulating fan in the second direction can be determined.
In some embodiments, as shown in fig. 7, the step S2053 further includes the steps of:
s2053a, determining the position of the hung clothes in the depth image according to the left boundary coordinate, the right boundary coordinate and the middle line.
Specifically, the position of the hung clothes in the depth image is determined according to the left boundary coordinate, the right boundary coordinate and the central line of the hung clothes, and the position of the hung clothes in the depth image is also the position of the hung clothes relative to the circulating fan.
The position of the hung clothes relative to the circulating fan can be that the hung clothes are all on the left side of the circulating fan, the hung clothes are all on the right side of the circulating fan, and the hung clothes are partially on the left side of the circulating fan and partially on the right side of the circulating fan.
S2053b, determining the left and right deflection directions of the circulation fan according to the position of the hung clothes in the depth image.
Specifically, if the left boundary coordinate and the right boundary coordinate of the hung clothes are both on the same side of the center line, that is, the hung clothes are all on the left side of the circulating fan or the hung clothes are all on the right side of the circulating fan.
If the left boundary coordinate and the right boundary coordinate of the hung clothes are respectively arranged on two sides of the center line, namely, the hung clothes are partially arranged on the left side of the circulating fan and partially arranged on the right side of the circulating fan.
When the clothes are hung on the left side of the circulating fan, the left and right deflection directions of the circulating fan are always deflected on the left side of the initial position of the circulating fan.
When the clothes are hung on the right side of the circulating fan, the left and right deflection directions of the circulating fan are always deflected on the right side of the initial position of the circulating fan.
When the part for hanging clothes is on the left side of the circulating fan and the part is on the right side of the circulating fan, the left-right deflection direction of the circulating fan is that the left side of the initial position of the circulating fan deflects firstly and then the right side of the initial position of the circulating fan deflects; or the fan is deflected firstly at the right side of the initial position of the circulating fan and then deflected at the left side of the initial position of the circulating fan.
And S2053c, determining a left deflection angle interval and a right deflection angle interval of the circulating fan according to the left deflection direction, the right deflection direction, the left deflection included angle and the right deflection included angle.
For example, if it is defined that the angle of the circulation fan when it rotates on the right side from the initial position is positive and the angle when it rotates on the left side is negative, then:
when all the clothes are hung on 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 and the right deflection angle of the circulating fan range from minus 15 degrees to minus 70 degrees.
When all the clothes are hung on 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 and the right deflection angle of the circulating fan are in a range of 15-70 degrees.
When the clothes are hung on the left side of the circulating fan and 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 and the right deflection angle of the circulating fan are within a range of-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 can be increased by 5 degrees, and the left deflection angle and the right deflection angle are used as the final left deflection angle and right deflection angle interval of the circulating fan so as to compensate the calculation errors of the left deflection angle and the right deflection angle during calculation and improve the blowing effect of the circulating fan.
In some embodiments, the circulation fan control method further includes: and determining the blowing gear of the circulating fan according to the blowing distance.
Specifically, the gear of blowing of circulation fan is higher, and then wind-force is big more, and it is far away also that it blows, consequently, acquires 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, and it is convenient to use.
According to the control method of the circulation fan provided by the embodiment, the depth image which is acquired by the depth camera and comprises the hung clothes is obtained, the blowing distance of the circulation fan in the first direction is determined according to the depth information in the depth image, then the outline recognition is carried out on the depth image, the boundary coordinate of the hung clothes is obtained, the deflection distance of the circulation fan in the second direction is calculated according to the boundary coordinate and the blowing distance, and finally the left and right deflection angle intervals of the circulation fan are calculated according to the blowing distance and the deflection distance so as to adjust the air supply range of the circulation fan. The depth image of putting the clothing including hanging is shot to the degree of depth camera that sets up through the circulation fan, and the space width is put to hanging of putting the clothing according to the confirmed hanging of depth image to according to hanging the position determination air supply scope of putting the clothing, improved the convenience of control and the precision of circulation fan range of blowing to the circulation fan.
Referring to fig. 8, fig. 8 is a schematic step diagram of another method for controlling a circulation fan according to an embodiment of the present disclosure.
As shown in fig. 8, the method for controlling the circulation fan specifically includes: step S301 to step S306.
S301, obtaining a depth image which is acquired by the depth camera and comprises a hung clothes.
S302, determining the blowing distance of the circulating fan in the first direction according to the depth information.
S303, carrying out contour recognition on the depth image to obtain the boundary coordinates of the hung clothes.
And S304, calculating the deflection distance of the circulating fan in the second direction according to the boundary coordinate and the blowing distance.
S305, calculating a left and right deflection angle interval of the circulating fan according to the blowing distance and the deflection distance.
S306, calculating an upper deflection angle interval and a lower deflection angle interval of the circulating fan in the third direction according to the boundary coordinate and the blowing distance, and adjusting the air supply 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, in a specific implementation process, the third direction may be a height direction in which the clothes are hung, and the vertical deflection angle interval refers to an interval in which the circulation fan adjusts a vertical deflection angle according to the height of the clothes hung on the circulation fan.
After the up-down deflection angle interval is obtained through calculation, the air supply range of the circulating fan can be adjusted according to the left-right deflection angle interval and the up-down deflection angle interval, so that the circulating fan can perform overall air blowing on the range area where the clothes are hung.
In some embodiments, as shown in fig. 9, the calculating of the up-down deflection angle interval of the circulation fan in the third direction according to the boundary coordinate and the blowing distance specifically includes steps S3061 to S3064.
S3061, screening the boundary coordinates to obtain an upper boundary coordinate and a lower boundary coordinate.
Specifically, boundary coordinates are screened, and an upper boundary coordinate and a lower boundary coordinate of the hung clothes are determined. When the upper boundary coordinate and the lower boundary coordinate are determined, the vertical coordinates in the boundary coordinates can be screened, the boundary coordinate corresponding to the maximum value of the vertical coordinates is taken as the upper boundary coordinate, and the boundary coordinate corresponding to the minimum value of the vertical coordinates is taken as the lower boundary coordinate.
S3062, calculating an upper deflection included angle between the hung clothes and the circulating fan according to the upper boundary coordinate and the blowing distance by using an inverse trigonometric function formula.
Specifically, the upward deflection distance between the hung clothes and the circulating fan in the third direction may be calculated according to the upper boundary coordinate and the blowing distance, and then the upward deflection included angle may be calculated according to the upward deflection distance and the blowing distance by using the inverse trigonometric function formula.
In some embodiments, calculating an upward deflection distance of the hung laundry from the circulation fan in the third direction based on the upper boundary coordinates and the blowing distance includes:
acquiring a reference image of a reference object acquired by the depth camera at the blowing distance and the actual size of the reference object; carrying out contour extraction on a reference image of a reference object acquired by the depth camera in the blowing distance so as to obtain the pixel height of the reference object in the reference image; calculating a calibration coefficient based on the pixel height of the reference object and the actual size of the reference object; and calculating the deflection distance according to the calibration coefficient and the upper boundary coordinate.
Specifically, a reference object with a known actual size is placed at a position which is away from the depth camera by an air blowing distance, and a reference image of the reference object at a preset position is acquired by the depth camera, so that the calibration coefficient can be calculated according to the reference image.
Firstly, preprocessing a reference image, wherein the preprocessing can comprise image graying, Gaussian filtering, edge detection, expansion, corrosion and the like, then searching a contour line of the preprocessed reference image, extracting the contour line of a reference object, and obtaining the pixel height of the reference object in the reference image. And calculating a calibration coefficient according to the pixel height of the reference object and the actual size of the reference object.
The calculation formula of the calibration coefficient may specifically be:
Figure BDA0002477294280000111
wherein, P is a calibration coefficient, O is a pixel height, i.e. a pixel height of the reference object, and K is an actual size, i.e. an actual size of the reference object.
And after the calibration coefficient is obtained through calculation, calculating the deflection distance according to the calibration coefficient and the upper boundary coordinate. In the calculation, the ordinate values of the upper boundary coordinates can be used for the calculation, i.e. the calculation is carried out using
Figure BDA0002477294280000112
Wherein, K represents the actual size, namely the upper deflection distance, O represents the pixel height, namely the ordinate value of the upper boundary coordinate, and P is the calibration coefficient.
Specifically, after the air blowing distance and the upper deflection distance are known, the degree of the upper deflection included angle between the hung clothes and the circulating fan can be calculated by utilizing an inverse trigonometric function. Specifically, the degree of the upper deflection included angle is:
Figure BDA0002477294280000113
wherein, the angle C is an upper deflection included angle MOn the upper partRepresents the upper deflection distance and F represents the blowing distance.
S3063, calculating a lower deflection included angle between the hung clothes and the circulating fan according to the lower boundary coordinate and the blowing distance by using an inverse trigonometric function formula.
Specifically, similarly, the lower deflection distance between the hung clothes and the circulating fan in the third direction may be calculated according to the lower boundary coordinate and the blowing distance, and then the lower deflection included angle may be calculated according to the lower deflection distance and the blowing distance by using the inverse trigonometric function formula.
Specifically, after the blowing distance and the lower deflection distance are known, the degree of the lower deflection included angle between the hung clothes and the circulating fan can be calculated by utilizing an inverse trigonometric function. Specifically, the degree of the lower deflection included angle is:
Figure BDA0002477294280000114
wherein, the angle D is a lower deflection included angle MLower partDenotes a lower deflection distance, and F denotes a blowing distance.
S3064, determining an upper deflection angle interval and a lower deflection angle interval of the circulating fan based on the upper deflection included angle and the lower deflection included angle.
Specifically, the upper and lower deflection angle sections of the circulation fan can be determined based on the upper deflection included angle and the lower deflection included angle.
For example, if the upper deflection angle is 15 ° and the lower deflection angle is 70 °, the upper and lower deflection angle sections of the circulation fan are 15 ° to 70 °.
In some embodiments, in order to reduce the power consumption of the circulation fan, the circulation fan control method further includes:
acquiring a plurality of frames of depth images continuously acquired by the depth camera; and if the plurality of frames of depth images do not contain the hung clothes within a preset time period, closing the circulating fan.
Specifically, the depth camera continuously collects multiple frames of depth images, the collected multiple frames of depth images are sent to the processor, the processor obtains the multiple frames of depth images continuously collected by the depth camera, and image analysis is carried out on the obtained depth images so as to judge whether clothes are hung in the depth images. If the processor judges that no hanging clothes exist in each frame of depth image in the preset time period, the processor determines that no hanging clothes exist on the clothes hanger at the moment, sends a judgment result to the control module, and the control module generates a control instruction to automatically control the circulation fan to be closed so as to reduce the energy consumption of the circulation fan. The preset time period may be preset by a user or may be set by a developer.
For example, if the preset time period is ten minutes, the depth camera continuously collects the current depth image and sends the collected depth image to the processor, and if the processor does not detect that the depth image comprises hung clothes in the continuous ten minutes, the circulation fan is controlled to be automatically turned off.
According to the control method of the circulation fan, the depth image which is acquired by the depth camera and comprises the hung clothes is obtained, the blowing distance of the circulation fan in the first direction is determined according to the depth information in the depth image, then the outline recognition is carried out on the depth image, the boundary coordinate of the hung clothes is obtained, the deflection distance of the circulation fan in the second direction is calculated according to the boundary coordinate and the blowing distance, and finally the left and right deflection angle intervals and the up and down deflection angle intervals of the circulation fan are calculated according to the blowing distance and the deflection distance, so that the air supply range of the circulation fan is adjusted. The depth image of putting the clothing including hanging is shot to the degree of depth camera that sets up through the circulation fan, confirms to hang width and space length between the unloading of putting the clothing according to the depth image to confirm circulation fan air supply scope, improved the convenience of control and the precision of circulation fan scope of blowing to the circulation fan.
Referring to fig. 10, fig. 10 is a schematic block diagram of a structure of a circulation fan according to an embodiment of the present application. The circulation fan 100 includes a circulation fan body 110, a depth camera 120, a processor 132, and a memory 140. The depth camera 120, the processor 132, and the memory 140 are connected via a bus, such as an I2C (Inter-integrated Circuit) bus.
The Processor may be a Micro-controller Unit (MCU), a Central Processing Unit (CPU), a Digital Signal Processor (DSP), or the like.
Specifically, the Memory 140 may be a Flash chip, a Read-Only Memory (ROM) magnetic disk, an optical disk, a usb disk, or a removable hard disk.
Wherein the processor is configured to run a computer program stored in the memory and to implement the following steps when executing the computer program:
acquiring a depth image which is acquired by the depth camera and comprises hung clothes, wherein the depth image comprises depth information;
determining the blowing distance of the circulating fan in the first direction according to the depth information;
carrying out contour recognition on the depth image to obtain boundary coordinates of the hung clothes;
calculating a deflection distance of the circulating fan in a second direction according to the boundary coordinate and the blowing distance;
and calculating a left deflection angle interval and a right deflection angle interval of the circulating fan according to the blowing distance and the deflection distance so as to adjust the air supply range of the circulating fan according to the left deflection angle interval and the right deflection angle interval.
In some embodiments, the processor, after implementing the calculating the left and right deflection angle sections of the circulation fan from the blowing distance and the deflection distance, is further configured to implement:
and calculating the vertical deflection angle interval of the circulating fan in the third direction according to the boundary coordinate and the blowing distance.
In some embodiments, when the processor is configured to calculate the up-down deflection angle interval of the circulation fan in the third direction according to the boundary coordinate and the blowing distance, the processor is specifically configured to:
screening the boundary coordinates to obtain an upper boundary coordinate and a lower boundary coordinate;
calculating an upper deflection included angle between the hung clothes and the circulating fan according to the upper boundary coordinate and the blowing distance by using an inverse trigonometric function formula;
calculating a lower deflection included angle between the hung clothes and the circulating fan according to the lower boundary coordinate and the blowing distance by using an inverse trigonometric function formula;
and determining the upper deflection angle interval and the lower deflection angle interval of the circulating fan based on the upper deflection included angle and the lower deflection included angle.
In some embodiments, the processor, when implementing that the deflection distance includes a left deflection distance and a right deflection distance, and the calculating the deflection distance of the circulation fan in the second direction from the boundary coordinate and the blowing distance, implements:
screening the boundary coordinates to obtain left boundary coordinates and right boundary coordinates;
determining a center line of the depth image, and calculating a left image distance between a left boundary coordinate and the center line, and a right image distance between a right boundary coordinate and the center line;
and calculating the left deflection distance and the right deflection distance of the circulating fan in the second direction according to the left image distance and the right image distance, the focal length of the camera and the blowing distance respectively.
In some embodiments, the processor, when implementing the calculating the left deflection distance and the right deflection distance of the circulation fan in the second direction according to the left image distance and the right image distance, the focal length of the camera, and the blowing distance, specifically implements:
calculating a deflection distance of the user in a deflection direction with respect to the circulation fan according to a deflection distance calculation formula, wherein the deflection distance calculation formula is as follows:
Figure BDA0002477294280000141
wherein, WiIndicating left or right yaw distance, F indicating air blowing distance, F indicating focal length of camera, xiRepresenting either the left image distance or the right image distance.
In some embodiments, the processor, when implementing the calculating of the left and right deflection angle sections of the circulation fan according to the blowing distance and the deflection distance, specifically implements:
calculating a left deflection included angle between the hung clothes and the circulating fan according to the blowing distance and the left deflection distance by using an inverse trigonometric function formula;
calculating a right deflection included angle between the hung clothes and the circulating fan according to the blowing distance and the right deflection distance by using an inverse trigonometric function formula;
and determining a left deflection angle interval and a right deflection angle interval of the circulating fan based on the left deflection included angle and the right deflection included angle.
In some embodiments, when the processor determines the left-right deflection angle interval of the circulation fan based on the left deflection included angle and the right deflection included angle, the processor specifically implements:
determining the position of the hung clothes in the depth image according to the left boundary coordinate, the right boundary coordinate and the central line;
determining the left and right deflection directions of the circulating fan according to the position of the hung clothes in the depth image;
and determining a left deflection angle interval and a right deflection angle interval of the circulating fan according to the left deflection direction, the right deflection direction, the left deflection included angle and the right deflection included angle.
In some embodiments, the processor is further configured to:
acquiring a plurality of frames of depth images continuously acquired by the depth camera;
and if the plurality of frames of depth images do not contain the hung clothes within a preset time period, closing the circulating fan.
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 the processor executes the program instructions to realize any cycle fan control method provided by the embodiment of the application.
The computer-readable storage medium may be an internal storage unit of the circulation fan described in the foregoing embodiment, for example, a hard disk or a memory of the circulation fan. The computer-readable storage medium may also be an external storage device of the circulation fan, such as a plug-in hard disk provided on the circulation fan, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions 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.

Claims (10)

1. A control method of a circulation fan is characterized in that a depth camera is arranged on the circulation fan, and the method comprises the following steps:
acquiring a depth image which is acquired by the depth camera and comprises hung clothes, wherein the depth image comprises depth information;
determining the blowing distance of the circulating fan in the first direction according to the depth information;
carrying out contour recognition on the depth image to obtain boundary coordinates of the hung clothes;
calculating a deflection distance of the circulating fan in a second direction according to the boundary coordinate and the blowing distance;
and calculating a left deflection angle interval and a right deflection angle interval of the circulating fan according to the blowing distance and the deflection distance so as to adjust the air supply range of the circulating fan according to the left deflection angle interval and the right deflection angle interval.
2. The circulating fan control method according to claim 1, further comprising, after the calculating a left-right deflection angle section of the circulating fan from the blowing distance and the deflection distance:
and calculating the vertical deflection angle interval of the circulating fan in the third direction according to the boundary coordinate and the blowing distance.
3. The circulating fan control method according to claim 2, wherein the calculating of the up-down deflection angle section of the circulating fan in the third direction from the boundary coordinates and the blowing distance includes:
screening the boundary coordinates to obtain an upper boundary coordinate and a lower boundary coordinate;
calculating an upper deflection included angle between the hung clothes and the circulating fan according to the upper boundary coordinate and the blowing distance by using an inverse trigonometric function formula;
calculating a lower deflection included angle between the hung clothes and the circulating fan according to the lower boundary coordinate and the blowing distance by using an inverse trigonometric function formula;
and determining the upper deflection angle interval and the lower deflection angle interval of the circulating fan based on the upper deflection included angle and the lower deflection included angle.
4. The circulation fan control method according to claim 1, wherein the deflection distance includes a left deflection distance and a right deflection distance, and the calculating the deflection distance of the circulation fan in the second direction from the boundary coordinates and the blowing distance includes:
screening the boundary coordinates to obtain left boundary coordinates and right boundary coordinates;
determining a center line of the depth image, and calculating a left image distance between a left boundary coordinate and the center line, and a right image distance between a right boundary coordinate and the center line;
and calculating the left deflection distance and the right deflection distance of the circulating fan in the second direction according to the left image distance and the right image distance, the focal length of the camera and the blowing distance respectively.
5. The circulation fan control method according to claim 4, wherein the calculating of the left and right deflection distances of the circulation fan in the second direction from the left and right image distances, the focal length of the camera, and the blowing distance, respectively, comprises:
calculating a deflection distance of the user in a deflection direction with respect to the circulation fan according to a deflection distance calculation formula, wherein the deflection distance calculation formula is as follows:
Figure FDA0002477294270000021
wherein, WiIndicating left or right yaw distance, F indicating air blowing distance, F indicating focal length of camera, xiRepresenting either the left image distance or the right image distance.
6. The circulating fan control method according to claim 4, wherein the calculating a left-right deflection angle section of the circulating fan from the blowing distance and the deflection distance includes:
calculating a left deflection included angle between the hung clothes and the circulating fan according to the blowing distance and the left deflection distance by using an inverse trigonometric function formula;
calculating a right deflection included angle between the hung clothes and the circulating fan according to the blowing distance and the right deflection distance by using an inverse trigonometric function formula;
and determining a left deflection angle interval and a right deflection angle interval of the circulating fan based on the left deflection included angle and the right deflection included angle.
7. The circulating fan control method according to claim 6, wherein determining a left-right deflection angle section of the circulating fan based on the left deflection angle and the right deflection angle comprises:
determining the position of the hung clothes in the depth image according to the left boundary coordinate, the right boundary coordinate and the central line;
determining the left and right deflection directions of the circulating fan according to the position of the hung clothes in the depth image;
and determining a left deflection angle interval and a right deflection angle interval of the circulating fan according to the left deflection direction, the right deflection direction, the left deflection included angle and the right deflection included angle.
8. The circulation fan control method according to claim 1, characterized by further comprising:
acquiring a plurality of frames of depth images continuously acquired by the depth camera;
and if the plurality of frames of depth images do not contain the hung clothes within a preset time period, closing the circulating fan.
9. A circulation fan, comprising a depth camera, a memory, and a processor;
the camera is used for collecting a depth image including clothes hung on the camera;
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 8 when executing the computer program.
10. 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 8.
CN202010368398.XA 2020-04-30 2020-04-30 Circulating fan control method, circulating fan and storage medium Pending CN113584850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010368398.XA CN113584850A (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
CN202010368398.XA CN113584850A (en) 2020-04-30 2020-04-30 Circulating fan control method, circulating fan and storage medium

Publications (1)

Publication Number Publication Date
CN113584850A true CN113584850A (en) 2021-11-02

Family

ID=78237832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010368398.XA Pending CN113584850A (en) 2020-04-30 2020-04-30 Circulating fan control method, circulating fan and storage medium

Country Status (1)

Country Link
CN (1) CN113584850A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103375872A (en) * 2012-04-16 2013-10-30 珠海格力电器股份有限公司 Control method for running state of air conditioning equipment and air conditioning equipment
JP5658836B1 (en) * 2014-01-18 2015-01-28 アイリスオーヤマ株式会社 Fan
CN104456825A (en) * 2013-09-18 2015-03-25 珠海格力电器股份有限公司 Air supply control method and device for air conditioning area
CN107906694A (en) * 2017-09-30 2018-04-13 珠海格力电器股份有限公司 Air conditioner control device and method, computer readable storage medium and air conditioner
CN108914511A (en) * 2018-05-21 2018-11-30 珠海格力电器股份有限公司 dehumidifying device
CN109654657A (en) * 2018-12-11 2019-04-19 美的集团武汉制冷设备有限公司 Control method, air conditioner, controlling terminal and the storage medium of air conditioner air-supply
CN109654676A (en) * 2018-12-18 2019-04-19 广东省电信规划设计院有限公司 Adjusting method, device, system, computer equipment and the storage medium of air supply device
CN110488876A (en) * 2019-08-20 2019-11-22 斯威方德(深圳)智能科技有限公司 Method, apparatus, storage medium and the computer equipment of feeding pet
CN111022359A (en) * 2018-10-10 2020-04-17 爱丽思欧雅玛株式会社 Air blower

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103375872A (en) * 2012-04-16 2013-10-30 珠海格力电器股份有限公司 Control method for running state of air conditioning equipment and air conditioning equipment
CN104456825A (en) * 2013-09-18 2015-03-25 珠海格力电器股份有限公司 Air supply control method and device for air conditioning area
JP5658836B1 (en) * 2014-01-18 2015-01-28 アイリスオーヤマ株式会社 Fan
CN107906694A (en) * 2017-09-30 2018-04-13 珠海格力电器股份有限公司 Air conditioner control device and method, computer readable storage medium and air conditioner
CN108914511A (en) * 2018-05-21 2018-11-30 珠海格力电器股份有限公司 dehumidifying device
CN111022359A (en) * 2018-10-10 2020-04-17 爱丽思欧雅玛株式会社 Air blower
CN109654657A (en) * 2018-12-11 2019-04-19 美的集团武汉制冷设备有限公司 Control method, air conditioner, controlling terminal and the storage medium of air conditioner air-supply
CN109654676A (en) * 2018-12-18 2019-04-19 广东省电信规划设计院有限公司 Adjusting method, device, system, computer equipment and the storage medium of air supply device
CN110488876A (en) * 2019-08-20 2019-11-22 斯威方德(深圳)智能科技有限公司 Method, apparatus, storage medium and the computer equipment of feeding pet

Similar Documents

Publication Publication Date Title
US11450146B2 (en) Gesture recognition method, apparatus, and device
JP5675229B2 (en) Image processing apparatus and image processing method
CN105740780B (en) Method and device for detecting living human face
US9471829B2 (en) Method of facial landmark detection
Ma et al. Two graph theory based methods for identifying the pectoral muscle in mammograms
KR101198322B1 (en) Method and system for recognizing facial expressions
CN109654676B (en) Adjusting method, device and system of air supply device, computer equipment and storage medium
CN107871319B (en) Method and device for detecting beam limiter area, X-ray system and storage medium
CN113091227B (en) Air conditioner control method, cloud server, air conditioner control system and storage medium
CN113584843B (en) Circulating fan control method, circulating fan and storage medium
KR20130134163A (en) Apparatus and method for extracting target, and the recording media storing the program for performing the said method
CN112949347B (en) Fan adjusting method based on human body posture, fan and storage medium
CN110936920A (en) Vehicle trunk opening method and device, vehicle and storage medium
US20130329964A1 (en) Image-processing device and image-processing program
JP2011253354A (en) Image processing apparatus, method and program
JP2010262576A (en) Subject detecting apparatus and program
CN112990140B (en) Gesture contour extraction method and device, readable storage medium and electronic equipment
CN113584850A (en) Circulating fan control method, circulating fan and storage medium
CN113093812A (en) Clothes hanger control method, clothes hanger system and storage medium
CN112696372A (en) Fan adjusting method, fan and storage medium
JP6132485B2 (en) Image processing apparatus, operation method of image processing apparatus, and image processing program
CN113668201B (en) Circulating fan control method, circulating fan control system and storage medium
JP2016004382A (en) Motion information estimation device
Bajger et al. Minimum spanning trees and active contours for identification of the pectoral muscle in screening mammograms
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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211102

RJ01 Rejection of invention patent application after publication