Circulating fan control method, circulating fan control system and storage medium

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

阅读说明:本技术 循环扇控制方法、循环扇、循环扇控制系统及存储介质 (Circulating fan control method, circulating fan control system and storage medium ) 是由 陈小平 唐清生 于 2020-04-30 设计创作,主要内容包括:本申请涉及智能家居领域,具体公开了一种循环扇控制方法、循环扇、循环扇控制系统及存储介质,所述方法包括:获取晾衣架的实际宽度和所述摄像头采集的包括所述晾衣架的图像;对所述图像进行轮廓提取,以得到所述晾衣架的边界坐标;根据所述边界坐标和所述实际宽度确定所述循环扇在第一方向上的吹风距离;根据所述吹风距离和所述边界坐标计算所述循环扇在第二方向上的偏转距离;根据所述吹风距离和所述偏转距离计算所述循环扇的左右偏转角度区间,以根据所述左右偏转角度区间调节所述循环扇的送风范围。使循环扇能够根据晾衣架的位置自动调整送风范围。(The application relates to the field of smart home, and particularly discloses a circulating fan control method, a circulating fan control system and a storage medium, wherein the method comprises the following steps: acquiring the actual width of a clothes hanger and an image which is acquired by the camera and comprises the clothes hanger; extracting the outline of the image to obtain a boundary coordinate of the clothes hanger; determining the blowing distance of the circulating fan in the first direction according to the boundary coordinates and the actual width; calculating a deflection distance of the circulating fan in a second direction according to the blowing distance and the boundary coordinates; 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. The air supply range of the circulating fan can be automatically adjusted according to the position of the clothes hanger.)

1. A control method of a circulation fan is characterized in that a camera is arranged on the circulation fan, and the method comprises the following steps:

acquiring the actual width of a clothes hanger and an image which is acquired by the camera and comprises the clothes hanger;

extracting the outline of the image to obtain a boundary coordinate of the clothes hanger;

determining the blowing distance of the circulating fan in the first direction according to the boundary coordinates and the actual width;

calculating a deflection distance of the circulating fan in a second direction according to the blowing distance and the boundary coordinates;

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:

acquiring the initial height and the adjusted height of the clothes hanger to calculate the current height of the clothes hanger;

and calculating the vertical deflection angle of the circulating fan in the third direction according to the current height and the blowing distance.

3. The circulating fan control method according to claim 2, wherein the calculating of the vertical deflection angle of the circulating fan in the third direction from the current height and the blowing distance includes:

and calculating the vertical deflection angle of the circulating fan and the clothes hanger in the third direction according to the current height and the blowing distance by using an inverse trigonometric function formula.

4. The circulating fan control method according to claim 1 or 2, wherein the boundary coordinates include a left boundary coordinate and a right boundary coordinate, and the determining the blowing distance of the circulating fan in the first direction from the boundary coordinates and the actual width includes:

calculating the pixel width of the clothes hanger according to the left boundary coordinate and the right boundary coordinate;

and determining the blowing distance of the circulating fan in the first direction according to the pixel width and the actual width based on a distance calculation formula.

5. The circulation fan control method according to claim 4, wherein the distance calculation formula is as follows:

where F denotes an air blowing distance, W denotes an actual width, F denotes a focal length of the camera, and x denotes a pixel width.

6. The circulation fan control method according to claim 1 or 2, wherein the deflection distance includes a left deflection distance and a right deflection distance, the boundary coordinates include a left boundary coordinate and a right boundary coordinate, and the calculating the deflection distance of the circulation fan in the second direction from the blowing distance and the boundary coordinates includes:

acquiring a reference line of the image, and calculating the left boundary coordinate and the left pixel width of the reference line, and the right boundary coordinate and the right pixel width of the reference line;

and calculating a left deflection distance and a right deflection distance of the circulating fan in the second direction according to the left pixel width and the right pixel width, the focal length of the camera and the blowing distance respectively, and taking the left deflection distance and the right deflection distance as the deflection distance of the circulating fan in the second direction.

