CN114060300B - Fan control method and device, storage medium, electronic equipment and fan - Google Patents

Fan control method and device, storage medium, electronic equipment and fan Download PDF

Info

Publication number
CN114060300B
CN114060300B CN202010785445.0A CN202010785445A CN114060300B CN 114060300 B CN114060300 B CN 114060300B CN 202010785445 A CN202010785445 A CN 202010785445A CN 114060300 B CN114060300 B CN 114060300B
Authority
CN
China
Prior art keywords
fan
person
scanning area
image
recognition unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010785445.0A
Other languages
Chinese (zh)
Other versions
CN114060300A (en
Inventor
李东
杨波
陈俊超
易冬柏
贺吉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Zero Boundary Integrated Circuit Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Zero Boundary Integrated Circuit Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Zero Boundary Integrated Circuit Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010785445.0A priority Critical patent/CN114060300B/en
Publication of CN114060300A publication Critical patent/CN114060300A/en
Application granted granted Critical
Publication of CN114060300B publication Critical patent/CN114060300B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D25/00Pumping installations or systems
    • F04D25/02Units comprising pumps and their driving means
    • F04D25/08Units comprising pumps and their driving means the working fluid being air, e.g. for ventilation
    • F04D25/10Units comprising pumps and their driving means the working fluid being air, e.g. for ventilation the unit having provisions for automatically changing direction of output air
    • F04D25/105Units comprising pumps and their driving means the working fluid being air, e.g. for ventilation the unit having provisions for automatically changing direction of output air by changing rotor axis direction, e.g. oscillating fans

Abstract

The invention discloses a fan control method, a fan control device, a storage medium, electronic equipment and a fan, wherein the fan comprises a human shape recognition unit, the orientation of a person corresponding to a person image central point relative to the human shape recognition unit is determined by collecting image information of an initial scanning area where the fan shakes the head, based on the person image central point determined according to the image information and a pixel central point of an image recognized by the human shape recognition unit, the scanning area where the fan shakes the head is determined according to the number of the persons determined based on the image information and the position coordinate of the current person in a one-dimensional coordinate system constructed based on the initial scanning area, and the fan is controlled to work in the scanning area. The method realizes automatic, accurate and efficient positioning of the scanning area of the oscillating fan, can automatically adjust the scanning area along with personnel, and achieves the beneficial effect of flexibly and intelligently controlling the work of the fan.

Description

Fan control method and device, storage medium, electronic equipment and fan
Technical Field
The present invention relates to the field of electrical devices, and in particular, to a fan control method and apparatus, a storage medium, an electronic device, and a fan.
Background
With the development of the AI technology, the AI technology has a large market application scene, but at present, the AI technology has little application in the fan market, and in the prior art, the crowd distribution area is usually obtained by adopting an infrared induction mode, and the problem that animals and people cannot be distinguished and a blind area is identified easily occurs because the scanning area of the fan head swing is controlled based on the crowd distribution. Still utilize people to feel the people module among the prior art and confirm crowd distribution region, but need set up a plurality of people and feel the module, increased the cost, there is the blind area to remote personnel's detection, can't reach effective discernment. In addition, in the prior art, the distance between a person and a camera is utilized to determine the position of the person, but the method cannot accurately and effectively identify the scanning area of the fan swing head.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: how to accurately and effectively identify the scanning area of the fan swing head so as to flexibly control the fan to work.
In order to solve the above technical problems, the present invention provides a fan control method, apparatus, storage medium, electronic device, and fan.
In a first aspect of the present invention, there is provided a fan control method, the fan including a human shape recognition unit, the fan control method including:
acquiring image information of an initial scanning area of the fan shaking head;
constructing a one-dimensional coordinate system based on the initial scanning area;
determining the number of personnel in the initial scanning area, the central point of the personnel image and the central point of the pixel of the image identified by the human shape identification unit according to the image information;
determining the direction of a person corresponding to the center point of the person image relative to the human shape recognition unit based on the center point of the person image and the center point of the pixel of the human shape recognition unit recognition image;
controlling the human shape recognition unit to rotate towards the position of the person, and recording the position coordinate of the current person in the one-dimensional coordinate system when the human shape recognition unit is detected to be over against the position direction of the person;
and determining a scanning area of the fan shaking head according to the number of the personnel and the position coordinates, and controlling the fan to work in the scanning area.
Optionally, determining a central point of the person image according to the image information includes:
acquiring a first boundary projection coordinate and a second boundary projection coordinate of the personnel image in a preset direction from the image information;
and determining the central point of the personnel image according to the average value of the sum of the first boundary projection coordinate and the second boundary projection coordinate.
Optionally, determining the orientation of the person corresponding to the center point of the person image with respect to the human shape recognition unit based on the center point of the person image and the center point of the pixel of the image recognized by the human shape recognition unit includes:
judging the numerical value of the center point of the personnel image and the pixel center point of the image recognized by the human shape recognition unit in the same coordinate direction;
when the difference value between the pixel center point of the image recognized by the human shape recognition unit and the numerical value of the person image center point in the same coordinate direction is larger than a preset threshold value, determining that a person corresponding to the person image center point is positioned on the right side of the human shape recognition unit;
when the difference value between the central point of the personnel image and the numerical value of the central point of the pixel of the image recognized by the human shape recognition unit in the same coordinate direction is larger than the preset threshold value, determining that the personnel corresponding to the central point of the personnel image is positioned on the left side of the human shape recognition unit;
and when the absolute value of the difference value between the numerical values of the image pixel central point coordinate and the personnel image central point coordinate in the same coordinate direction is equal to the preset threshold value, determining that the personnel corresponding to the personnel image central point is positioned right in front of the humanoid identification unit.
Optionally, determining a scanning area where the fan shakes according to the number of people and the position coordinates, and controlling the fan to work in the scanning area, including:
when the number of the persons in the initial scanning area is larger than 1, determining a scanning area where the fan shakes according to the corresponding maximum position coordinate and minimum position coordinate in the position coordinates of the persons, and controlling the fan to work in the scanning area;
and when the number of the persons in the initial scanning area is determined to be 1, determining that the scanning area where the fan shakes the head is zero, and controlling the fan to start a person tracking mode at the position coordinates.
Optionally, the fan control method further includes:
after the scanning area where the fan shakes is determined, when the fan shakes to a boundary of one side of the scanning area, judging whether a person appears in the area where the distance between the boundary and the boundary is a preset distance; and if a person appears in an area with the distance between the boundary and the boundary being a preset distance, updating the boundary at one side of the scanning area by using the position coordinates of the person appearing in the area and farthest from the boundary.
Optionally, the fan includes two boundary sensors, and when the boundary sensor on any side is triggered during the oscillating process of the fan, the method further includes:
and the one-dimensional coordinate system takes the coordinate position of one of the boundary sensors as the origin of the one-dimensional coordinate system, and the scanning area of the fan oscillating head is updated based on the coordinate of the triggered boundary sensor in the one-dimensional coordinate system and the coordinate of the boundary of the scanning area in the one-dimensional coordinate system.
Optionally, the fan control method further includes:
acquiring the image information in the scanning area within a preset time period;
and when no person is detected in the image information, controlling the fan to stop working.
Optionally, the fan control method further includes:
judging whether the coordinate values of the two boundaries of the scanning area in the one-dimensional coordinate system are the same or not;
when the coordinate values of the two boundaries of the scanning area in the one-dimensional coordinate system are the same, controlling the fan to start a personnel tracking mode at the coordinate value;
and when the coordinate values of the two boundaries of the scanning area in the one-dimensional coordinate system are different, controlling the fan to shake between the two boundaries of the scanning area.
In another aspect of the present invention, there is provided a fan control apparatus, the fan including a human shape recognition unit, the fan control apparatus comprising:
the acquisition module is used for acquiring image information of an initial scanning area of the oscillating fan;
a construction module for constructing a one-dimensional coordinate system based on the initial scanning area;
the analysis module is used for determining the number of personnel in the initial scanning area, the coordinates of the central point of the personnel image and the pixel central point of the identification image of the human shape identification unit according to the image information;
a determining module, configured to determine, based on the person image center point and a pixel center point of the human shape recognition unit recognition image, an orientation of a person corresponding to the person image center point with respect to the human shape recognition unit;
the positioning module is used for controlling the human shape recognition unit to rotate to the position of the person, and recording the position coordinate of the current person in the one-dimensional coordinate system when the human shape recognition unit is detected to be over against the position direction of the person;
and the control module is used for determining a scanning area of the fan for shaking the head according to the number of the personnel and the position coordinates and controlling the fan to work in the scanning area.
In another aspect of the present invention, a storage medium is also provided, in which a computer program is stored, and the computer program can realize the fan control method as described above when being executed by a processor.
In another aspect of the present invention, there is also provided an electronic device, including: a memory having a computer program stored therein, and a controller capable of implementing the fan control method described above when executing the computer program stored in the memory.
In another aspect of the present invention, there is also provided a fan including: the fan control system comprises a fan body, a memory and a controller, wherein a computer program is stored in the memory, and the controller can realize the fan control method when executing the computer program stored in the memory.
Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:
the fan comprises a human-shape recognition unit, a one-dimensional coordinate system is established based on the initial scanning area by acquiring image information of the initial scanning area of the fan for shaking the head, the number of people in the initial scanning area, the center point of a person image and the pixel center point of an image recognized by the human-shape recognition unit are determined according to the image information, the position of the person corresponding to the center point of the person image relative to the human-shape recognition unit is determined based on the pixel center point of the image recognized by the person image and the pixel center point of the image recognized by the human-shape recognition unit, the human-shape recognition unit is controlled to rotate to the position of the person, the position coordinates of the current person in the one-dimensional coordinate system are recorded when the position direction of the person opposite to the person is detected by the human-shape recognition unit, and finally, the scanning area of the fan for shaking the head is determined according to the number of the person and the position coordinates, and the fan is controlled to work in the scanning area. According to the method, the position of the personnel relative to the human shape recognition unit, the number of the personnel and the position coordinates of the personnel in the one-dimensional coordinate system are recognized, the scanning area of the oscillating head of the fan is automatically, accurately and efficiently positioned, the scanning area can be automatically adjusted along with the personnel, and the beneficial effect of flexibly and intelligently controlling the work of the fan is achieved.
Drawings
The scope of the present disclosure may be better understood by reading the following detailed description of exemplary embodiments in conjunction with the accompanying drawings. Wherein the included drawings are:
fig. 1 is a schematic flow chart illustrating a fan control method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a one-dimensional coordinate system constructed based on an initial scanning area according to an embodiment of the present invention;
FIG. 3 is a schematic diagram showing the coordinates of an image of a detected person;
FIG. 4 is a schematic diagram showing the determination of the scan area of the fan's moving head;
FIG. 5 is a flow chart illustrating updating a fan moving head scanning area according to an embodiment of the present invention;
FIG. 6 is a schematic diagram showing the orientation of a person relative to a fan in three states provided by the second embodiment of the present invention;
FIG. 7 is a schematic diagram showing a state where the fan scanning area needs to be updated;
FIG. 8 is a schematic diagram showing a state where the fan scanning area needs to be updated and the boundary sensor is triggered;
FIG. 9 is a schematic diagram of a fan in a person tracking mode according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a fan control apparatus provided by an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a fan according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the following will describe in detail an implementation method of the present invention with reference to the accompanying drawings and embodiments, so that how to apply technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented.
With the development of the AI technology, the AI technology has a large market application scene, but at present, the AI technology has little application in the fan market, and in the prior art, the crowd distribution area is usually obtained by adopting an infrared induction mode, and the problem that animals and people cannot be distinguished and a blind area is identified easily occurs because the scanning area of the fan head swing is controlled based on the crowd distribution. Still utilize people to feel the people module among the prior art and confirm crowd distribution area, nevertheless need set up a plurality of people and feel the people module, increased the cost, there is the blind area to remote personnel's detection, can't reach effective discernment. In addition, in the prior art, the distance between a person and a camera is utilized to determine the position of the person, but the method cannot distinguish the positions with equal distance between the left side and the right side, and cannot accurately and effectively identify the scanning area of the fan swing head.
The invention provides a fan control method, a fan control device, a storage medium, an electronic device and a fan, wherein the fan comprises a human-shaped recognition unit, the number of people in an initial scanning area of a fan shaking head is acquired by acquiring image information of the initial scanning area, a one-dimensional coordinate system is established based on the initial scanning area, the number of people in the initial scanning area, the center point of a person image and the pixel center point of an image recognized by the human-shaped recognition unit are determined according to the image information, the position of a person corresponding to the center point of the person image relative to the human-shaped recognition unit is determined based on the center point of the person image and the pixel center point of the image recognized by the human-shaped recognition unit, the human-shaped recognition unit is controlled to rotate towards the position of the person, the position coordinates of the current person in the one-dimensional coordinate system are recorded when the position direction of the person opposite to the person is detected by the human-shaped recognition unit, and finally, the scanning area of the fan shaking head is determined according to the number of the person and the position coordinates, and the fan is controlled to work in the scanning area. According to the method, the position of the personnel relative to the human shape recognition unit, the number of the personnel and the position coordinates of the personnel in the one-dimensional coordinate system are recognized, the scanning area of the oscillating head of the fan is automatically, accurately and efficiently positioned, the scanning area can be automatically adjusted along with the personnel, and the beneficial effect of flexibly and intelligently controlling the work of the fan is achieved.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a fan control method according to an embodiment of the present invention, including:
step S01: and acquiring image information of an initial scanning area of the oscillating fan.
Step S02: a one-dimensional coordinate system is constructed based on the initial scan area.
Step S03: and determining the number of persons in the initial scanning area, the center point of the person image and the pixel center point of the figure recognition image according to the image information.
Step S04: and determining the direction of the person corresponding to the center point of the person image relative to the human shape recognition unit based on the center point of the person image and the pixel center point of the human shape recognition unit recognition image.
Step S05: and controlling the human shape recognition unit to rotate towards the position where the person is located, and recording the position coordinate of the current person in the one-dimensional coordinate system when detecting that the human shape recognition unit is over against the position direction of the person.
Step S06: and determining a scanning area of the oscillating fan according to the number of the personnel and the position coordinates, and controlling the fan to work in the scanning area.
In the embodiment of the present invention, step S01 may specifically be to acquire image information of an initial scanning area where the fan shakes, by using a human shape recognition unit, where the initial scanning area may correspond to a maximum area that can be scanned in a rotation process of the fan, or a scanning area set in a last use, and the human shape recognition unit may be set to rotate along with the fan, so that real-time monitoring is possible, a monitoring range is expanded, and no blind area exists.
Step S02 may specifically be to use a center line of the human-shaped recognition unit, that is, an initial position of the fan, as a starting point, and construct a one-dimensional coordinate system corresponding to an angle rotated by the fan when the fan is in the panning mode, where position coordinates in the one-dimensional coordinate system correspond to angles rotated by the fan relative to the initial position in a one-to-one manner.
As a specific example, referring to fig. 2, fig. 2 is a schematic diagram of a one-dimensional coordinate system constructed based on an initial scanning area, where a starting point of an initial position of a fan may be a forward direction of a one-dimensional coordinate x, and a direction in which the fan rotates from its initial position to its rightmost side corresponds to the forward direction of the one-dimensional coordinate x, so as to convert the scanning area of the fan into a one-dimensional coordinate.
Based on the constructed one-dimensional coordinate system, the position coordinates of each person appearing in the initial scanning area in the one-dimensional coordinate system can be determined, and the position of the person can be more accurately determined by effectively recognizing the slight change of the position of the person.
Step S03 may specifically be to identify the number of people in the image information by using a deep neural network convolution model, so as to determine the number of people appearing in the initial scanning area.
In addition, referring to fig. 3, fig. 3 is a schematic diagram illustrating detecting coordinates of a person image, and as an example, a person detection module is used to obtain first boundary projection coordinates and second boundary projection coordinates of the person image in a preset direction from image information, and determine a center point of the person image according to an average value of a sum of the first boundary projection coordinates and the second boundary projection coordinates. As a specific example, a first boundary projection coordinate P of a person image in the X-axis direction of an image coordinate system is acquired from image information min And second boundary projection coordinates P max Then the person image center point can be represented as P = (P) min +P max )/2。
Step S03 may specifically be: judging the numerical value of the central point of the personnel image and the central point of the pixel of the image recognized by the human shape recognition unit in the same coordinate direction; when the difference value between the pixel center point of the image recognized by the human shape recognition unit and the numerical value of the center point of the personnel image in the same coordinate direction is larger than a preset threshold value, determining that the personnel corresponding to the center point of the personnel image is positioned on the right side of the human shape recognition unit; when the difference value between the central point of the personnel image and the numerical value of the central point of the pixel of the image recognized by the human shape recognition unit in the same coordinate direction is smaller than a preset threshold value, determining that the personnel corresponding to the central point of the personnel image is positioned on the left side of the human shape recognition unit; and when the absolute value of the difference value between the numerical values of the coordinates of the central point of the image pixel and the coordinates of the central point of the personnel image in the same coordinate direction is equal to a preset threshold value, determining that the personnel corresponding to the central point of the personnel image is positioned right in front of the humanoid recognition unit.
Based on the specific example in step S03, based on the center point of the person image and the center point of the pixel of the image recognized by the human shape recognition unit, it may be specifically determined that the orientation of the person corresponding to the center point of the person image with respect to the human shape recognition unit is that, if the pixel of the image obtained from the image information is Px, the coordinate value of the center point of the pixel of the image in the X-axis direction of the image coordinate system is determined to be Px/2 according to the image information, and when Px/2-P > Δ P, it is determined that the person corresponding to the coordinate of the center point of the person image is located on the right side of the human shape recognition unit; when P-Px/2> delta P, determining that the person corresponding to the coordinates of the center point of the person image is positioned on the left side of the human shape recognition unit; when P-Px/2= ± Δ P, it is determined that the person corresponding to the coordinates of the center point of the person image is located directly in front of the human figure recognition unit.
In step S05, when it is determined that the person is located on the left or right side of the human shape recognition unit, the fan is controlled to rotate to the direction in which the person is located, that is, to rotate to the left or right side of the fan. When it is determined that the persons are present on the left side and the right side of the fan at the same time, the fan can be controlled to rotate towards any one side, and when the fan rotates to a person facing the outermost periphery of the side, the fan rotates in the reverse direction until the person facing the outermost periphery of the other side is scanned.
In step S06, as an example, when it is determined that the number of people in the initial scanning area is greater than 1, determining a scanning area where the fan swings according to the corresponding maximum position coordinate and minimum position coordinate in the position coordinates of the multiple people, and controlling the fan to operate in the scanning area. As a specific example, referring to fig. 4, fig. 4 is a schematic diagram illustrating a scanning area for determining the oscillating motion of the fan, wherein 1 person is detected to be present on each of the left and right sides of the fan, the position coordinates of the two persons may respectively correspond to the maximum position coordinate and the minimum position coordinate, the fan is started to oscillate in the oscillating mode, and the scanning is performed on the maximum position coordinate and the minimum position coordinate. So, can realize the scanning region of intelligence location fan, make the fan open the work of shaking the head mode in the scanning region based on determining, reach the effect of practicing thrift the wind regime.
As another example, when it is determined that the number of persons in the initial scanning area is 1, it is determined that the scanning area where the fan shakes the head is zero, and the fan is controlled to turn on the person tracking mode at the position coordinates, thereby achieving an effect of automatically blowing air following the person.
As another example, in the method provided in the embodiment of the present invention, the method may further include:
judging whether the coordinate values of the two boundaries of the scanning area in the one-dimensional coordinate system are the same or not;
when the coordinate values of the two boundaries of the scanning area in the one-dimensional coordinate system are the same, controlling the fan to start a personnel tracking mode at the coordinate value;
when the coordinate values of the two boundaries of the scanning area in the one-dimensional coordinate system are different, the fan is controlled to shake between the two boundaries of the scanning area, and the method can achieve the beneficial effect of intelligently adjusting the working mode according to the position of a person.
In addition, referring to fig. 5, fig. 5 is a schematic flow chart illustrating updating of a fan moving head scanning area according to an embodiment of the present invention. When the fan is controlled to work in the determined scanning area, the method may further include:
step S07: after the scanning area where the fan shakes is determined, when the fan shakes to the boundary of one side of the scanning area, whether a person appears in the area where the distance between the boundary and the boundary is the preset distance is judged.
Step S08: and if the person appears in the area with the distance between the boundary and the boundary being the preset distance, updating a side boundary scanning area of the scanning area according to the position coordinate of the person which appears in the area and is farthest from the boundary.
In addition, the fan includes two boundary sensors, when any one side boundary sensor is triggered in the process of shaking the head of the fan, the method also can include:
the one-dimensional coordinate system takes the coordinate position of one of the boundary sensors as the origin of the one-dimensional coordinate system, and the scanning area of the fan shaking head is updated based on the coordinate of the triggered boundary sensor in the one-dimensional coordinate system and the coordinate of the boundary of the scanning area in the one-dimensional coordinate system.
As an example, the position coordinates are converted into actual position coordinates in a one-dimensional coordinate system constructed based on the boundary sensor, and the scanning area of the fan's head is determined based on the actual position coordinates. The one-dimensional coordinate constructed based on the boundary sensors may be that a position where one of the boundary sensors located at a position of a limit angle that the fan can scan is located is taken as an origin, a direction in which the fan rotates relative to the origin is taken as a forward direction of the one-dimensional coordinate, and actual position coordinates in the one-dimensional coordinate system correspond to angles in which the fan rotates relative to the origin one by one.
So can realize automatic following personnel's position condition, the scanning area of automatic update fan shaking head reaches the beneficial effect of updating fan scanning area.
It should be noted that, in the embodiment of the present invention, the method may further include:
step S09: and acquiring image information in the scanning area within a preset time period, and controlling the fan to stop working when people are not detected in the image information.
In addition, when the presence of a person in the scanning area is detected, the fan is restarted.
It should be noted that, in the embodiment of the present invention, step S09 may be executed first, and then step S07 to step S08 are executed, or step S07 to step S08 may be executed first, and then step S09 is executed, and a specific execution sequence is not specifically limited in the embodiment of the present invention.
The fan comprises a human shape recognition unit, a one-dimensional coordinate system is established based on the initial scanning area by collecting image information of the initial scanning area where the fan shakes, the number of people, the central point of a person image and the central point of a pixel of an image recognized by the human shape recognition unit in the initial scanning area are determined according to the image information, the position of a person corresponding to the central point of the person image relative to the human shape recognition unit is determined based on the central point of the person image and the central point of the pixel of the image recognized by the human shape recognition unit, the human shape recognition unit is controlled to rotate towards the position of the person, the position coordinates of the current person in the one-dimensional coordinate system are recorded when the position direction of the person is detected to be directly opposite to the position direction of the person, and finally the scanning area where the fan shakes is determined according to the number of the people and the position coordinates, and the fan is controlled to work in the scanning area. According to the method, the scanning area of the fan shaking head can be automatically, accurately and efficiently positioned by identifying the position of the personnel relative to the human shape identification unit, the number of the personnel and the position coordinate scanning area of the personnel in the one-dimensional coordinate system, the scanning area can be automatically adjusted by following the personnel, and the beneficial effect of flexibly and intelligently controlling the work of the fan is achieved.
There are many situations in general for the orientation of a person relative to a fan in an initial scanning area, and in the following embodiments, a fan control method provided by an embodiment of the present invention will be described with reference to specific examples.
Example two
Referring to fig. 6, fig. 6 is a schematic view showing the orientation of a person relative to a fan in three states according to the second embodiment of the present invention.
The initial position of the fan is used as a starting point, and the direction of the fan when the fan rotates from the starting position to the right side corresponds to the positive direction of the one-dimensional coordinate system. The corresponding position coordinate at the starting position of the fan is x f =0, if fan turns to its right side, x f Do x f Calculating; if the fan is turned to its left side, x f Do x f -calculating.
Referring to the distribution a shown in fig. 6, when it is determined that the orientation of the person corresponding to the coordinates of the center point of the person image with respect to the human shape recognition unit is located on the left and right sides of the human shape recognition unit based on the center point of the person image and the center point of the pixel of the image recognized by the human shape recognition unit, the fan may be controlled to rotate to the right side first, and x is the distribution f Do x f And + calculation, when the human shape recognition unit is detected to be facing to the position direction of the person and no person is detected to the right side of the person, namely the fan is facing to the person positioned at the rightmost side of the initial position, the position coordinate x of the current person in the one-dimensional coordinate system constructed based on the initial scanning area can be recorded f =x a1 And takes the coordinates as the maximum position coordinates. At the same time, the fan is controlled to rotate to the left side, x f Do x f -calculating when it is detected that the human form recognition unit is facing the direction of the position of the person and no person is detected to the left of the person, i.e. the fan is facing the person to the left of its initial position, then it is recorded whenPosition coordinate x of former person in one-dimensional coordinate system constructed based on initial scanning area f =x a2 . At the moment, the fan shakes the head of the scanning area at the position coordinate x a1 And x a2 Between the defined areas.
Referring to the b-distribution shown in fig. 6, when it is determined that the orientation of the person corresponding to the coordinates of the center point of the person image with respect to the human shape recognition unit is located at the right side of the human shape recognition unit based on the center point of the person image and the center point of the pixel of the recognition image of the human shape recognition unit, the fan is controlled to rotate to the right side thereof, x f Do x f Calculating, namely recording the position coordinate x of the current person in a one-dimensional coordinate system constructed based on the initial scanning area when the position direction of the first person opposite to the fan is detected f =x b1 And taking the coordinate as a minimum position coordinate, and controlling the fan to continue rotating towards the right side, x f Continue to do x f And calculating, when the human-shaped recognition unit is detected to be facing to the position direction of the person and no person is detected to be present on the right side of the person, namely the fan is facing to the person positioned on the rightmost side of the initial position of the person, recording the position coordinate x of the current person in a one-dimensional coordinate system constructed based on the initial scanning area f =x b2 . At the moment, the fan shakes the head of the scanning area at the position coordinate x b1 And x b2 Between the defined areas.
Referring to the c-distribution shown in fig. 6, when it is determined that the orientation of the person corresponding to the coordinates of the center point of the person image with respect to the human shape recognition unit is located on the left side of the human shape recognition unit based on the center point of the person image and the center point of the pixel of the recognition image of the human shape recognition unit, the fan is controlled to rotate to the left side thereof, x f Do x f -calculating, upon detection of the direction of the position of the first person facing the human form recognition unit, the position coordinates x of the current person in a one-dimensional coordinate system constructed on the basis of the initial scanning area can be recorded f =x c1 And taking the coordinate as the maximum position coordinate, and controlling the fan to continue rotating towards the left side, x f Proceed to do x f -calculating, upon detection of a positive alignment of the human form recognition unitWhen the direction of the position of the person is located and no person is detected on the left side of the person, namely the fan is facing the person located at the leftmost side of the initial position of the person, the position coordinate x of the current person in the one-dimensional coordinate system constructed based on the initial scanning area can be recorded f =x c2 . At the moment, the fan shakes the head of the scanning area and the position coordinate x b1 And x b2 Between the defined areas.
In addition, when the fan is controlled to work in the determined scanning area, the scanning area of the fan can be updated in real time, as shown in fig. 7, fig. 7 is a schematic diagram illustrating a state in which the scanning area of the fan needs to be updated.
Referring to state B shown in fig. 7, the fan rotates to the right side thereof, and when the fan rotates to a direction opposite to the maximum position coordinate, it is detected whether a person is present at the right side of the maximum position coordinate, and if the person is present, the fan is controlled to continue to rotate to the right, and the maximum position coordinate x of the fan scanning area is updated max
Referring to the state a shown in fig. 7, the fan rotates to the left side thereof, and when the fan rotates to a direction opposite to the minimum position coordinate, it is detected whether a person is present at the left side of the minimum position coordinate, and if the person is present, the fan is controlled to continue rotating to the left, and the minimum position coordinate x of the fan scanning area is updated min
When the boundary sensor is triggered during the scanning process of the updated fan, the scanning area of the fan shaking head can be determined based on the one-dimensional coordinate system constructed by the boundary sensor, and the maximum position coordinate and the minimum position coordinate determined in the one-dimensional coordinate system constructed by the fan are converted into the one-dimensional coordinate system constructed by the boundary sensor.
As an example, when the fan triggers the boundary sensor located at the leftmost side of the rotatable range as a starting point, and the direction of the fan rotating from the leftmost side to the right side corresponds to the forward direction of the one-dimensional coordinate system, the timer is passed every t 1 Generating one-time interruption and one-time shaking head corresponding to the longest time t 2 It can be determined that the boundary sensor is located in the one-dimensional coordinate system constructed based on the boundary sensorThe position coordinate of the boundary sensor at the rightmost side of the fan is X t =t 2 /t 1 . Specifically, please refer to fig. 8, in which fig. 8 is a schematic diagram illustrating a state in which the fan scanning area needs to be updated and the boundary sensor is triggered.
Referring to the A state shown in FIG. 8, when the maximum position coordinate x is determined last time max At, Δ x located at the right side of the maximum position coordinate is detected 1 When a person appears, the fan is controlled to rotate towards the right side of the fan continuously, the boundary sensor is triggered when the fan is opposite to the person located at the rightmost side of the fan, and the position coordinate of the current person in the one-dimensional coordinate system constructed on the basis of the initial scanning area is x max +Δx 1 Then the updated maximum position coordinate is further converted into a one-dimensional coordinate system constructed based on the boundary sensor, and the maximum position coordinate X is corresponded at this time max =X t Minimum position coordinate X min =X t -Δx 1 -(x max -x min )。
Referring to the B state shown in FIG. 8, when the minimum position coordinate x was last determined min At, Δ x located to the left of the minimum position coordinate is detected 2 When a person appears, the fan is controlled to rotate towards the left side of the fan, the boundary sensor is triggered when the fan is opposite to the person located at the leftmost side of the fan, and the position coordinate of the current person in the one-dimensional coordinate system constructed on the basis of the initial scanning area is x min +Δx 2 Then the updated minimum position coordinate is further converted into a one-dimensional coordinate system constructed based on the boundary sensor, and the minimum position coordinate X is corresponded at the moment min =0, maximum position coordinate X max =Δx 2 +(x max -x min )。
Referring to fig. 9, fig. 9 is a schematic view illustrating a fan provided by an embodiment of the present invention in a person tracking mode. When the fan rotates to A 1 When the boundary sensor at the rightmost side of the fan is triggered, the position coordinate corresponding to the person is X t And then X is max =X min =X t (ii) a When the fan rotates to A 2 Boundary sensing at the leftmost side of a triggered fanWhen the person is in motion, the corresponding position coordinate of the person is 0, and X is the same max =X min =0。
In the fan control method provided in the second embodiment of the present invention, when the boundary sensor is not triggered, the fan scanning area in different states is determined through the one-dimensional coordinate system constructed based on the initial scanning area, and the fan scanning area is updated by detecting whether a person appears outside the fan scanning area in real time, so that the fan can be effectively and intelligently controlled to work; in addition, when the boundary sensor is triggered, the position coordinate determined in the one-dimensional coordinate system constructed based on the initial scanning area is converted into the one-dimensional coordinate system constructed based on the boundary sensor, and the position change can be rapidly identified.
Referring to fig. 10, in another aspect of the present invention, there is provided a fan control apparatus including:
and the acquisition module 101 is used for acquiring image information of an initial scanning area of the fan shaking head.
A construction module 102 for constructing a one-dimensional coordinate system based on the initial scan area.
And the analysis module 103 is used for determining the number of people in the initial scanning area, the coordinates of the center point of the person image and the pixel center point of the human shape recognition image according to the image information.
A determining module 104, configured to determine, based on the person image center point and the pixel center point of the human shape recognition image, an orientation of the person corresponding to the person image center point with respect to the human shape recognition unit.
And the positioning module 105 is used for controlling the human shape recognition unit to rotate towards the position of the person, and recording the position coordinate of the current person in the one-dimensional coordinate system when the human shape recognition unit is detected to be over against the position direction of the person.
And the control module 106 is used for determining a scanning area where the fan shakes according to the number of the persons and the position coordinates, and controlling the fan to work in the scanning area.
In another aspect of the present application, a storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, can implement the fan control method in the above-mentioned first embodiment or second embodiment.
In another aspect of the present application, an electronic device is further provided, which includes a memory and a controller, where the memory stores a computer program, and the controller, when executing the computer program stored in the memory, can implement the fan control method in the first embodiment or the second embodiment.
Referring to fig. 11, in another aspect of the present application, there is also provided a fan including: the fan control method according to the first embodiment or the second embodiment can be implemented when the controller 113 executes the computer program stored in the memory 112.
As an example, the fan may be further provided with two boundary sensors 114 respectively located at both sides of the fan at the fan rotation angle limit positions and a human shape recognition unit 115 for collecting and recognizing a person.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. A fan control method, wherein the fan includes a human form recognition unit, the method comprising:
collecting image information of an initial scanning area where the fan shakes;
constructing a one-dimensional coordinate system based on the initial scanning area;
determining the number of personnel in the initial scanning area, the central point of the personnel image and the central point of the pixel of the identification image of the human shape identification unit according to the image information;
determining the direction of a person corresponding to the center point of the person image relative to the human shape recognition unit based on the center point of the person image and the pixel center point of the human shape recognition unit recognition image;
controlling the human shape recognition unit to rotate towards the position of the person, and recording the position coordinate of the current person in the one-dimensional coordinate system when the human shape recognition unit is detected to be over against the position direction of the person;
according to the number of the people and the position coordinates, determining a scanning area where the fan shakes the head, controlling the fan to work in the scanning area, wherein the fan comprises two boundary sensors, and when the boundary sensors on any side are triggered in the process of shaking the head of the fan, the method further comprises the following steps:
and the one-dimensional coordinate system takes the coordinate position of one of the boundary sensors as the origin of the one-dimensional coordinate system, and the scanning area of the oscillating fan is updated based on the triggered coordinates of the boundary sensor in the one-dimensional coordinate system and the coordinates of the boundary of the scanning area in the one-dimensional coordinate system.
2. The method of claim 1, wherein determining a person image center point from the image information comprises:
acquiring a first boundary projection coordinate and a second boundary projection coordinate of the personnel image in a preset direction from the image information;
and determining the central point of the personnel image according to the average value of the sum of the first boundary projection coordinate and the second boundary projection coordinate.
3. The method of claim 1, wherein determining the orientation of the person corresponding to the person image center point relative to the human shape recognition unit based on the person image center point and the pixel center point of the human shape recognition image comprises:
judging the numerical value of the center point of the personnel image and the pixel center point of the image recognized by the human shape recognition unit in the same coordinate direction;
when the difference value between the pixel center point of the image recognized by the human shape recognition unit and the numerical value of the person image center point in the same coordinate direction is larger than a preset threshold value, determining that a person corresponding to the person image center point is positioned on the right side of the human shape recognition unit;
when the difference value between the numerical values of the central point of the personnel image and the central point of the pixel of the image recognized by the human shape recognition unit in the same coordinate direction is larger than the preset threshold value, determining that the personnel corresponding to the central point of the personnel image is positioned on the left side of the human shape recognition unit;
and when the absolute value of the difference value between the pixel center point of the image recognized by the human shape recognition unit and the numerical value of the person image center point in the same coordinate direction is equal to the preset threshold value, determining that the person corresponding to the person image center point is positioned right in front of the human shape recognition unit.
4. The method of claim 1, wherein determining a scanning area in which the fan is moving according to the number of people and the position coordinates, and controlling the fan to operate in the scanning area comprises:
when the number of the persons in the initial scanning area is larger than 1, determining a scanning area where the fan shakes according to the corresponding maximum position coordinate and minimum position coordinate in the position coordinates of the persons, and controlling the fan to work in the scanning area;
and when the number of the persons in the initial scanning area is determined to be 1, determining that the scanning area where the fan shakes the head is zero, and controlling the fan to start a person tracking mode at the position coordinates.
5. The method according to any one of claims 1 to 4, further comprising:
after the scanning area where the fan shakes is determined, when the fan shakes to a boundary of one side of the scanning area, judging whether a person appears in the area where the distance between the boundary and the boundary is a preset distance; and if a person appears in an area with the distance between the boundary and the boundary being a preset distance, updating the boundary of the scanning area by using the position coordinates of the person appearing in the area and farthest from the boundary.
6. The method of claim 1, further comprising:
acquiring the image information in the scanning area within a preset time period;
and when no person is detected in the image information, controlling the fan to stop working.
7. The method of claim 1, further comprising:
judging whether the coordinate values of the two boundaries of the scanning area in the one-dimensional coordinate system are the same or not;
when the coordinate values of the two boundaries of the scanning area in the one-dimensional coordinate system are the same, controlling the fan to start a personnel tracking mode at the coordinate value;
and when the coordinate values of the two boundaries of the scanning area in the one-dimensional coordinate system are different, controlling the fan to swing between the two boundaries of the scanning area.
8. A fan control apparatus, characterized in that the fan includes a human shape recognition unit, the fan control apparatus comprising:
the acquisition module is used for acquiring image information of an initial scanning area of the oscillating fan;
a construction module for constructing a one-dimensional coordinate system based on the initial scanning region;
the analysis module is used for determining the number of personnel in the initial scanning area, the coordinates of the central point of the personnel image and the pixel central point of the identification image of the human shape identification unit according to the image information;
a determining module, configured to determine, based on the person image center point and a pixel center point of the human shape recognition unit recognition image, an orientation of a person corresponding to the person image center point with respect to the human shape recognition unit;
the positioning module is used for controlling the human shape recognition unit to rotate to the position of the person, and recording the position coordinate of the current person in the one-dimensional coordinate system when the human shape recognition unit is detected to be over against the position direction of the person;
and the control module is used for determining a scanning area where the fan shakes according to the number of the persons and the position coordinates, and controlling the fan to work in the scanning area, wherein the fan comprises two boundary sensors, when the boundary sensors on any side are triggered in the fan shaking process, the one-dimensional coordinate system takes the coordinate position of one of the boundary sensors as the origin of the one-dimensional coordinate system, and the scanning area where the fan shakes is updated based on the triggered coordinates of the boundary sensors in the one-dimensional coordinate system and the coordinates of the boundary of the scanning area in the one-dimensional coordinate system.
9. A storage medium, characterized in that the storage medium has stored therein a computer program which, when executed by a processor, is capable of implementing a fan control method according to any one of claims 1 to 7.
10. An electronic device comprising a memory having a computer program stored therein and a controller capable of implementing the fan control method of any one of claims 1 to 7 when executing the computer program stored in the memory.
11. A fan, comprising: a fan body, a memory in which a computer program is stored, and a controller capable of implementing the fan control method according to any one of claims 1 to 7 when the controller executes the computer program stored in the memory.
CN202010785445.0A 2020-08-06 2020-08-06 Fan control method and device, storage medium, electronic equipment and fan Active CN114060300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010785445.0A CN114060300B (en) 2020-08-06 2020-08-06 Fan control method and device, storage medium, electronic equipment and fan

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010785445.0A CN114060300B (en) 2020-08-06 2020-08-06 Fan control method and device, storage medium, electronic equipment and fan

