Fan control method and device, equipment and storage medium

By installing a camera on the fan to obtain environmental image information, determine the position of the air supply object and control the shaking head stepping motor, the problem of inaccurate air supply of existing fans is solved, and the precise positioning and dynamic tracking of the air supply object is achieved, improving the accuracy and user experience of air supply.

CN120140260APending Publication Date: 2025-06-13GUANGDONG HOMERIT HLDG LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510493341.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-18
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

Existing fans cannot actively adjust according to the user's position, resulting in insufficient accuracy and comfort of air supply. The perception accuracy of smart fans is limited, making it difficult to accurately locate and dynamic tracking of air supply objects.

Method used

The environmental image information is obtained by a camera fixed to the fan shaking head mechanism, and the position information of the target air supply object is determined based on the image information, and the shaking head stepping motor is controlled to achieve accurate air supply to the target.

Benefits of technology

It realizes accurate positioning and dynamic tracking of air supply objects, improves the accuracy and user experience of air supply, and is suitable for scenarios with a single or multiple target air supply objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120140260A_ABST
    Figure CN120140260A_ABST
Patent Text Reader

Abstract

According to the fan control method and device, the equipment and the storage medium, the environment image information is obtained through the camera fixed to the fan oscillating mechanism, and the position information of the target air supply object is determined according to the environment image information; and according to the position information, a head shaking stepping motor is controlled so that a fan can supply air to the target air supply object. The angle information of the target air supply object in the horizontal direction can be accurately determined by analyzing the image information acquired by the camera, the oscillating stepping motor of the fan is controlled to adjust the air supply direction according to the angle information, and accurate air supply to the target object is achieved. And moreover, the method is not only suitable for a scene with a single target air supply object, but also supports identification, sorting and air supply range adjustment of a plurality of target air supply objects, so that the intelligence and adaptability of the fan are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fan control, and particularly to a control method, device, equipment and storage medium for a fan. Background Art

[0002] Most of the existing fans adopt a fixed angle or periodic head - shaking method for air supply, and cannot actively adjust according to the position of the user, resulting in insufficient accuracy and comfort of air supply. Although some intelligent fans introduce technologies such as infrared sensors or distance sensors, they can often only detect the general direction of the target, and the sensing accuracy is limited, making it difficult to achieve precise positioning and dynamic tracking of the air - supply object.

[0003] In summary, the defects in the existing technology need to be solved urgently. Summary of the Invention

[0004] The present invention provides a control method, device, equipment and storage medium for a fan to solve the defects in the existing technology and achieve precise positioning and dynamic tracking of the air - supply object.

[0005] The present invention provides a control method for a fan, including:

[0006] Obtain environmental image information through a camera, where the environmental image information is an image captured when the fan runs one week at the maximum head - shaking angle, the camera is fixed on the fan head - shaking mechanism, and the visual center of the camera is consistent with the air - outlet direction of the fan;

[0007] Determine the position information of the target air - supply object according to the environmental image information;

[0008] Control the head - shaking stepper motor according to the position information so that the fan supplies air to the target air - supply object.

[0009] According to the control method for a fan provided by the present invention, the step of determining the position information of the target air - supply object according to the environmental image information specifically includes:

[0010] During the head - shaking process of the fan, when the target air - supply object is at the visual center of the camera, determine the first position information of the target air - supply object, and the first position information is the head - shaking angle of the head - shaking stepper motor.

[0011] According to the control method for a fan provided by the present invention, the step of controlling the head - shaking stepper motor according to the position information so that the fan supplies air to the target air - supply object specifically includes:

[0012] When there is a target air supply object, according to the first position information, control the swing stepping motor to supply air to the first position information.

[0013] According to a control method of a fan provided by the present invention, after the step of controlling the swing stepping motor to supply air to the first position when there is a target air supply object, the method further includes:

[0014] When the camera detects that the target air supply object moves, then according to the second position information of the target air supply object, control the swing stepping motor to supply air to the target air supply object.