7. The circulation fan control method according to claim 6, wherein the calculating a left-right deflection angle section of the circulation fan from the blowing distance and the deflection distance includes:

calculating a left deflection included angle between the clothes hanger 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 clothes hanger 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.

8. The circulating fan control method according to claim 7, 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 clothes hanger in the image according to the left boundary coordinate, the right boundary coordinate and the datum line;

determining the left and right deflection directions of the circulating fan according to the position of the clothes hanger in the 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.

9. A circulation fan, comprising a depth camera, a memory, and a processor;

the camera is used for collecting images including the clothes hanger;

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 control system of a circulating fan is characterized by comprising the circulating fan and a clothes hanger;

the clothes hanger is used for collecting descending height and sending the descending height to the circulating fan;

the circulation fan is configured to receive the drop height and implement the circulation fan control method according to any one of claims 1 to 8.

11. 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.

Technical Field

The application relates to the field of smart home, in particular to a circulating fan control method, a circulating fan control system 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 the clothes hanger, the operation is complex, and the use experience of the user is reduced.

Therefore, how to automatically adjust the air supply range of the circulating fan according to the position of the clothes hanger becomes a problem to be solved urgently.

Disclosure of Invention

The application provides a circulating fan control method, a circulating fan control system and a storage medium, so that the circulating fan can automatically adjust the air supply range according to the position of a clothes hanger.

In a first aspect, the present application provides a method for controlling a circulation fan, where a camera is disposed on the circulation fan, and the method includes:

acquiring the actual width of a clothes hanger and an image which is acquired by the camera and comprises the clothes hanger;

extracting the outline of the image to obtain a boundary coordinate of the clothes hanger;

determining the blowing distance of the circulating fan in the first direction according to the boundary coordinates and the actual width;

calculating a deflection distance of the circulating fan in a second direction according to the blowing distance and the boundary coordinates;

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 images including the clothes hanger;

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 as described above when executing the computer program.

In a third aspect, the application also provides a circulating fan control system, which is characterized by comprising a circulating fan and a clothes hanger;

the clothes hanger is used for collecting descending height and sending the descending height to the circulating fan;

the circulation fan is used for receiving the descending height and implementing the circulation fan control method.

In a fourth 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, a control system of the circulating fan and a storage medium, wherein the boundary coordinates of a clothes hanger are obtained by acquiring the actual width of the clothes hanger and an image which is acquired by a camera and comprises the clothes hanger and then carrying out contour extraction on the image; and determining the blowing distance of the circulating fan in the first direction according to the boundary coordinate of the clothes hanger and the actual width of the clothes hanger, calculating the deflection distance of the circulating fan in the second direction according to the blowing distance and the boundary coordinate, and finally calculating a left-right deflection angle interval of the circulating fan according to the deflection distance and the blowing distance so as to adjust the air supply range of the circulating fan according to the left-right deflection angle interval. The image comprising the clothes hanger is shot, the position relation between the area where the clothes hanger is located and the circulating fan is determined according to the image, the left and right deflection angle interval of the circulating fan is further determined, the air supply range of the circulating fan is determined, and the convenience of controlling the circulating fan and the accuracy of the air blowing range of the circulating fan are improved.

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 structural diagram of a circulation fan control system according to an embodiment of the present disclosure;

FIG. 2 is a schematic block diagram of a circulation fan provided by an embodiment of the present application;

FIG. 3 is a schematic flow chart of a method for controlling a circulation fan according to an embodiment of the present disclosure;

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 flow chart for determining a blowing distance of a circulation fan in a first direction according to an embodiment of the present application;

fig. 6 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. 7 is a schematic flow chart of calculating a deflection distance of the circulation fan in a second direction according to an embodiment of the present application;

fig. 8 is a schematic flowchart of calculating a left-right deflection angle section of the circulation fan based on the blowing distance and the deflection distance according to the embodiment of the present application;