Publications (2)

Publication Number Publication Date
CN114060300A CN114060300A (en) 2022-02-18
CN114060300B true CN114060300B (en) 2022-11-18

Family

ID=80232439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010785445.0A Active CN114060300B (en) 2020-08-06 2020-08-06 Fan control method and device, storage medium, electronic equipment and fan

Country Status (1)

Country Link
CN (1) CN114060300B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012029103A1 (en) * 2010-08-30 2012-03-08 パイオニア株式会社 Human body position detection device and human body position detection method
JP2012057840A (en) * 2010-09-07 2012-03-22 Denso Wave Inc Air conditioning control device, and human detection group management method for the same
CN106122060A (en) * 2016-08-23 2016-11-16 美的智慧家居科技有限公司 Terminal, fan and the method being used for controlling fan
CN107061339A (en) * 2017-06-30 2017-08-18 广东美的环境电器制造有限公司 Electric fan and its control method
CN107314511A (en) * 2017-08-23 2017-11-03 广东美的制冷设备有限公司 The control method and device of air-conditioning equipment, air-conditioning
CN208185032U (en) * 2018-04-16 2018-12-04 福州大学 A kind of adjustable height and the electric fan of 360 degree of air-supplies

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012029103A1 (en) * 2010-08-30 2012-03-08 パイオニア株式会社 Human body position detection device and human body position detection method
JP2012057840A (en) * 2010-09-07 2012-03-22 Denso Wave Inc Air conditioning control device, and human detection group management method for the same
CN106122060A (en) * 2016-08-23 2016-11-16 美的智慧家居科技有限公司 Terminal, fan and the method being used for controlling fan
CN107061339A (en) * 2017-06-30 2017-08-18 广东美的环境电器制造有限公司 Electric fan and its control method
CN107314511A (en) * 2017-08-23 2017-11-03 广东美的制冷设备有限公司 The control method and device of air-conditioning equipment, air-conditioning
CN208185032U (en) * 2018-04-16 2018-12-04 福州大学 A kind of adjustable height and the electric fan of 360 degree of air-supplies