[0015] According to a control method of a fan provided by the present invention, the step of when the camera detects that the target air supply object moves, then according to the second position information of the target air supply object, control the swing stepping motor to supply air to the target air supply object specifically includes:

[0016] When the camera detects that the target air supply object moves, then determine the rotation direction of the swing stepping motor according to the horizontal pixels of the target air supply object in the image and the horizontal pixels of the visual center of the camera;

[0017] According to the rotation direction, control the swing stepping motor to rotate towards the target air supply object until the target air supply object is at the visual center of the camera.

[0018] According to a control method of a fan provided by the present invention, the step of according to the position information, control the swing stepping motor so that the fan supplies air to the target air supply object specifically includes:

[0019] When there are multiple target air supply objects, sort the first position information of the multiple target air supply objects;

[0020] According to the sorting result, obtain the maximum swing angle and the minimum swing angle;

[0021] Control the swing stepping motor so that the fan supplies air between the maximum swing angle and the minimum swing angle.

[0022] According to a control method of a fan provided by the present invention, after the step of controlling the swing stepping motor so that the fan supplies air between the maximum swing angle and the minimum swing angle, the method further includes:

[0023] During the air supply process of the fan, obtain air supply image information through the camera, where the air supply image information is an image captured when the fan runs one week between the maximum swing angle and the minimum swing angle,

[0024] Update the position information of the target air supply object according to the air supply image information;

[0025] Adjust the maximum swing angle and the minimum swing angle according to the updated position information.

[0026] The present invention also provides a control device for a fan, including:

[0027] An image acquisition module, configured to acquire environmental image information through a camera, where the environmental image information is an image captured when the fan runs one week at the maximum swing angle, the camera is fixed to the fan swing mechanism, and the visual center of the camera is consistent with the air outlet direction of the fan;

[0028] A position determination module, configured to determine the position information of the target air supply object according to the environmental image information;

[0029] An air supply control module, configured to control a swing stepper motor according to the position information so that the fan supplies air to the target air supply object.

[0030] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where when the processor executes the program, it implements the control method of the fan as described in any one of the above.

[0031] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the control method of the fan as described in any one of the above.

[0032] The present invention also provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the control method of the fan as described in any one of the above.

[0033] The control method, device, equipment, and storage medium of the fan provided by the present invention acquire environmental image information through a camera fixed to the fan swing mechanism, determine the position information of the target air supply object according to the environmental image information; control the swing stepper motor according to the position information so that the fan supplies air to the target air supply object. By analyzing the image information acquired by the camera, the present invention can accurately determine the angle information of the target air supply object in the horizontal direction, and accordingly control the swing stepper motor of the fan to adjust the air supply direction, realizing accurate air supply to the target object. Moreover, it is not only applicable to the scenario with a single target air supply object, but also supports the identification, sorting, and adjustment of the air supply range for multiple target air supply objects, improving the intelligence and adaptability of the fan. Description of the Drawings

[0034] To more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the accompanying drawings required in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can also be obtained based on these drawings.

[0035] Figure 1 is a schematic flowchart of the control method of the fan provided by the present invention;

[0036] Figure 2 is a schematic diagram of the single - person mode of the control method of the fan provided by the present invention;

[0037] Figure 3 is one of the schematic diagrams of the multi - person mode of the control method of the fan provided by the present invention;

[0038] Figure 4 is the second schematic diagram of the multi - person mode of the control method of the fan provided by the present invention;

[0039] Figure 5 is a schematic structural diagram of the control device of the fan provided by the present invention;

[0040] Figure 6 is a schematic structural diagram of the electronic device provided by the present invention. Detailed Embodiments

[0041] To make the objectives, technical solutions, and advantages of the present invention clearer, the following will clearly and completely describe the technical solutions in the present invention with reference to the accompanying drawings in the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0042] To solve the problems in the prior art, the present invention proposes a control method for a fan to achieve precise positioning and dynamic tracking of the air - supply object. The following describes the control method of this fan, as Figure 1 shown, including but not limited to the following steps:

[0043] Step 110: Obtain environmental image information through a camera. Among them, the environmental image information is the image captured when the fan operates one week at the maximum swing angle. The camera is fixed to the fan swing mechanism, and the visual center of the camera is consistent with the air - outlet direction of the fan.

[0044] First, the camera is fixedly installed on the oscillating part of the fan to ensure that the visual center of the camera is consistent with the air outlet direction of the fan. That is, the image area captured by the camera coincides with the air outlet range of the fan, facilitating subsequent recognition and air supply positioning.

[0045] After the fan is powered on and working, control the fan to swing a full circle within its maximum oscillating angle range (for example, from the leftmost to the rightmost and then back to the center). During this process, the camera synchronously captures images to collect panoramic image information of the surrounding environment and form complete environmental image information.

[0046] The image information is processed by the microprocessor to extract the "head and shoulders" information in the image to determine the number of users and their position coordinates.

[0047] Among them, the visual center refers to the center point of the image within the camera's field of view, which can also be understood as the position directly facing the camera. In the two-dimensional image coordinate system, it is the intersection of the midpoints in the horizontal and vertical directions of the entire image. Since the camera is fixed on the oscillating part of the fan, the visual center represents the position pointed by the current air outlet direction of the fan. That is to say: when a target appears at the visual center of the camera, the fan is blowing directly at the target at this time.

[0048] Step 120: Determine the position information of the target air supply object according to the environmental image information.

[0049] Perform image processing and target detection on the collected environmental image information to identify whether there is a target air supply object in the image, such as human body contours, facial features, thermal imaging contours, specific object labels, etc.

[0050] When a target air supply object is detected, further analyze the position of the object in the image, and combine the oscillating angle information of the camera when taking this image to determine the spatial orientation of the air supply object, and finally obtain the corresponding position information, such as angle coordinates based on the fan center or the rotation angle of the stepper motor.

[0051] Step 130: Control the oscillating stepper motor according to the position information so that the fan supplies air to the target air supply object.

[0052] After obtaining the position information of the target air supply object, the system controls the oscillating stepper motor to rotate at an accurate angle so that the air outlet direction of the fan is aligned with the target air supply object to achieve directional air supply.

[0053] This control method can be integrated into the fan control system and execute relevant algorithms through an embedded processor to achieve the intelligent control function of the fan. This method not only improves the accuracy of air supply and the human-computer interaction experience, but also avoids the energy consumption waste caused by the mechanical back-and-forth oscillation of traditional fans.

[0054] As a further optional embodiment, the step of determining the position information of the target air supply object according to the environmental image information specifically includes:

[0055] During the process of the fan shaking its head, when the target air supply object is at the visual center of the camera, determine the first position information of the target air supply object, and the first position information is the head shaking angle of the head shaking stepper motor.

[0056] During the process of the fan performing the head shaking action, that is, when the head shaking stepper motor of the fan rotates within a set range, the camera will continuously collect images and perform real-time image analysis. The system uses an image recognition algorithm to determine whether the target air supply object is at the visual center position in the camera's field of view, and this visual center can be preset as a specific area in the middle of the image frame.

[0057] When it is detected that the target air supply object enters and is in this visual center area, the system records the current head shaking angle of the fan as the first position information of the target air supply object. This first position information actually corresponds to the rotation angle of the current head shaking stepper motor, that is, the direction angle of the target air supply object relative to the initial position of the fan.

[0058] Through the above method, the system can more accurately determine the direction where the target air supply object is located, thereby providing basic data for subsequent control of the fan to supply air in this direction.

[0059] As a further optional embodiment, the step of controlling the head shaking stepper motor according to the position information so that the fan supplies air to the target air supply object specifically includes:

[0060] When there is one target air supply object, control the head shaking stepper motor to supply air to the first position information according to the first position information.

