Control method for following swing of fan, fan, equipment and medium
Through the camera module, the image information is captured in real time, the target object is determined, and the fan swing device is controlled to drive the fan body to adjust the blowing direction, solving the problem of low intelligence of the existing fans and realizing real-time adjustment and intelligence of the fan following the target object position Automatic control.
Patent Information
- Application Number
- CN202410964814.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-08
AI Technical Summary
The existing fans are low in intelligence, and users need to manually control the blowing direction, making it difficult to adjust in real time according to the target position.
The camera module is used to capture image information in real time, determine the target following object through image information, and control the left and right swing devices to drive the fan body to swing, real-time adjustment of the position of the fan following object.
It realizes intelligent automatic adjustment of the fan blowing direction, and can adjust the target object position in real time, improves the intelligence of the fan and reduces the user's operation needs.
Smart Images

Figure CN118912017A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of fan equipment, and in particular to a fan follow-up swing control method, a fan, equipment and a medium. Background Art
[0002] A fan is a cooling device that uses a motor to drive the blades to rotate to generate airflow and achieve a blowing effect. It is a common item in people's daily life. In the related art, the fan has a low degree of intelligence, and the switch, swing or fixed direction of the fan need to be operated by the user. Summary of the invention
[0003] The present application provides a fan follow-up swing control method, a fan, a device and a medium, which can follow the position of a target and adjust the blowing direction in real time to achieve the purpose of intelligence.
[0004] In a first aspect, the present application provides a fan follow-up swing control method, which is applied to a fan, wherein the fan comprises a fan body, a left-right swing device, a base, a camera module and a control module, wherein the camera module is arranged on the base, the left-right swing device is arranged on the base, and the fan body is arranged on the left-right swing device; the method is applied to the control module, and the method comprises the following steps:
[0005] Acquire image information captured by the camera module in real time;
[0006] Determine a target following object according to the image information, and determine position information of the target following object;
[0007] According to the position information of the target following object, the left and right swinging device is controlled to drive the fan body to swing.
[0008] A further technical solution is that the step of determining the target to be followed according to the image information comprises:
[0009] When receiving a single-player mode instruction, acquiring the image information, and determining whether human body information exists in the image information;
[0010] When human body information exists, determining a target following object according to the human body information;
[0011] When there is no human body information, the left and right swing device is controlled to drive the fan body to swing within a swing threshold range; wherein the swing threshold range is the maximum swing angle of the fan body swinging to the left to the maximum swing angle of the fan body swinging to the right.
[0012] A further technical solution is that when human body information exists, the step of determining the target follow-up object according to the human body information includes:
[0013] When human body information exists and the number of human bodies is one, it is determined as the target to be followed;
[0014] When human body information exists and there are multiple human bodies, a position deviation value between the position of each human body and the image center position of the image information is calculated;
[0015] The human body with the smallest deviation value is determined as the target following object.
[0016] A further technical solution is that the step of determining the target to be followed according to the image information further includes:
[0017] When the image information includes a designated switching gesture, a human body using the designated switching gesture is determined as a target following object.
[0018] A further technical solution is that when there is no human body information, the step of controlling the left-right swing device to drive the fan body to swing within a swing threshold range further includes:
[0019] When the fan body swings within the swing threshold range, if human body information exists in the received image information, executing the step of determining a target follow-up object according to the human body information when human body information exists;
[0020] When the fan body swings within the swing threshold range and there is no human body information in the image information, the left and right swing device is controlled to drive the fan body back to the initial position and stop blowing air.
[0021] A further technical solution is that the step of controlling the left-right swing device to drive the fan body to swing according to the position information of the target following object comprises:
[0022] Obtaining a deviation value between a position of a target following object and an image center position of the image information;
[0023] When the deviation value is less than or equal to a preset threshold, the left-right swing device is controlled not to drive the fan body to swing;
[0024] When the deviation value is greater than a preset threshold, the left-right swing device is controlled to drive the fan body to swing, so that the blowing direction of the fan body faces the target following object.
[0025] A further technical solution is that the step of controlling the left-right swing device to drive the fan body to swing according to the position information of the target following object comprises:
[0026] When there is no position information of the target follower in the image information, controlling the left-right swing device to drive the fan body to swing within a swing threshold range;
[0027] When the fan body swings within the swing threshold range, and the received image information contains position information of a target follower, performing a step of obtaining a deviation value between the position of the target follower and the image center position of the image information;
[0028] When the fan body swings within the swing threshold range and there is no position information of the target following object in the image information, the left and right swing device is controlled to drive the fan body back to the initial position and stop blowing air.
[0029] In a second aspect, the present application provides a fan, comprising a fan body, a left-right swing device, a base, a camera module and a control module, wherein the camera module is arranged on the base, the left-right swing device is arranged on the base, and the fan body is arranged on the left-right swing device; the camera module, the left-right swing device and the fan body are electrically connected to the control module respectively, wherein the control module is used to execute the fan follow-swing control method described in any one of the above items.
[0030] In a third aspect, the present application provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.
[0031] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.
[0032] The embodiment of the present invention provides a control method, fan, device and medium for fan following swing. The method includes: obtaining image information captured by a camera module in real time; determining a target following object according to the image information, and determining the position information of the target following object; and controlling a left-right swing device to drive the fan body to swing according to the position information of the target following object. In the present invention, a camera module is used to capture images in real time, and a target following object is determined from the image information of the captured image. The left-right swing device drives the fan body to swing following the position of the target following object, thereby achieving the purpose of adjusting the fan blowing direction in real time and intelligently and automatically adjusting the direction. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0035] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0036] Figure 1 A schematic flow chart of a fan follow-up swing control method provided in an embodiment of the present application;
[0037] Figure 2 A schematic structural diagram of a fan provided by another embodiment of the present invention;
[0038] Figure 3 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0041] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0042] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0043] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0044] See also Figure 1 , Figure 1 It is a flow chart of a fan following swing control method provided by an embodiment of the present invention. Applied to a fan, the fan includes a fan body, a left-right swing device, a base, a camera module and a control module. The camera module is arranged on the base, the left-right swing device is arranged on the base, and the fan body is arranged on the left-right swing device. The purpose of the present invention is to adjust the blowing direction in real time according to the position of the target following object, so as to realize intelligence. In order to achieve the above technical purpose, as Figure 1 As shown, the method comprises the following steps:
[0045] S1, obtaining image information captured by the camera module in real time.
[0046] In a specific implementation, the camera module has a camera, which captures image information in the target area. The camera is installed on the front side of the base, which faces the user, that is, the side of the fan body blowing air. When the fan is turned on, the camera module starts, captures the image of the target area in real time, and transmits the captured image to the control module. The control module extracts and analyzes the information in the image to obtain image information. For example, it analyzes whether there is a face in the image, the number of faces, and other information.
[0047] S2, determining a target following object according to the image information, and determining position information of the target following object.
[0048] In a specific implementation, when the fan is initially turned on, the center point of the fan's swing head is positioned, the fan swings to the left to a first maximum swing position, and then swings to the right to a second maximum swing position. The midpoint between the first maximum swing position and the second maximum swing position is set as the center point of the swing head and stored in the control module.
[0049] The center position of the image is determined according to the image as a reference position, and the position of the target following object is calculated based on the center position of the image.
[0050] S3, according to the position information of the target following object, controlling the left and right swinging device to drive the fan body to swing.
[0051] In the specific implementation, the control module controls the rotation of the fan body according to the position information of the determined target following object, so that the fan body swings to make the blowing direction of the fan body correspond to the target following object. Since the camera is shooting in real time, the control module is also updating the position of the target following object in real time. Then, the fan body can adjust the blowing direction according to the position of the target following user in real time, so as to achieve the purpose of adjusting the blowing direction of the fan body according to the user's position.
[0052] A wall fan is a type of fan that is installed on a wall through a base. Usually, a wall fan is installed at a high position, which is not convenient for users to directly operate and adjust. The wall fan using this method can achieve the purpose of automatically adjusting the blowing direction of the fan. When the control module analyzes the image information taken by the camera module, it can extract the face information and the number of faces in the image, so that it is easy to bind the user as the target to be followed.
[0053] In the embodiment of the present invention, a camera module is used to capture images in real time, and a target following object is determined from the image information of the captured image. The left and right swing device drives the fan body to swing along the position of the target following object, thereby achieving real-time adjustment of the fan blowing direction and intelligent and automatic adjustment.
[0054] In one embodiment, the step of determining the target following object according to the image information includes:
[0055] S21, when a single-person mode instruction is received, image information is acquired, and it is determined whether human body information exists in the image information.
[0056] In a specific embodiment, the fan's working modes include left and right swing head mode, single-person mode, and multi-person mode. Among them, the left and right swing head mode is a conventional fan body that swings back and forth left and right; these three states are mutually exclusive, and the method in this scheme is applicable to the single-person mode.
[0057] The user can output instructions through the remote control or mobile phone terminal operation. When the control module receives the single-player mode instruction operated by the user, it obtains the current image taken by the camera and analyzes the image to obtain image information. The image analysis includes extracting human body information in the image and determining whether human body information exists in the image, that is, determining whether there is a user who needs to be followed within the current fan blowing range.
[0058] S22, when human body information exists, determining a target following object according to the human body information.
[0059] In a specific embodiment, S221, when a single-person mode instruction is received, if there is human body information in the acquired image and there is only one human body, the human body is determined to be the target following object; it can be understood that when there is only one human body in the image taken by the camera in real time, it can be directly determined that the human body is the target user who needs fan blowing, and it is determined as the target following object, and the target following object is bound, and the swing of the fan body follows the target following object to adjust the blowing direction.
[0060] S222, when human body information exists and there are multiple human bodies, calculate the position deviation value between the position of each human body and the image center position of the image information; and determine the human body with the smallest deviation value as the target following object.
[0061] It is understandable that when a single-person mode instruction is received, when the acquired image contains human body information and there are multiple human bodies, it is necessary to determine one of the human bodies as the target following object. Specifically, the distance between the position of each human body and the center position of the image is obtained, and the human body closest to the center position of the image is determined as the target following object.
[0062] In a further technical solution, the step of determining the target to be followed according to the image information further includes:
[0063] When the designated switching gesture is included in the image information, a human body using the designated switching gesture is determined as a target following object.
[0064] It is understandable that when the image information includes multiple human body information, the control module will initially select the human body closest to the center of the image as the target to follow. If the user needs to switch the follow target, he only needs to make a specified switching gesture. The camera captures the image with the specified switching gesture. The control module extracts the image information and analyzes the image to include the specified switching gesture, and switches the target to follow to the user who made the specified switching gesture. In one embodiment, the specified switching gesture is an "OK" gesture.
[0065] It should be noted that the user can make a designated switching gesture at any time after the fan is started to switch the target following object.
[0066] S23, when there is no human body information, control the left and right swing device to drive the fan body to swing within a swing threshold range; wherein the swing threshold range is the maximum swing angle of the fan body to the left to the maximum swing angle of the fan body to the right.
[0067] In a specific embodiment, when a single-person mode instruction is received, the current image captured by the camera in real time is obtained, and the image is analyzed to obtain image information. Although there is no user at present, because the single-person mode instruction is obtained, that is, a user has operated the fan, the fan will start. When there is no human body information in the image information, the fan body is controlled to swing once within the swing threshold range to provide a buffer time to wait for the user to appear.
[0068] In a further technical solution, when there is no human body information, the step of controlling the left and right swinging device to drive the fan body to swing within the swing threshold range also includes:
[0069] S231, when the fan body swings within the swing threshold range, if human body information exists in the received image information, executing the step of determining a target follow-up object according to the human body information when human body information exists;
[0070] It can be understood that when the initial single-player mode instruction is received, it is found through image analysis that there is no user in the current target area; when the fan body swings within the swing threshold range, the camera acquires images in real time, and the control module analyzes the images in real time. When human body information appears in the image, it indicates that a user has entered the target area. At this time, the target following user and the position of the target following user are determined based on the human body information to control the fan body to swing along with the target following user.
[0071] At this time, the method for determining the target following user is that when there is only one human body in the image information, the human body is determined as the target following object. When there are multiple human bodies in the image information, the position deviation value between the position of each human body and the image center position of the image information is calculated; the human body with the smallest deviation value is determined as the target following object. When the image information contains a specified switching gesture, the target following object is switched to the user who makes the specified switching gesture.
[0072] S232, when the fan body swings within the swing threshold range and there is still no human body information in the image information, the left and right swinging device is controlled to drive the fan body back to the initial position and stop blowing air.
[0073] It is understandable that when the fan body swings to the left to the maximum angle position and then to the right to the maximum angle position, during the process of completing this swing, there is no human body information in the image captured by the camera, that is, the user has not appeared in the target area. In order to save energy, the fan body returns to the initial position (the center point of the swing) and stops blowing (the drive motor of the fan blades stops rotating), waiting for human body information to appear in the image taken later before resuming operation and following the swing.
[0074] In a further technical solution, according to the position information of the target following object, the step of controlling the left and right swinging device to drive the fan body to swing includes:
[0075] S31, obtaining a deviation value between the position of the target following object and the image center position of the image information.
[0076] S32, when the deviation value is less than or equal to the preset threshold value, the left and right swinging device is controlled not to drive the fan body to swing.
[0077] S33, when the deviation value is greater than a preset threshold, the left and right swinging device is controlled to drive the fan body to swing so that the blowing direction of the fan body faces the target following object.
[0078] In a specific embodiment, when the target following object is stationary, the fan blows air directly toward the following object without swinging.
[0079] When the position of the target following object deviates from the center of the image by less than or equal to a preset threshold, the target following object is still within the fan's blowing coverage, and the fan body may not swing. In one embodiment, when the target following object deviates from the center of the image by less than or equal to ±15 pixels (data of the image serial port), the fan maintains the original direction and does not swing.
[0080] When the position deviation of the target following object from the center of the image is greater than a preset threshold, the target following object is out of the current fan blowing coverage, and the fan body is driven to swing. In one embodiment, when the position deviation of the target following object from the center of the image is greater than ±15 pixels (data of the image serial port), the fan follows the target and swings until the fan stops swinging when blowing directly at the following target.
[0081] In a further technical solution, according to the position information of the target following object, the step of controlling the left and right swinging device to drive the fan body to swing includes:
[0082] S34, when there is no position information of the target follower in the image information, controlling the left and right swing device to drive the fan body to swing within a swing threshold range;
[0083] S35, when the fan body swings within the swing threshold range and the received image information contains position information of the target follow-up object, executing the step of obtaining a deviation value between the position of the target follow-up object and the image center position of the image information;
[0084] S36, when the fan body swings within the swing threshold range and there is still no position information of the target following object in the image information, the left and right swinging device is controlled to drive the fan body back to the initial position and stop blowing air.
[0085] It can be understood that when the fan is in single-person mode and blows air to the target following object, when the target following object moves out of the target area, that is, in the image acquired by the camera in real time, the target following user does not exist in the image information. At this time, the fan body is controlled to swing within the swing threshold range to provide a buffer time to wait for the target following object to appear.
[0086] When the fan body swings within the swing threshold range, the camera acquires images in real time, and the control module analyzes the images in real time. When a target following object appears in the image, it indicates that a target following object has entered the target area. At this time, the fan body is controlled to swing following the target following user according to the position of the target following user.
[0087] When the fan body swings to the left to the maximum angle position, and then swings to the right to the maximum angle position, during the process of completing this swing, there is no target following object in the image captured by the camera, that is, the target following object has never appeared in the target area. In order to save energy, the fan body returns to the initial position (the center point of the swing) and stops blowing (the drive motor of the fan blades stops rotating), waiting for the target following object to appear in the image captured later, and then resumes operation and following swing.
[0088] In a further technical solution, after the fan body returns to the initial position, within a preset time, there is no target following object in the image information, and there is other human body information in the image information, and the one of the other human body information closest to the center position of the image is determined as the new target following object.
[0089] In a further technical solution, a temperature detection module is also included. The temperature detection module is electrically connected to the control module. The temperature detection module detects the current ambient temperature and determines the motor gear position for driving the fan blades to rotate according to the current ambient temperature.
[0090] In a specific embodiment, when the fan is in the automatic gear working mode, the fan blowing wind force can be automatically adjusted through the temperature detection module. The fan does not work when the ambient temperature is below 25°C, and operates at a low wind speed when the ambient temperature is 25°C-27°C; the fan operates at a high wind speed when the ambient temperature is 28°C-31°C, and operates at a super strong wind speed when the ambient temperature is above 32°C, thereby achieving the purpose of automatically adjusting the blowing wind force.
[0091] The embodiment of the present invention provides a control method, fan, device and medium for fan following swing. Among them, the image information captured by the camera module in real time is obtained; the target following object is determined according to the image information, and the position information of the target following object is determined; according to the position information of the target following object, the left and right swing device is controlled to drive the fan body to swing. In the present invention, the fan includes a fan body, a left and right swing device, a base, a camera module and a control module, the camera module is arranged on the base, the left and right swing device is arranged on the base, and the fan body is arranged on the left and right swing device; the camera module, the left and right swing device and the fan body are electrically connected to the control module respectively, and the method is applied to the control module, and the method includes: taking images in real time by the camera module, determining the target following object from the image information of the captured image, and the left and right swing device drives the fan body to swing following the position of the target following object, so as to achieve the purpose of adjusting the blowing direction of the fan in real time and intelligent automatic adjustment.
[0092] Accordingly, see Figure 2 The embodiment of the present invention is a fan, the fan comprises a fan body 2, a left-right swing device, a base 1, a camera module 3 and a control module, the camera module 3 is arranged on the base 1, the left-right swing device is arranged on the base 1, and the fan body 2 is arranged on the left-right swing device; the camera module, the left-right swing device and the fan body are electrically connected to the control module respectively. The control module is used to execute the fan following swing control method of any of the above embodiments.
[0093] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned fan and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.
[0094] See also Figure 3 , Figure 3 5 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a terminal or a server, wherein the terminal may be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of multiple servers.
[0095] The computer device 500 includes a processor 502 , a memory, and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
[0096] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute a fan follow-up swing control method.
[0097] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0098] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a fan follow-up swing control method.
[0099] The network interface 505 is used to communicate with other devices over the network. Those skilled in the art will appreciate that the above structure is only a block diagram of a portion of the structure related to the present application solution, and does not constitute a limitation on the computer device 500 to which the present application solution is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0100] The processor 502 is used to run the computer program 5032 stored in the memory to implement the steps of the fan following swing control method provided in any of the above method embodiments.
[0101] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0102] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
[0103] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the fan following swing control method provided in any of the above method embodiments.
[0104] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which can store program codes. The computer-readable storage medium can be non-volatile or volatile.
[0105] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0106] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0107] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0108] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the 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 for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
[0109] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0110] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
[0111] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A fan following swing control method, characterized in that: The method is applied to a fan, the fan comprising a fan body, a left-right swing device, a base, a camera module and a control module, the camera module is arranged on the base, the left-right swing device is arranged on the base, and the fan body is arranged on the left-right swing device; the method is applied to the control module, and the method comprises the following steps: Acquire image information captured by the camera module in real time; Determine a target following object according to the image information, and determine position information of the target following object; According to the position information of the target following object, the left and right swinging device is controlled to drive the fan body to swing.
2. The method according to claim 1, characterized in that The step of determining the target to be followed according to the image information comprises: When receiving a single-player mode instruction, acquiring the image information, and determining whether human body information exists in the image information; When human body information exists, determining a target following object according to the human body information; When there is no human body information, the left and right swing device is controlled to drive the fan body to swing within a swing threshold range; wherein the swing threshold range is the maximum swing angle of the fan body swinging to the left to the maximum swing angle of the fan body swinging to the right.
3. The method according to claim 2, characterized in that When human body information exists, the step of determining the target following object according to the human body information comprises: When human body information exists and the number of human bodies is one, it is determined as the target to be followed; When human body information exists and there are multiple human bodies, the position deviation value between the position of each human body and the image center position of the image information is calculated; and the human body with the smallest deviation value is determined as the target following object.
4. The method according to claim 3, characterized in that The step of determining the target following object according to the image information further includes: When the image information includes a designated switching gesture, a human body using the designated switching gesture is determined as a target following object.
5. The method according to claim 2, characterized in that: When there is no human body information, the step of controlling the left-right swing device to drive the fan body to swing within the swing threshold range also includes: When the fan body swings within the swing threshold range, if human body information exists in the received image information, executing the step of determining a target follow-up object according to the human body information when human body information exists; When the fan body swings within the swing threshold range and there is no human body information in the image information, the left and right swing device is controlled to drive the fan body back to the initial position and stop blowing air.
6. The method according to claim 1, characterized in that The step of controlling the left-right swing device to drive the fan body to swing according to the position information of the target following object comprises: Obtaining a deviation value between a position of a target following object and an image center position of the image information; When the deviation value is less than or equal to a preset threshold, the left-right swing device is controlled not to drive the fan body to swing; When the deviation value is greater than a preset threshold, the left-right swing device is controlled to drive the fan body to swing, so that the blowing direction of the fan body faces the target following object.
7. The method according to claim 6, characterized in that The step of controlling the left-right swing device to drive the fan body to swing according to the position information of the target following object comprises: When there is no position information of the target follower in the image information, controlling the left-right swing device to drive the fan body to swing within a swing threshold range; When the fan body swings within the swing threshold range, and the received image information contains position information of a target follower, performing a step of obtaining a deviation value between the position of the target follower and the image center position of the image information; When the fan body swings within the swing threshold range and there is no position information of the target following object in the image information, the left and right swing device is controlled to drive the fan body back to the initial position and stop blowing air.
8. A fan, characterized in that: It includes a fan body, a left-right swing device, a base, a camera module and a control module, wherein the camera module is arranged on the base, the left-right swing device is arranged on the base, and the fan body is arranged on the left-right swing device; the camera module, the left-right swing device and the fan body are electrically connected to the control module respectively, wherein the control module is used to execute the fan follow-swing control method as described in any one of claims 1-7.
9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 can be implemented.
