CN114060300A - 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 PDFInfo
- Publication number
- CN114060300A CN114060300A CN202010785445.0A CN202010785445A CN114060300A CN 114060300 A CN114060300 A CN 114060300A CN 202010785445 A CN202010785445 A CN 202010785445A CN 114060300 A CN114060300 A CN 114060300A
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000004590 computer program Methods 0.000 claims description 17
- 230000001960 triggered effect Effects 0.000 claims description 14
- 238000004458 analytical method Methods 0.000 claims description 3
- 238000010276 construction Methods 0.000 claims description 3
- 230000009286 beneficial effect Effects 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 14
- 238000005516 engineering process Methods 0.000 description 7
- 238000001514 detection method Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 241001465754 Metazoa Species 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 1
- 238000007664 blowing Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004091 panning Methods 0.000 description 1
- YJQZYXCXBBCEAQ-UHFFFAOYSA-N ractopamine Chemical compound C=1C=C(O)C=CC=1C(O)CNC(C)CCC1=CC=C(O)C=C1 YJQZYXCXBBCEAQ-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F04—POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
- F04D—NON-POSITIVE-DISPLACEMENT PUMPS
- F04D27/00—Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F04—POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
- F04D—NON-POSITIVE-DISPLACEMENT PUMPS
- F04D25/00—Pumping installations or systems
- F04D25/02—Units comprising pumps and their driving means
- F04D25/08—Units comprising pumps and their driving means the working fluid being air, e.g. for ventilation
- F04D25/10—Units 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/105—Units 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
Landscapes
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- General Engineering & Computer Science (AREA)
- Structures Of Non-Positive Displacement Pumps (AREA)
- Control Of Positive-Displacement Air Blowers (AREA)
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 realizes the beneficial effect of flexibly and intelligently controlling the work of the fan.
Description
Technical Field
The present invention relates to the field of electrical equipment technologies, 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 very few applications in the fan market, and in the prior art, an infrared sensing mode is usually adopted to obtain a crowd distribution area, and a scanning area of a fan head swing is controlled based on crowd distribution, so that the problems that animals and people cannot be distinguished and a blind area is identified easily occur. 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 technical problem, the invention provides a fan control method, a fan control device, a storage medium, an electronic device and a 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 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 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 of the fan shaking head is zero, and controlling the fan to start a person tracking mode at the position coordinate.
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 values;
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 control method, the device, the storage medium, the electronic equipment and the fan are applied, the fan comprises a human-shape recognition unit, the image information of an initial scanning area of the fan shaking head is collected, a one-dimensional coordinate system is constructed 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-shape 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-shape recognition unit is determined based on the pixel center point of the image recognized by the person image recognition unit, the human-shape recognition unit is controlled to rotate to the position of the person, when the position direction of the person is detected to be right opposite to the position direction of the person by the human-shape recognition unit, the position coordinates of the current person in the one-dimensional coordinate system are recorded, and finally, according to the number of the person and the position coordinates, and determining a scanning area of the oscillating head of the fan, and controlling the fan 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 scan 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 very few applications in the fan market, and in the prior art, an infrared sensing mode is usually adopted to obtain a crowd distribution area, and a scanning area of a fan head swing is controlled based on crowd distribution, so that the problems that animals and people cannot be distinguished and a blind area is identified easily occur. 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 distinguish the positions with equal distance from left to right, and cannot accurately and effectively identify the scanning area of the fan swing head.
In view of the above, the present invention provides a fan control method, an apparatus, a storage medium, an electronic device, and a fan, wherein the fan includes a human shape recognition unit, the fan controls the fan to rotate in a direction of a person by acquiring 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 persons in the initial scanning area, a center point of a person image, and a center point of a pixel of an image recognized by the human shape recognition unit according to the image information, determining a position 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 center point of the pixel of the image recognized by the human shape recognition unit, and recording position coordinates of the current person in the one-dimensional coordinate system when the direction of the position of the person is detected to be directly opposite to the person, and finally recording position coordinates of the current person in the one-dimensional coordinate system according to the number of the person and the position coordinates, and determining a scanning area of the oscillating head of the fan, and controlling the fan 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 that a human shape recognition unit is used to collect image information of an initial scanning area where the fan shakes, where the initial scanning area may correspond to a maximum area that can be scanned during rotation of the fan, or a scanning area set in last use, and the human shape recognition unit may be set to rotate along with the fan, so as to enable real-time monitoring, and enlarge a monitoring range without a blind area.
Step S02 may be specifically configured to construct a one-dimensional coordinate system corresponding to an angle that the fan rotates when the fan is in the panning mode, with a center line of the human-shaped recognition unit, that is, an initial position of the fan, as a starting point, where position coordinates in the one-dimensional coordinate system correspond to angles that the fan rotates with respect to the initial position in a one-to-one manner.
As a specific example, referring to fig. 2, fig. 2 is a schematic diagram illustrating a one-dimensional coordinate system constructed based on an initial scanning area according to an embodiment of the present invention, where the initial position of a fan is taken as a starting point, and a direction in which the fan rotates from its initial position to its rightmost side corresponds to a forward direction of a 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 be specifically implemented by using a deep neural network convolution model to identify the number of people in the image information, so that the number of people present in the initial scanning area can be determined.
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 informationminAnd second boundary projection coordinates PmaxThen the person image center point can be represented as P ═ (P ═ P)min+Pmax)/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, determining the orientation of the person corresponding to the center point of the person image with respect to the human shape recognition unit may specifically be that, if the pixel of the image obtained from the image information is Px, determining the coordinate value of the center point of the pixel of the image in the X-axis direction of the image coordinate system as Px/2 according to the image information, and when Px/2-P > Δ P, determining 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 is + -delta P, the person corresponding to the coordinates of the center point of the person image is determined to be positioned right 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, i.e., 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, a scanning area where the fan is shaking is determined according to the corresponding maximum position coordinate and minimum position coordinate among the position coordinates of the plurality of people, and the fan is controlled to operate within 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 further comprises the following steps:
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 can further 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 coordinates of the triggered boundary sensor in the one-dimensional coordinate system and the coordinates 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 the specific execution order is not specifically limited in the embodiment of the present invention.
The fan control method provided by the embodiment of the invention comprises the steps that the fan comprises the human-shaped recognition unit, the one-dimensional coordinate system is established based on the initial scanning area by collecting the image information of the initial scanning area of the fan shaking head, the number of people in the initial scanning area, the center point of the personnel image and the pixel center point of the image recognized by the human-shaped recognition unit are determined according to the image information, the position of the person corresponding to the center point of the personnel image relative to the human-shaped recognition unit is determined based on the center point of the personnel 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 is detected to be directly opposite to the position direction of the person, and finally the scanning area of the fan shaking head is determined according to the number of the person and the position coordinates, and controls the fan to operate within 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 of the fan corresponds to the positive direction of the one-dimensional coordinate system. The corresponding position coordinate at the starting position of the fan is xf0, if the fan is turned to its right, xfDo xfCalculating; if the fan is turned to its left side, xfDo xf-calculating.
Referring to the a distribution shown in fig. 6, in identifying the pixel center point of the image based on the center point of the person image and the human figure identification unit, the coordinate of the center point of the person image is determinedWhen the corresponding person is located at the left and right sides of the human shape recognition unit relative to the direction of the human shape recognition unit, the fan can be controlled to rotate towards the right side, and x isfDo xfAnd 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 areaf=xa1And takes the coordinates as the maximum position coordinates. At the same time, the fan is controlled to rotate to the left side, xfDo xfCalculation, in case it is detected that the human-shaped 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 located at the leftmost position of the person, then the position coordinate x of the current person in the one-dimensional coordinate system constructed on the basis of the initial scanning area can be recordedf=xa2. At the moment, the fan shakes the head of the scanning area at the position coordinate xa1And xa2Between 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, xfDo xfCalculating, 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 detectedf=xb1And taking the coordinate as a minimum position coordinate, and controlling the fan to continue rotating towards the right side, xfContinue to do xfAnd 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 areaf=xb2. At the moment, the fan swings headDrawing the area at its and position coordinates xb1And xb2Between 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, xfDo xf-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 recordedf=xc1And taking the coordinate as the maximum position coordinate, and controlling the fan to continue rotating towards the left side, xfContinue to do xf-calculating, when it is detected that the human-shaped 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 located at the leftmost position of the person, the position coordinate x of the current person in the one-dimensional coordinate system constructed on the basis of the initial scanning area can be recordedf=xc2. At the moment, the fan shakes the head of the scanning area at the position coordinate xb1And xb2Between 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 the 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 rotating to the right, and the maximum position coordinate x of the fan scanning area is updatedmax。
Referring to the state a shown in fig. 7, the fan is rotated to the left side thereof, and when the fan is rotated 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 a person is present, the fan is controlled to continue to rotate to the left, andupdating minimum position coordinate x of fan scanning areamin。
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 t1Generating one-time interruption and one-time shaking head corresponding to the longest time t2In the one-dimensional coordinate system constructed based on the boundary sensors, the position coordinate of the boundary sensor positioned at the rightmost side of the fan can be determined as Xt=t2/t1. 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 timemaxAt, Δ x located at the right side of the maximum position coordinate is detected1When a person appears, the fan is controlled to continue rotating towards the right side of the fan, and 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 based on the initial scanning area is xmax+Δx1Then 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 timemax=XtMinimum position coordinate Xmin=Xt-Δx1-(xmax-xmin)。
Referring to the B state shown in FIG. 8, when the minimum position coordinate x was last determinedminAt, Δ x located to the left of the minimum position coordinate is detected2The person is present, the fan is controlled to continue rotating towards the left side of the fan, and the fan is opposite to the person positioned at the leftmost side of the fanTriggering a boundary sensor when a person is in a working state, wherein the position coordinate of the current person in a one-dimensional coordinate system constructed based on the initial scanning area is xmin+Δx2Then 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 momentminMaximum position coordinate X of 0max=Δx2+(xmax-xmin)。
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 A1When the boundary sensor at the rightmost side of the fan is triggered, the position coordinate corresponding to the person is XtAnd then X ismax=Xmin=Xt(ii) a When the fan rotates to A2When the boundary sensor at the leftmost side of the fan is triggered, the corresponding position coordinate of the person is 0, and X is equal tomax=Xmin=0。
In the fan control method provided by the second embodiment of the present invention, when the boundary sensor is not triggered, the fan scanning areas in different states are determined by the one-dimensional coordinate system constructed based on the initial scanning area, and the fan scanning areas are updated by detecting whether a person appears outside the fan scanning areas 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 region.
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 system comprises a fan body 111, a memory 112 and a controller 113, wherein a computer program is stored in the memory 112, and the fan control method in the first embodiment or the second embodiment can be realized 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 (12)
1. A fan control method, wherein the fan includes a human form recognition unit, the method comprising:
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 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 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.
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 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.
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 of the fan shaking head is zero, and controlling the fan to start a person tracking mode at the position coordinate.
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 at one side 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 any one of claims 1 to 4, wherein the fan comprises two boundary sensors, and when the boundary sensors are triggered on either side during the oscillating of the fan, the method further comprises:
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.
7. 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.
8. 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 values;
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.
9. 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 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.
10. 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 8.
11. An electronic device comprising 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 8 when the controller executes the computer program stored in the memory.
12. 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 8 when the controller executes the computer program stored in the memory.
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 true CN114060300A (en) | 2022-02-18 |
CN114060300B 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)
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 |
-
2020
- 2020-08-06 CN CN202010785445.0A patent/CN114060300B/en active Active
Patent Citations (6)
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 |
---|---|
CN114060300B (en) | 2022-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11257223B2 (en) | Systems and methods for user detection, identification, and localization within a defined space | |
EP3781896B1 (en) | System for locating and identifying an object in unconstrained environments | |
CN106780608B (en) | Pose information estimation method and device and movable equipment | |
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 | |
WO2020125499A9 (en) | Operation prompting method and glasses | |
TW201941643A (en) | A method including its equipment and storage medium to keep intelligent device continuously awake | |
JP5001930B2 (en) | Motion recognition apparatus and method | |
CN105898107B (en) | A kind of target object grasp shoot method and system | |
US9844881B2 (en) | Robotic device including machine vision | |
CN105554439A (en) | Modification of at least one parameter used by a video processing | |
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 | |
CN105930775B (en) | Facial orientation recognition methods based on sensitivity parameter | |
CN110378216B (en) | Target detection method, target detection device, image pickup apparatus, and storage medium | |
JP6583450B2 (en) | Proactive data acquisition for appearance model maintenance by mobile robot | |
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 | |
CN115461794A (en) | Method, system, and non-transitory computer-readable recording medium for estimating user gesture from two-dimensional image | |
CN115988309A (en) | Photographing method and device, robot and readable storage medium | |
US9761009B2 (en) | Motion tracking device control systems and methods | |
CN114037758A (en) | Camera attitude sensing system based on images | |
JP2021071769A (en) | Object tracking device and object tracking method |
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 |