[0061] When the system recognizes that there is only one target air supply object or the single-person tracking function is enabled, the control logic will first obtain the first position information of the target air supply object, and this first position information is the head shaking angle of the fan corresponding to when the aforementioned determined target object is at the visual center of the camera.

[0062] Subsequently, the control module issues an instruction to the head shaking stepper motor according to this first position information, so that the stepper motor rotates to the corresponding angular position, thereby driving the fan head to rotate and making the air outlet direction of the fan consistent with the direction of the target air supply object, realizing precise air supply.

[0063] Through the above method, the problem of the fan blindly shaking its head and inefficiently supplying air can be avoided, realizing automatic tracking and directional air supply for a single object, and improving user comfort and the energy efficiency utilization of the device.

[0064] As a further optional embodiment, after the step of controlling the swing stepping motor to blow air to the first position when there is one target air supply object, the method further includes:

[0065] When the camera detects that the target air supply object moves, according to the second position information of the target air supply object, control the swing stepping motor to blow air to the target air supply object.

[0066] When the fan is in the air supply state, the camera continuously and real-time collects image information. If the camera detects that the target air supply object is displaced due to human movement or other external reasons, that is, the position of the target in the image deviates from the preset visual center, the system starts the motion detection algorithm, compares the relative position change of the target in the front and back image frames, and determines whether the target moves.

[0067] When it is detected that the target air supply object moves, the system calculates and determines the second position information of the target air supply object according to the difference between the current horizontal pixel position of the target in the image and the position of the camera visual center. This second position information is usually expressed by the angle of the current swing stepping motor or the preset angle offset value, and is used to characterize the new position of the target.

[0068] According to the obtained second position information, the control module issues a control command to the swing stepping motor, so that the fan adjusts the air supply direction, and makes the target air supply object re-enter the visual center of the camera. In this way, the entire system realizes the dynamic tracking air supply function for the target object, enabling the fan to continuously adjust the air outlet angle according to the real-time movement change of the target.

[0069] By introducing the above steps, this embodiment realizes the tracking air supply control for a single target air supply object after the target position moves, effectively avoids the problem of air supply deviation caused by the target movement, and further improves the accuracy of air supply and the comfort experience of users.

[0070] As a further optional embodiment, the step of when the camera detects that the target air supply object moves, according to the second position information of the target air supply object, control the swing stepping motor to blow air to the target air supply object specifically includes:

[0071] When the camera detects that the target air supply object moves, determine the rotation direction of the swing stepping motor according to the horizontal pixels of the target air supply object in the image and the horizontal pixels of the camera visual center;

[0072] According to the rotation direction, control the swing stepping motor to rotate towards the target air supply object until the target air supply object is at the visual center of the camera.

[0073] During the acquisition process of the camera, the image processing module analyzes the current frame image to obtain the horizontal pixel position of the target air supply object in the image, and at the same time obtains the horizontal pixel value of the visual center position of the camera. The system compares the two to determine the deviation direction of the target object relative to the visual center.

[0074] If the horizontal pixel value of the target object is greater than the pixel value of the visual center, it means that the target is on the right side of the camera;

[0075] If the horizontal pixel value of the target object is less than the pixel value of the visual center, it means that the target is on the left side of the camera.

[0076] Based on the horizontal pixel difference between the target object and the visual center of the camera, the system determines the rotation direction of the pan stepping motor required.

[0077] When it is detected that the target is on the right side, the control module issues an instruction to make the pan stepping motor rotate to the right by a preset angle;

[0078] When it is detected that the target is on the left side, the instruction is to make the pan stepping motor rotate to the left.

[0079] The control module continuously adjusts the angle of the pan stepping motor according to the calculated rotation direction above, so that the target air supply object gradually approaches the visual center of the camera in consecutive frame images.

[0080] The adjustment process is a closed-loop control, that is, continuously repeating the comparison of the horizontal pixel deviation between the target and the visual center in the image, and continuously controlling the rotation of the stepping motor until the deviation disappears or is reduced to a preset allowable range (that is, the target air supply object is accurately at the visual center of the camera).