FIG. 9 is a flow diagram illustrating sub-steps provided in FIG. 8 for calculating a left-right deflection angle interval of the circulation fan based on the blowing distance and the deflection distance;

fig. 10 is a schematic step diagram of another method for controlling 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.

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 structural diagram of a circulation fan control system according to an embodiment of the present disclosure. The circulation fan control system 100 includes a circulation fan 10 and a laundry rack 20, and the circulation fan 10 is in communication with the laundry rack 20 so that the circulation fan 10 adjusts the air supply range of the circulation fan 10 according to information transmitted from the laundry rack 20.

In some embodiments, the laundry stand 20 sends the descending height of the laundry stand 20 to the circulation fan 10, and the circulation fan 10 calculates the vertical deflection angle of the circulation fan 10 in the third direction according to the descending height to adjust the blowing range of the circulation fan 10.

It should be noted that in the embodiment of the present application, the head of the circulating fan 10 may swing in a certain direction, such as in a horizontal direction, and/or in a vertical direction, wherein the swing may be implemented 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 with each other.

It is understood that, in the embodiment of the present application, a combination of swinging in the horizontal direction and swinging in the vertical direction may be adopted at the same time, so that the circulation fan 10 has more swinging blowing modes, i.e., more directional blowing modes may be realized.

Specifically, a camera and a communication module are arranged in the circulating fan 10, and the camera may be, for example, a common camera, a depth camera, a dual camera, or the like; the communication module is used for performing communication connection with the laundry rack 20, such as a bluetooth module, a Wi-Fi module, an LTE module, an NB-IoT module, a LoRa module, and the like.

The circulation fan 10 and the laundry rack 20 are used in cooperation to execute the control method of the circulation fan provided by the embodiment of the application, so as to control the air supply range of the circulation fan.

In some embodiments, the circulation fan control method may also be applied in a terminal device so that a user can control the blowing range of the circulation fan by means of the terminal device.

Specifically, an application program (APP) may be installed in the terminal device, so that the user can use the APP to implement control of the loop fan.

The terminal equipment comprises electronic equipment such as a smart phone, a tablet personal computer, a personal computer or wearable equipment.

Illustratively, the circulating fan is used for acquiring the actual width of a clothes hanger and the image collected by the camera and comprising the clothes hanger; extracting the outline of the image to obtain a boundary coordinate of the clothes hanger; determining the blowing distance of the circulating fan in the first direction according to the boundary coordinates and the actual width; calculating a deflection distance of the circulating fan in a second direction according to the blowing distance and the boundary coordinates; 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. Therefore, the circulating fan can blow according to the space range of the clothes hanger, the blowing accuracy of the circulating fan to a specific area is improved, and the control of a user is convenient and fast, and the user experience is improved.

Referring to fig. 2, fig. 2 is a schematic block diagram of a circulation fan according to an embodiment of the present disclosure. The circulation fan 10 includes a camera 11, a processor 12, and a memory 13, wherein the camera 11, the processor 12, and the memory 13 are connected by a bus.

The memory 13 may include a nonvolatile storage medium and an internal memory, among others.

The non-volatile storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any of the loop fan control methods.

The camera 11 is used for collecting images, and in the embodiment of the present application, is mainly used for collecting images including the clothes hanger in the blowing range of the circulating fan.

The processor 12 is used to provide computing and control capabilities to support the operation of the overall terminal device.

The internal memory provides an environment for running a computer program in the nonvolatile storage medium, and the computer program, when executed by the processor, causes the processor to execute any one of the loop fan control methods.

It is to be understood that the structure shown in fig. 2 is a block diagram of only a part of the structure related to the present application, and does not constitute a limitation of the circulation fan to which the present application is applied, and a specific circulation fan may include more or less components than those shown in the drawings, or combine some components, or have a different arrangement of components.

It should be understood that Processor 12 may be a Central Processing Unit (CPU), and that the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

Wherein, in one embodiment, the processor is configured to execute a computer program stored in the memory to implement the steps of:

acquiring the actual width of a clothes hanger and an image which is acquired by the camera and comprises the clothes hanger;

extracting the outline of the image to obtain a boundary coordinate of the clothes hanger;

determining the blowing distance of the circulating fan in the first direction according to the boundary coordinates and the actual width;

calculating a deflection distance of the circulating fan in a second direction according to the blowing distance and the boundary coordinates;

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:

acquiring the initial height and the adjusted height of the clothes hanger to calculate the current height of the clothes hanger;

and calculating the vertical deflection angle of the circulating fan in the third direction according to the current height and the blowing distance.

In some embodiments, the processor, in implementing the calculating of the up-down deflection angle of the circulation fan in the third direction from the current height and the blowing distance, is configured to implement:

and calculating the vertical deflection angle of the circulating fan and the clothes hanger in the third direction according to the current height and the blowing distance by using an inverse trigonometric function formula.

In some embodiments, the boundary coordinates include a left boundary coordinate and a right boundary coordinate, and the processor, when implementing the determining of the blowing distance of the circulation fan in the first direction from the boundary coordinates and the actual width, is configured to implement:

calculating the pixel width of the clothes hanger according to the left boundary coordinate and the right boundary coordinate;

and determining the blowing distance of the circulating fan in the first direction according to the pixel width and the actual width based on a distance calculation formula.

In some embodiments, the distance calculation formula is as follows:

where F denotes an air blowing distance, W denotes an actual width, F denotes a focal length of the camera, and x denotes a pixel width.

In some embodiments, the yaw distance comprises a left yaw distance and a right yaw distance, the boundary coordinates comprise a left boundary coordinate and a right boundary coordinate, and the processor, in performing the calculating the yaw distance of the circulation fan in the second direction from the blowing distance and the boundary coordinates, is configured to perform:

acquiring a reference line of the image, and calculating the left boundary coordinate and the left pixel width of the reference line, and the right boundary coordinate and the right pixel width of the reference line;

and calculating a left deflection distance and a right deflection distance of the circulating fan in the second direction according to the left pixel width and the right pixel width, the focal length of the camera and the blowing distance respectively, and taking the left deflection distance and the right deflection distance as the deflection distance of the circulating fan in the second direction.

In some embodiments, the processor, in implementing the calculating of the left and right deflection angle sections of the circulation fan from the blowing distance and the deflection distance, is configured to implement:

calculating a left deflection included angle between the clothes hanger 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 clothes hanger 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, the processor, in implementing the determining the left-right deflection angle interval of the circulation fan based on the left deflection angle and the right deflection angle, is configured to implement:

determining the position of the clothes hanger in the image according to the left boundary coordinate, the right boundary coordinate and the datum line;

determining the left and right deflection directions of the circulating fan according to the position of the clothes hanger in the 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.

For ease of understanding, the circulation fan control method provided by the embodiment of the present application will be described in detail below with reference to the circulation fan control system in fig. 1 and the circulation fan in fig. 2. It should be noted that the above-mentioned circulation fan control system and circulation fan do not constitute a limitation on the application scenario of the circulation fan control method provided in the embodiment of the present application.

Referring to fig. 3, fig. 3 is a schematic flow chart of a method for controlling a circulation fan according to an embodiment of the present disclosure. According to the control method of the circulating fan, the left and right deflection angle intervals of the circulating fan can be calculated through analysis of the image including the clothes hanger, so that the air supply range of the circulating fan is adjusted, the circulating fan can better blow air for the area where the clothes hanger is located, and the control accuracy and convenience of the circulating fan are improved.

As shown in fig. 3, the method for controlling the circulation fan specifically includes: step S201 to step S205.

Step S201, acquiring the actual width of the clothes hanger and the image of the clothes hanger collected by the camera.

Specifically, the circulating fan controls a camera installed on the circulating fan to be opened, collects images including clothes hangers in the air blowing range of the circulating fan, and sends the collected images including the clothes hangers to the processor, so that the processor can further process the images.

In addition, the circulating fan can also acquire the actual width of the clothes hanger, in the specific implementation process, when the actual width of the clothes hanger is acquired, the actual width of the clothes hanger can be acquired through manual input of a user, and the clothes hanger can also be networked with the clothes hanger, so that the clothes hanger sends the width information to the circulating fan.

In some embodiments, to reduce the power consumption of the camera on the circulation fan, the camera may be controlled to be turned on every preset period, for example, every 6 hours. And after the system is started, acquiring images near the clothes hanger, and performing image recognition on the acquired images 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, continuing to acquire the images including the hung clothes, and if the clothes are not hung on the clothes hanger, closing the camera.

It should be noted that, for convenience of description, the camera mounted on the circulation fan in the present application is acquired when the circulation fan is at an initial position, that is, when the deflection angle of the fan head of the circulation fan is 0, when acquiring an image including the laundry rack.

S202, carrying out contour extraction on the image to obtain boundary coordinates of the clothes hanger.

Specifically, the image comprising the clothes hanger 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 clothes hanger in the image. And determining the boundary coordinates of the clothes hanger according to the image contour, wherein the boundary coordinates can be a plurality of.

It should be noted that, for convenience of description, in the present application, a coordinate system of coordinates in the acquired image of the clothes hanger is a coordinate system established with a position of the camera on the circulating fan as an origin.

S203, determining the blowing distance of the circulating fan in the first direction according to the boundary coordinate and the actual width.

The first direction refers to the first direction of the circulating fan relative to the clothes hanger, the first direction can be horizontal and longitudinal, and the blowing distance refers to the distance between the clothes hanger and the circulating fan in the horizontal and longitudinal direction. As shown in fig. 4, F denotes an air blowing distance. And calculating the blowing distance of the circulating fan in the first direction according to the boundary coordinates of the clothes hanger and the actual width of the clothes hanger.

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.

In some embodiments, the boundary coordinates include left and right boundary coordinates. Referring to fig. 5, determining the blowing distance of the circulation fan in the first direction specifically includes step S2031 and step S2032.

S2031, calculating the pixel width of the clothes hanger according to the left boundary coordinate and the right boundary coordinate.

Specifically, the coordinate system where the boundary coordinates of the clothes hanger are located is a coordinate system established with the position where the camera on the circulating fan is located as the origin, so that when the pixel width of the clothes hanger is calculated, the difference between the abscissa of the right boundary coordinate and the abscissa of the left boundary coordinate can be calculated, and the difference is used as the pixel width of the clothes hanger.

For example, if the left boundary coordinate of the laundry rack is (-20,40) and the right boundary coordinate is (60,40), the pixel width of the laundry rack is 60- (-20) ═ 80.

S2032, based on a distance calculation formula, determining the blowing distance of the circulation fan in the first direction according to the pixel width and the actual width.

Specifically, after the pixel width of the clothes hanger in the image is calculated, the blowing distance of the circulating fan in the first direction can be determined according to the pixel width and the actual width.

The distance calculation formula may be:

where F denotes an air blowing distance, W denotes an actual width, F denotes a focal length of the camera, and x denotes a pixel width.

And S204, calculating the deflection distance of the circulating fan in the second direction according to the blowing distance and the boundary coordinates.

Specifically, the second direction is a second direction of the circulating fan relative to the clothes hanger, and after the boundary coordinates are obtained, the deflection distance of the circulating 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 with respect to the drying rack may also be a distance between the drying rack and the head of the circulation fan in the horizontal direction, as shown in fig. 6, W represents the deflection distance.

In some embodiments, the deflection distance includes a left deflection distance and a right deflection distance, and the boundary coordinates include a left boundary coordinate and a right boundary coordinate, please refer to fig. 7, and the calculating the deflection distance of the circulation fan in the second direction specifically includes step S2041 and step S2042.

S2041, acquiring a reference line of the image, and calculating the left boundary coordinate and the left pixel width of the reference line, and the right boundary coordinate and the right pixel width of the reference line.