Also Published As

Publication number Publication date
CN114060300A (en) 2022-02-18

Similar Documents

Publication Publication Date Title
US11257223B2 (en) Systems and methods for user detection, identification, and localization within a defined space
CN106780608B (en) Pose information estimation method and device and movable equipment
EP3781896B1 (en) System for locating and identifying an object in unconstrained environments
US10717193B2 (en) Artificial intelligence moving robot and control method thereof
US9977954B2 (en) Robot cleaner and method for controlling a robot cleaner
WO2019179441A1 (en) Focus tracking method and device of smart apparatus, smart apparatus, and storage medium
JP5001930B2 (en) Motion recognition apparatus and method
WO2020125499A9 (en) Operation prompting method and glasses
EP3159859B1 (en) Human presence detection in a home surveillance system
WO2019179443A1 (en) Continuous wake-up method and apparatus for intelligent device, intelligent device, and storage medium
CN109079809B (en) Robot screen unlocking method and device, intelligent device and storage medium
Jean et al. Robust visual servo control of a mobile robot for object tracking using shape parameters
JP2005078375A (en) Direction recognition device, direction recognition method, direction recognition system, and robot device
CN105554439A (en) Modification of at least one parameter used by a video processing
US10909388B2 (en) Population density determination from multi-camera sourced imagery
US11119501B2 (en) Moving robot and control method for the same
CN110378216B (en) Target detection method, target detection device, image pickup apparatus, and storage medium
TW201246089A (en) Method for setting dynamic environmental image borders and method for instantly determining the content of staff member activities
JP6583450B2 (en) Proactive data acquisition for appearance model maintenance by mobile robot
US20110304730A1 (en) Pan, tilt, and zoom camera and method for aiming ptz camera
KR20120033414A (en) Robot for operating recognition of self-position and operation method thereof
CN114060300B (en) Fan control method and device, storage medium, electronic equipment and fan
EP4354853A1 (en) Thermal-image-monitoring system using plurality of cameras
WO2019165613A1 (en) Control method for mobile device, device, and storage device
JP2007303913A (en) Foreign matter detecting device, robot device using the same, foreign matter detection method, and foreign matter detection program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant