Disclosure of Invention
The invention mainly aims to provide a humidifier control method, and aims to solve the problems that an existing office humidifier is single in function, and the amount of mist cannot be adjusted according to requirements when a user wets a nasal cavity specially.
In order to achieve the above object, the present invention provides a humidifier control method, including step S1: controlling the humidifier to enter a common humidification mode;
s2: starting an image sensor at a mist outlet of the humidifier, acquiring the facial contour of a user, and calculating the contour area SContour profileWhen the outline area meets the preset condition, a position detector positioned at the mist outlet is started, and the method specifically comprises the following steps: comparing the contour area with a preset face contour area S in a controllerPreparation ofComparing, when 80% is less than or equal to SContour profile/SPreparation ofWhen the concentration is less than or equal to 100%, starting a position detector positioned at the mist outlet; when S isContour profile/SPreparation ofWhen the preset condition is not met, the humidifier maintains the current humidification mode;
s3: the distance D between the face and a mist outlet of the humidifier is obtained by using the position detector, and when the distance D is more than or equal to 10cm and less than or equal to 20cm, the controller controls the humidifier to enter a nasal cavity humidifying mode;
wherein, the position detector is infrared human body sensor, utilizes the step that the position detector acquireed face and humidifier fog outlet distance D includes:
an infrared detection step, namely acquiring a human body infrared image by using an infrared human body sensor;
a heat source analysis step, wherein when the temperature of the heat source is greater than or equal to the lower limit value of the normal human body temperature and less than or equal to the upper limit value of the normal human body temperature, the heat source is determined to be a human body heat source, and the distance D between the face and a mist outlet of the humidifier is calculated;
the nasal cavity humidification mode is as follows: the controller adjusts the area of a humidifier fog outlet and adjusts the fog outlet according to the mapping relation between the distance D and the fog outlet S of the humidifier;
the mapping relation between the mist outlet quantity S and the distance D is S = a × D + b, wherein a and b are constants.
Preferably, step S3 is followed by: when D is not more than 10cm and less than or equal to 20cm, the humidifier maintains the current humidification mode.
Preferably, the controller can adjust the fog output of the humidifier according to the human body temperature acquired by the infrared human body sensor.
Preferably, when the controller controls the humidifier to enter the nasal cavity humidifying mode, a prompt is given to remind the user to enter the nasal cavity humidifying mode.
Preferably, the prompt is one of an alarm prompt, a voice prompt and an LED lamp prompt.
Has the advantages that: when the humidifier enters a humidification mode, the area of the face outline is obtained through the image sensor, the face outline is compared with the preset face outline, when the comparison value meets the preset condition, the face is shown to face the humidifier, the position detector is started at the moment, the distance D between the face and the fog outlet is determined, when the distance D between the face and the fog outlet is smaller than the preset value, the requirement that a user has nasal cavity humidification is shown, at the moment, the controller adjusts the area of the fog outlet of the humidifier and controls the fog outlet to enter the nasal cavity humidification mode according to the mapping relation between the distance D and the fog outlet, and the fan rotation speed is controlled to make the fog outlet, the humidification mode is adjusted according to the requirement of the user, the user is more comfortable.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
Fig. 1 is a basic flow chart of the present invention, and the control method of the present invention applies a humidifier including two humidification modes: the nasal cavity humidifying device comprises a common humidifying mode and a nasal cavity humidifying mode, wherein the common humidifying mode is a humidifying mode which is adopted for relieving indoor dryness under the condition of normal room temperature and humidity; the nasal cavity humidifying mode is a humidifying mode adopted by the humidifier according to the distance between the face of the user and the mist outlet of the humidifier after the nasal cavity of the user feels too dry and the humidifier is actively closed;
fig. 2 shows an embodiment of a method for controlling a humidifier according to the present invention. The humidifier control method of this embodiment includes the steps of:
step S1: controlling the humidifier to enter a common humidification mode;
step S2: starting an image sensor at a mist outlet of the humidifier, acquiring the facial contour of a user, and calculating the contour area SContour profileWhen the outline area meets the preset condition, a position detector positioned at the mist outlet is started, and the method specifically comprises the following steps: comparing the contour area with a preset face contour area S in a controllerPreparation ofComparing, when 80% is less than or equal to SContour profile/SPreparation ofWhen the concentration is less than or equal to 100%, starting a position detector positioned at the mist outlet; when S isContour profile/SPreparation ofWhen the preset condition is not met, the humidifier maintains the current humidification mode;
when the face of the user is close to the mist outlet of the humidifier in the step S2, the image sensor collects the face contour, and the area of the side face contour of the normal person is smaller than the area of the front face contour, and the ratio of the area of the side face contour to the area of the front face contour is increased along with the increase of the angle of the face facing the sensor, so that when the condition that S is more than or equal to 80 percent is met, the ratio of the area of the side face contour to the area of theContour profile/SPreparation ofWhen the content is less than or equal to 100%, the user faces the fog outlet of the humidifier and may have the requirement of moistening the nasal cavity; at this time, the process proceeds to step S3.
Step S3: the distance D between the face and a mist outlet of the humidifier is obtained by using the position detector, and when the distance D is more than or equal to 10cm and less than or equal to 20cm, the controller controls the humidifier to enter a nasal cavity humidifying mode;
when it is detected in step S2 that the user faces the humidifier mist outlet, it indicates that the user may have a need to wet the nasal cavity, but it may also be possible that the user inadvertently faces the humidifier mist outlet when turning his head, and therefore, the distance determination step of step S3 is required, and when the distance D between the user 'S face and the humidifier outlet satisfies 10cm ≦ D ≦ 20cm, it indicates that the user' S face is facing the humidifier mist outlet and is very close to the humidifier mist outlet, it may be determined that the user needs to wet the nasal cavity, and therefore, the controller may control the humidifier to enter the nasal cavity humidifying mode.
In addition, the position detector is an infrared human body sensor, and the step of acquiring the distance D between the face and the fog outlet of the humidifier by using the position detector comprises the following steps:
an infrared detection step, namely acquiring a human body infrared image by using an infrared human body sensor;
a heat source analysis step, wherein when the temperature of the heat source is greater than or equal to the lower limit value of the normal human body temperature and less than or equal to the upper limit value of the normal human body temperature, the heat source is determined to be a human body heat source, and the distance D between the face and a mist outlet of the humidifier is calculated;
the nasal cavity humidification mode is as follows: the controller adjusts the area of a humidifier fog outlet and adjusts the fog outlet according to the mapping relation between the distance D and the fog outlet S of the humidifier;
the mapping relation between the mist outlet quantity S and the distance D is S = a × D + b, wherein a and b are constants. The comfortable mist generation amount S is calculated by the formula S = a × D + b, where a and b are constants, for example, S =0.025 × D +0.01, and the unit is ml/S, the mist generation amount increases as the distance D increases, and when D >20cm, the nasal cavity humidification mode is stopped, and the mode is switched to the normal humidification mode. It can be understood that the values of the parameters a, b, etc. in the above formula can be flexibly set according to specific situations, and do not limit the present invention.
Adjust out the fog volume through adjusting humidifier fog outlet area and fan rotational speed is the conventional technical means in this field, does not further explain here, and the skilled person in this field can know, adjusts the shape that fog can be adjusted to fog outlet area, during nasal cavity humidification mode, can suitably adjust fog outlet area, and the mode that increases the fan rotational speed comes the adaptation and goes out the fog volume, reaches more comfortable purpose.
Further, the step S3 is followed by: when D is not more than 10cm and less than or equal to 20cm, the humidifier maintains the current humidification mode.
The controller can adjust the fog output according to the infrared human body temperature obtained by the infrared human body sensor, for example, when the human body temperature is too high, which indicates indoor drying, the fog output can be properly adjusted, and the fog output is increased.
Further, when the controller controls the humidifier to enter the nasal cavity humidifying mode, a prompt is given to remind a user to enter the nasal cavity humidifying mode.
The prompt is one of alarm prompt, voice prompt and LED lamp prompt.
Fig. 3 is a block diagram of an embodiment of the humidifier with nasal cavity humidification mode according to the present invention, which includes a humidifier body 1, an ultrasonic nebulizer (not shown), a switch (not shown), a mist outlet 106, a controller 102, an image sensor 103, a position detector 104, and a prompt module 105, wherein the image sensor 103 and the position detector 104 are located at the mist outlet.
Specifically, the switch is used for controlling the humidifier to enter a common humidification mode;
the image sensor 103 is used for acquiring a face contour;
the position detector 104 is used for acquiring the distance D between the face and the mist outlet of the humidifier;
the controller 102 is electrically connected with the image sensor 103, the position detector 104 and the prompting module 105;
the controller also comprises a calculating unit, a judging unit, a control unit and an adjusting unit;
wherein, the calculating unit is connected with the image sensor 103 and is used for receiving the face contour and calculating the contour area SContour profileAnd the contour area SContour profileAnd a predetermined profile area SPreparation ofThe ratio of (a) to (b).
The judging unit is used for receiving the data transmitted by the calculating unit and judging whether the data is more than or equal to 80 percentContour profile/SPreparation ofWhen the temperature is less than or equal to 100%, sending a signal to the control unit, and starting a position detector positioned at the mist outlet by the control unit; when the user face is close to the humidifier fog outlet, the image sensor can collect the face outline, because the side face outline area of the regular person is smaller than the front face outline area, and along with the increase of the angle of the face towards the sensor, the ratio of the side face outline area to the front face outline area is increased, therefore, when the requirement of 80% S is less than or equal toContour profile/SPreparation ofWhen the content is less than or equal to 100 percent, the user faces the fog outlet of the humidifier and is likely to have the requirement of moistening the nasal cavity.
The judging unit is also used for judging that when D is more than or equal to 10cm and less than or equal to 20cm, a signal is sent to the control unit, and the control unit controls the humidifier to enter a nasal cavity humidifying mode;
the adjusting unit is used for adjusting the area of a humidifier fog outlet and adjusting the fog outlet quantity according to the mapping relation between the distance D and the fog outlet quantity S of the humidifier;
the mapping relation between the mist outlet quantity S and the distance D is S = a × D + b, wherein a and b are constants; the comfortable mist generation amount S is calculated by the formula S = a × D + b, where a and b are constants, for example, S =0.025 × D +0.01, and the unit is ml/S, the mist generation amount increases as the distance D increases, and when D >20cm, the nasal cavity humidification mode is stopped, and the mode is switched to the normal humidification mode. It can be understood that the values of the parameters a, b, etc. in the above formula can be flexibly set according to specific situations, and do not limit the present invention.
Adjust out the fog volume through adjusting humidifier fog outlet area and fan rotational speed is the conventional technical means in this field, does not further explain here, and the skilled person in this field can know, adjusts the shape that fog can be adjusted to fog outlet area, during nasal cavity humidification mode, can suitably adjust fog outlet area, and the mode that increases the fan rotational speed comes the adaptation and goes out the fog volume, reaches more comfortable purpose.
The position sensor is an infrared human body sensor, and the step of acquiring the distance D between the face and the fog outlet of the humidifier by using the position sensor comprises the following steps:
an infrared detection step, namely acquiring a human body infrared image by using an infrared human body sensor;
a heat source analysis step, wherein when the temperature of the heat source is greater than or equal to the lower limit value of the normal human body temperature and less than or equal to the upper limit value of the normal human body temperature, the heat source is determined to be a human body heat source, and the distance D between the face and a mist outlet of the humidifier is calculated;
further, the controller 102 is also configured to maintain the current humidification mode when D ≦ 20cm is not satisfied at 10cm ≦ D ≦ 20 cm.
Further, the controller can adjust the fog output of the humidifier according to the human body temperature acquired by the infrared human body sensor.
Further, the nasal cavity humidifier further comprises a prompting module 105, and when the controller 102 controls the humidifier to enter the nasal cavity humidifying mode, a prompt is given to remind a user to enter the nasal cavity humidifying mode.
Further, the prompt mode 105 is one of an alarm prompt, a voice prompt, and an LED light prompt.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.