The reference line refers to the position of a plane where the camera installed on the circulating fan is located in the coordinate system.

In the calculation of the left pixel width, the abscissa in the left boundary coordinate and the abscissa of the reference line may be subtracted, and the absolute value of the difference may be used as the left pixel width.

For example, the left boundary coordinate is (-20,40), the right boundary coordinate is (60,40), the centerline is x-25, the left pixel width is | -20-25| -45, and the right pixel width is |60-25| -35.

S2042, calculating a left deflection distance and a right deflection distance of the circulating fan in the second direction according to the left pixel width and the right pixel width, the focal length of the camera and the blowing distance respectively, and taking the left deflection distance and the right deflection distance as the deflection distances of the circulating fan in the second direction.

Specifically, after the left pixel width and the right pixel width are calculated, the left deflection distance and the right deflection distance of the laundry rack in the second direction relative to the circulating fan can be respectively calculated according to the deflection distance calculation formula.

Wherein, the calculation formula of the deflection distance is as follows:

wherein, WiIndicating left or right yaw distance, F indicating air blowing distance, F indicating focal length of camera, xiRepresenting either the left pixel width or the right pixel width.

When x in the formula is the left pixel width, the left deflection distance is calculated, and when x in the formula is the right pixel width, the right deflection distance is calculated.

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. 8, 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 blowing distance and the left deflection distance are known, the degree of the included angle A between the clothes hanger and the circulating fan can be calculated by using an inverse trigonometric function, and the calculated degree of the included angle A is used as the left deflection angle of the circulating fan. Specifically, the included angle a is in degrees:

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 clothes hanger and the circulating fan can be calculated by using an 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:

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. 9, the step S2053 further includes the steps of:

s2053a, determining the position of the clothes hanger in the image according to the left boundary coordinate, the right boundary coordinate and the reference line.

Specifically, the position of the clothes hanger in the image is determined according to the left boundary coordinate, the right boundary coordinate and the reference line of the clothes hanger, and the position of the clothes hanger in the image is also the position of the clothes hanger relative to the circulating fan.

The positions of the clothes hangers relative to the circulating fan can be that the clothes hangers are all on the left side of the circulating fan, the clothes hangers are all on the right side of the circulating fan, and the clothes hangers are partially on the left side of the circulating fan and partially on the right side of the circulating fan.

And S2053b, determining the left and right deflection directions of the circulating fan according to the positions of the clothes hangers in the images.

Specifically, if the left boundary coordinate and the right boundary coordinate of the laundry rack are both on the same side of the reference line, that is, the laundry racks are all on the left side of the circulating fan or the laundry racks are all on the right side of the circulating fan.

If the left boundary coordinate and the right boundary coordinate of the clothes hanger are respectively arranged on two sides of the central line, part of the clothes hung on the left side of the circulating fan and part of the clothes hung on the right side of the circulating fan.

When the clothes hanger is completely arranged on the left side of the circulating fan, the left-right deflection direction of the circulating fan is the left-side deflection always at the initial position of the circulating fan.

When the clothes hanger is completely arranged 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 clothes hanger is partially arranged on the left side of the circulating fan and partially arranged on the right side of the circulating fan, the left and right deflection directions of the circulating fan are firstly deflected on the left side of the initial position of the circulating fan and then deflected on the right side of the initial position of the circulating fan; 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 the clothes drying rack is 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 the clothes drying rack is completely arranged 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 and right deflection angle interval of the circulating fan is 15-70 degrees.

When the clothes hanger is partially arranged on the left side of the circulating fan and partially arranged on 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 and right deflection angle interval of the circulating fan is-15-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.

