Patent ID: 8634961

Claim:
A system for controlling a fan, the system comprising: a camera mounted on the fan, to capture an image of a scene in front of the fan; a processing unit connected to the camera to receive the image; and a storage unit connected to the processing unit and storing a plurality of programs to be executed by the processing unit, wherein the storage unit comprises: a person detection module to check the image captured by the camera to determine whether there is a person in the image, and outlines the person within a dashed box; and a position processing module to determine a position of the person in the image, and output a corresponding position signal to an actuating device of the fan for controlling the fan to change a direction of wind from the fan; wherein the position processing module processes the image to obtain a center of the dashed box in the image and marks the center of the dashed box as a first point, the position processing module further processes the image to obtain a center of the image and marks the center of the image as a second point, the position processing module determines a relationship between the first point and the second point to obtain the position of the person in the image and makes the actuating device to control the fan to aim at the person; the shooting angle of the camera changes correspondingly, thus the distance between the first point and the second point in the image decreases; when the first point overlaps the second point in the image, the position processing module outputs a position signal to stop the movement of the actuating device, to keep the fan aiming at the person.