[0081] As Figure 2 shown, the camera has a visible angle in the horizontal direction, assumed to be -C2 to C2. For the convenience of description, the visual range is divided into 5 parts (-C2 to C2) here, which is actually equal to the camera pixels or software resolution. C0 is the visual center of the camera (such as the center position of the display). The camera has the ability to recognize people within the visual range. The camera is fixed together with the fan pan mechanism and can rotate within the range of -F6 to F6 with the fan pan mechanism. When the target air supply object moves from the F3 position to the F4 position, the camera detects that the position of the person moves from C0 to C1. The microprocessor calculates the positive or negative of the horizontal pixel error value between C1 and the visual center position. Assuming a positive value rotates in the F6 direction and a negative value rotates in the -F6 direction. At this time, the pan stepping motor rotates in the F6 direction until the error between the person and C0 is 0 or a small error. At this time, update the position of the person to F4 and stop rotating.

[0082] As a further optional embodiment, the step of controlling the swing stepping motor according to the position information so that the fan blows air to the target air supply object specifically includes:

[0083] When there are multiple target air supply objects, sort the first position information of the multiple target air supply objects;

[0084] According to the sorting result, obtain the maximum swing angle and the minimum swing angle;

[0085] Control the swing stepping motor so that the fan blows air between the maximum swing angle and the minimum swing angle.

[0086] First, sort the first position information obtained by image recognition of multiple target air supply objects. Among them, the first position information of each target is the rotation angle of the swing stepping motor when the target is at the visual center of the camera. The sorting process is carried out in ascending order of numerical values to determine the distribution positions of all targets relative to the fan.

[0087] According to the sorting result, the system extracts the maximum value and the minimum value in the sorting result. These two values respectively correspond to the two end angles of the target air supply object that are farthest from the central position of the fan, that is, the maximum swing angle and the minimum swing angle. This range covers the angular area where all target air supply objects are located.

[0088] The control module uses the above maximum swing angle and minimum swing angle as the boundaries of the air supply range, and sends a control command to the swing stepping motor to make the fan swing back and forth between these two limit angles to blow air. By continuously moving back and forth within the entire air supply range, it is ensured that all target air supply objects can receive the air supply effect at different time periods, realizing effective coverage of multiple target air supply objects.

[0089] As Figure 3 shown, if the camera finds a person and the person is at the visual center position of the camera, the program records the position of the stepping motor at this time. "Person 3" and "Person 2" are both within the swing angle range, so the positions (steps) of "Person 3" and "Person 2" are recorded as F3 and -F4 respectively. "Person 1" is outside the swing angle. The camera rotates together with the fan swing mechanism, and it can only swing to the angle -F6. The camera C0 cannot be aligned with "Person 1". However, the camera can recognize "Person 1" at the limit position (-F6 and F6 are both called limits). At this time, the position of "Person 1" recorded by the program is -F6. After completing the position finding, the program sorts the positions of each person from largest to smallest. After obtaining the maximum value F3 and the minimum value -F6, the program controls the fan swing mechanism to swing back and forth between -F6 and F3 to achieve accurate air swing for multiple people.

[0090] The above embodiments can dynamically determine the air supply range according to the initial positions of multiple targets when they exist simultaneously, and continuously adjust the air supply direction through the swing stepping motor, improving the service efficiency and use comfort of the fan in a multi-user environment.

[0091] As a further optional embodiment, after the step of controlling the swing stepping motor to make the fan supply air between the maximum swing angle and the minimum swing angle, the method further includes:

[0092] During the air supply process of the fan, obtain air supply image information through a camera, where the air supply image information is the image captured when the fan runs one week between the maximum swing angle and the minimum swing angle.

[0093] Update the position information of the target air supply object according to the air supply image information;

[0094] Adjust the maximum swing angle and the minimum swing angle according to the updated position information.

[0095] When the fan is in the air supply state, that is, during the process of the swing stepping motor running in a cycle between the maximum swing angle and the minimum swing angle, collect the current air supply image information through a camera. The air supply image information is the image captured when the fan runs one week within this range, reflecting the distribution and dynamic changes of each target air supply object in the environment during the actual air supply process.

[0096] According to the collected air supply image information, the system identifies the target air supply object through an image processing algorithm and extracts the position information of each target in the image. By comparing with the previously recorded position information, the position information of the target air supply object is updated in real time to reflect the movement, addition, or loss of the target during the air supply process.

[0097] Using the updated target position information, the system reorders the first position information corresponding to each target and determines the new maximum swing angle and minimum swing angle, that is, defines the actual angular range where the target air supply objects are distributed. The control module issues a new control instruction to the swing stepping motor accordingly, making the fan supply air between the updated maximum swing angle and minimum swing angle, so as to achieve continuous coverage and precise air supply to all target air supply objects.

[0098] Such as Figure 4As shown, in the multi-person mode with oscillating air flow, the positions of multiple people are still updated in real time. When the multi-person mode is in the oscillating air flow state, if the position of "Person 3" changes from F3 to F1. At this time, when the fan oscillating mechanism swings to F1, it recognizes the position of "Person 3" and records it as F1. When the fan oscillating mechanism swings to the original maximum value F3, no person is found or the position of the person is found to be F1 (because when the center position of the camera is at the F3 position, it can also calculate the position of the person as -C2, that is, the angular position F1). The original position record of F3 is deleted. The program sorts the positions of each person from largest to smallest. After obtaining the maximum value F1 and the minimum value -F6, the program controls the fan oscillating mechanism to swing back and forth between -F6 and F1, achieving real-time adjustment of the angles of multiple people.

[0099] Through the above steps, the system can not only determine the distribution range of the target air supply objects in the initial state, but also dynamically update the target position information and adjust the air supply range according to the real-time collected image information during the air supply process, so as to better cope with the movement of the targets or environmental changes, and further improve the intelligence of the fan air supply and the user experience.

[0100] The control device of the fan provided by the present invention will be described below, as Figure 5 shown, the control device of the fan described below can be mutually referred to the control method of the fan described above.

[0101] A control device of a fan, comprising:

[0102] An image acquisition module 510, configured to acquire environmental image information through a camera, wherein the environmental image information is an image captured when the fan operates one week at the maximum oscillating angle, the camera is fixed to the fan oscillating mechanism, and the visual center of the camera is consistent with the air outlet direction of the fan;

[0103] A position determination module 520, configured to determine the position information of the target air supply object according to the environmental image information;

[0104] An air supply control module 530, configured to control a stepping motor for oscillation according to the position information, so that the fan supplies air to the target air supply object.

[0105] Figure 6 An example of a schematic physical structure diagram of an electronic device is shown as Figure 6As shown in the figure, the electronic device may include: a processor 610, a communications interface 620, a memory 630, and a communication bus 640. Among them, the processor 610, the communications interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call logical instructions in the memory 630 to execute the control method of the fan. The method includes:

[0106] Obtain environmental image information through a camera. Among them, the environmental image information is an image captured when the fan operates one week at the maximum shaking angle. The camera is fixed to the fan shaking mechanism, and the visual center of the camera is consistent with the air outlet direction of the fan;

[0107] Determine the position information of the target air supply object according to the environmental image information;

[0108] Control the shaking stepper motor according to the position information so that the fan supplies air to the target air supply object.

[0109] In addition, when the logical instructions in the above-mentioned memory 630 are implemented in the form of software function units and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0110] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the control method of the fan provided by the above-mentioned various methods. The method includes:

[0111] Obtain environmental image information through a camera. Among them, the environmental image information is an image captured when the fan operates one week at the maximum shaking angle. The camera is fixed to the fan shaking mechanism, and the visual center of the camera is consistent with the air outlet direction of the fan;

[0112] Determine the position information of the target air supply object according to the environmental image information;

[0113] Control the swing stepping motor according to the position information so that the fan supplies air to the target air supply object.

[0114] On the other hand, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it realizes the control method of the fan provided by the above-mentioned various methods. The method includes:

[0115] Obtain environmental image information through a camera. The environmental image information is an image captured when the fan runs one week at the maximum swing angle. The camera is fixed to the fan swing mechanism, and the visual center of the camera is consistent with the air outlet direction of the fan;

[0116] Determine the position information of the target air supply object according to the environmental image information;

[0117] Control the swing stepping motor according to the position information so that the fan supplies air to the target air supply object.

[0118] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative labor.

[0119] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course also by hardware. Based on such an understanding, the above technical solution, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0120] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A method for controlling a fan, characterized in that: include: Acquire environmental image information through a camera, wherein the environmental image information is an image taken when the fan runs for one circle at the maximum shaking angle, the camera is fixed to the shaking mechanism of the fan, and the visual center of the camera is consistent with the air outlet direction of the fan; Determining the location information of the target air supply object according to the environmental image information; According to the position information, the oscillating stepping motor is controlled so that the fan supplies air to the target air supply object.

2. The fan control method according to claim 1, characterized in that: The step of determining the position information of the target air supply object according to the environmental image information specifically includes: During the fan shaking process, when the target air supply object is at the visual center of the camera, the first position information of the target air supply object is determined, and the first position information is the shaking angle of the shaking stepping motor.

3. The fan control method according to claim 2, characterized in that: The step of controlling the oscillating stepping motor according to the position information so that the fan supplies air to the target air supply object specifically includes: When there is a target air supply object, the oscillating stepping motor is controlled to supply air to the first position information according to the first position information.

4. The fan control method according to claim 3, characterized in that: After the step of controlling the oscillating stepping motor to supply air to the first position when there is a target air supply object, the method further includes: When the camera detects that the target air supply object moves, the oscillating stepping motor is controlled to supply air to the target air supply object according to the second position information of the target air supply object.

5. The fan control method according to claim 4, characterized in that: When the camera detects that the target air supply object moves, the step of controlling the oscillating stepping motor to supply air to the target air supply object according to the second position information of the target air supply object specifically includes: When the camera detects that the target air supply object moves, the rotation direction of the shaking stepping motor is determined according to the horizontal pixels of the target air supply object in the image and the horizontal pixels of the camera visual center; According to the rotation direction, the oscillating stepping motor is controlled to make the fan turn toward the target air supply object until the target air supply object is at the visual center of the camera.

6. The fan control method according to claim 2, characterized in that: The step of controlling the oscillating stepping motor according to the position information so that the fan supplies air to the target air supply object specifically includes: When there are multiple target air supply objects, sorting the first position information of the multiple target air supply objects; According to the sorting results, the maximum shaking angle and the minimum shaking angle are obtained; The oscillating stepping motor is controlled so that the fan delivers air between a maximum oscillating angle and a minimum oscillating angle.

7. The fan control method according to claim 6, characterized in that: After the step of controlling the oscillating stepping motor to enable the fan to deliver air between the maximum oscillating angle and the minimum oscillating angle, the method further comprises: During the air supply process of the fan, air supply image information is obtained through a camera, wherein the air supply image information is an image taken when the fan runs one circle between the maximum shaking angle and the minimum shaking angle. updating the position information of the target air supply object according to the air supply image information; The maximum shaking angle and the minimum shaking angle are adjusted according to the updated position information.

8. A fan control device, characterized in that: include: An image acquisition module, used for acquiring environmental image information through a camera, wherein the environmental image information is an image taken when the fan runs for one circle at a maximum shaking angle, the camera is fixed to the fan shaking mechanism, and the visual center of the camera is consistent with the air outlet direction of the fan; A position determination module, used to determine the position information of the target air supply object according to the environmental image information; The air supply control module is used to control the oscillating stepping motor according to the position information so that the fan supplies air to the target air supply object.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the fan control method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the fan control method according to any one of claims 1 to 7 is implemented.