According to the control method of the circulating fan provided by the embodiment, the boundary coordinates of the clothes hanger are obtained by acquiring the actual width of the clothes hanger and the image which is acquired by the camera and comprises the clothes hanger and then carrying out contour extraction on the image; and determining the blowing distance of the circulating fan in the first direction according to the boundary coordinate of the clothes hanger and the actual width of the clothes hanger, calculating the deflection distance of the circulating fan in the second direction according to the blowing distance and the boundary coordinate, and finally calculating a left-right deflection angle interval of the circulating fan according to the deflection distance and the blowing distance so as to adjust the air supply range of the circulating fan according to the left-right deflection angle interval. The image comprising the clothes hanger is shot, the position relation between the area where the clothes hanger is located and the circulating fan is determined according to the image, the left and right deflection angle interval of the circulating fan is further determined, the air supply range of the circulating fan is determined, and the convenience of controlling the circulating fan and the accuracy of the air blowing range of the circulating fan are improved.

Referring to fig. 10, fig. 10 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. 10, the method for controlling the circulation fan specifically includes: step S301 to step S307.

S301, acquiring the actual width of a clothes hanger and an image which is acquired by the camera and comprises the clothes hanger;

s302, carrying out contour extraction on the image to obtain boundary coordinates of the clothes hanger;

s303, determining the blowing distance of the circulating fan in the first direction according to the boundary coordinate and the actual width;

s304, calculating the deflection distance of the circulating fan in the second direction according to the blowing distance and the boundary coordinates;

s305, calculating a left-right deflection angle interval of the circulating fan according to the blowing distance and the deflection distance;

s306, acquiring the initial height and the adjusted height of the clothes hanger to calculate the current height of the clothes hanger;

s307, calculating the vertical deflection angle of the circulating fan in the third direction according to the current height and the blowing distance, and adjusting the air supply range of the circulating fan according to the left-right deflection angle interval and the vertical deflection angle.

In particular, the laundry rack may be a height-adjustable lifting laundry rack, a telescopic laundry rack, or the like. Taking the lifting clothes rack as an example, the initial height of the lifting clothes rack can be known because the lifting clothes rack needs to be installed on the ceiling of a room.

When the user adjusts the height of the clothes hanger, the clothes hanger can record the adjusted height, wherein the adjusted height can be distinguished according to the adjustment direction of the user when recording, for example, if the user controls the clothes hanger to descend for 20cm, the adjusted height can be recorded as-20 cm, and if the user further controls the clothes hanger to ascend for 5cm on the basis of the above, the adjusted height is-20 cm +5 cm-15 cm.

Therefore, the current height of the laundry rack can be calculated from the initial height of the laundry rack and the adjusted height, for example, if the initial height of the laundry rack is 100cm and the adjusted height is-15 cm, the current height of the laundry rack is 100-15-85 cm.

Specifically, the vertical deflection distance of the circulation fan in the third direction may be calculated according to the current height, and then the vertical deflection angle may be calculated according to the vertical deflection distance by using an inverse trigonometric function formula. And adjusting the air supply range of the circulating fan according to the calculated up-down deflection angle and the left-right deflection angle interval.

According to the control method of the circulating fan provided by the embodiment, the boundary coordinates of the clothes hanger are obtained by acquiring the actual width of the clothes hanger and the image which is acquired by the camera and comprises the clothes hanger and then carrying out contour extraction on the image; and then determining the blowing distance of the circulating fan in the first direction according to the boundary coordinate of the clothes hanger and the actual width of the clothes hanger, calculating the deflection distance of the circulating fan in the second direction according to the blowing distance and the boundary coordinate, calculating a left-right deflection angle interval of the circulating fan according to the deflection distance and the blowing distance, simultaneously obtaining the initial height and the adjustment height of the clothes hanger, calculating the current height of the clothes hanger, finally calculating a vertical deflection angle of the circulating fan in the third direction according to the current height and the blowing distance, and adjusting the air supply range of the circulating fan according to the left-right deflection angle interval and the vertical deflection angle. The air supply range area of the circulating fan is determined according to the space width and the space length of the clothes hanger, the air supply range area is determined more accurately, and the accuracy and the control convenience of the air blowing range of the circulating fan are improved.

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 computer device described in 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), and the like provided on the computer device.

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.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:循环扇控制方法、系统、循环扇及计算机可读存储介质

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!