CN108443965A - Dormant detection method, device, air conditioner and readable storage medium storing program for executing - Google Patents
Dormant detection method, device, air conditioner and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN108443965A CN108443965A CN201810275507.6A CN201810275507A CN108443965A CN 108443965 A CN108443965 A CN 108443965A CN 201810275507 A CN201810275507 A CN 201810275507A CN 108443965 A CN108443965 A CN 108443965A
- Authority
- CN
- China
- Prior art keywords
- human body
- body image
- shift length
- confirming
- detection method
- 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.)
- Pending
Links
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F1/00—Room units for air-conditioning, e.g. separate or self-contained units or units receiving primary air from a central station
- F24F1/0007—Indoor units, e.g. fan coil units
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/62—Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
- F24F11/63—Electronic processing
- F24F11/65—Electronic processing for selecting an operating mode
- F24F11/66—Sleep mode
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F2120/00—Control inputs relating to users or occupants
- F24F2120/10—Occupancy
- F24F2120/14—Activity of occupants
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Chemical & Material Sciences (AREA)
- Combustion & Propulsion (AREA)
- Mechanical Engineering (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- Air Conditioning Control Device (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
The invention discloses a kind of dormant detection methods, including:Obtain air conditioner human body image in the environment;Obtain the shift length of the target location of the human body image, wherein the shift length includes the length travel distance and lateral displacement distance of human body image;When confirming that the shift length is less than the pre-determined distance, confirm that current human is in sleep state.The invention also discloses a kind of dormant detection device, air conditioner and readable storage medium storing program for executing.The human body image that the present invention is detected by infrared sensor confirms the sleep state of active user with the relevant information of the human body image, realizes and confirms the dormant advantageous effect of user by the detection of infrared sensor.
Description
Technical field
The present invention relates to air conditioner controlling technology field more particularly to a kind of dormant detection method, device, air conditioners
And readable storage medium storing program for executing.
Background technology
Air-conditioning has become the necessity in people's life, with the development of air conditioner intelligent, application of infrared transducer in
It detects human body heat source and air conditioning operating mode is adjusted with this and improve the comfortable sexual experience of human body as usual way, and in air conditioner
In practical application, human body is very big to the demand difference of air conditioning operating mode in sleep state and waking state, but the prior art
Human body can not be detected by infrared sensor whether in sleep state.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill
Art.
Invention content
The main purpose of the present invention is to provide a kind of dormant detection methods, it is intended to which solution currently cannot be by red
Outer sensor detects the technical issues of user's sleep state.
To achieve the above object, a kind of dormant detection method provided by the invention, the dormant detection
Method includes the following steps:
Obtain air conditioner human body image in the environment;
Obtain the shift length of the target location of the human body image, wherein the shift length includes human body image
Length travel distance and lateral displacement distance;
When confirming that the shift length is less than the pre-determined distance, confirm that current human is in sleep state.
Preferably, described when confirming that the shift length is less than the pre-determined distance, confirm that current human is in sleep
The step of state further includes:
When confirming that the shift length is less than the pre-determined distance, the static duration of human body is obtained;
When confirming that the static duration of human body is more than the first preset time, confirm that current human is in sleep state.
Preferably, described when confirming that the shift length is less than the pre-determined distance, confirm that current human is in sleep
The step of state further includes:
When confirming that the shift length is less than the pre-determined distance, timing acquisition user's head temperature;
The temperature gap of the user's head temperature and initial head temperature is calculated, and is more than in the confirmation temperature gap
When preset temperature, confirm that current human is in sleep state.
Preferably, it is described obtain air conditioner human body image in the environment the step of after, further include:
Obtain the horizontal pixel width of the human body image and longitudinal pixel wide;
When the horizontal pixel width is more than longitudinal pixel wide, the mesh for obtaining the human body image is executed
The step of shift length of cursor position.
Preferably, after the step of horizontal pixel width and longitudinal direction pixel wide of the acquisition human body image, also
Including:
When confirming that the horizontal pixel width is more than longitudinal pixel wide, the horizontal pixel width and institute are obtained
State the difference between longitudinal pixel wide;
When the difference is more than preset difference value, the shift length of the target location for obtaining the human body image is executed
The step of.
Preferably, after the step of horizontal pixel width and longitudinal direction pixel wide of the acquisition human body image, also
Including:
When confirming that the horizontal pixel width is less than or equal to longitudinal pixel wide, the human body image is obtained
The static duration of human body;
When the static duration of the human body is more than second preset time, the mesh for obtaining the human body image is executed
The step of shift length of cursor position, wherein second preset time is more than first preset time.
Preferably, the detection method of the sleep quality state further includes:
When confirming that the shift length is more than the pre-determined distance, the static duration of the human body counted on is reset.
In addition, to achieve the above object, the present invention also provides a kind of dormant detection devices, including:Memory, place
Reason device and the dormant detection program that is stored on the memory and can run on the processor, the sleep shape
The step of dormant detection method as described above is realized when the detection program of state is executed by the processor.
The present invention also provides a kind of air conditioner, the air conditioner includes dormant detection device as described above;Institute
Air conditioner setting infrared sensor is stated, the infrared sensor is connect with processor signal, for detecting human body image.
The present invention also provides a kind of readable storage medium storing program for executing, dormant detection journey is stored on the readable storage medium storing program for executing
Sequence, the dormant detection program realize the step of dormant detection method as described above when being executed by processor
Suddenly.
The present invention provides a kind of dormant detection method, by obtain air conditioner human figure in the environment
Picture;Obtain the shift length of the target location of the human body image, wherein the shift length includes longitudinal position of human body image
Move distance and lateral displacement distance;When confirming that the shift length is less than the pre-determined distance, confirms that current human is in and sleep
Dormancy state.Human body image is detected by infrared sensor with the detection method of the present invention, and User Activity is obtained with human body image
Information and then confirmation user's sleep state, realize the advantageous effect that body state is confirmed by infrared sensor.
Description of the drawings
Fig. 1 be the hardware running environment that the embodiment of the present invention is related to terminal apparatus structure schematic diagram;
Fig. 2 is the flow diagram of the first embodiment of the dormant detection method of the present invention;
Fig. 3 is the flow diagram of the second embodiment of the dormant detection method of the present invention;
Fig. 4 is the flow diagram of the 3rd embodiment of the dormant detection method of the present invention;
Fig. 5 is the flow diagram of the fourth embodiment of the dormant detection method of the present invention;
Fig. 6 is the flow diagram of the 5th embodiment of the dormant detection method of the present invention;
Fig. 7 is that human body image moves schematic diagram;
Fig. 8 is the human body image schematic diagram of standing or sitting posture;
Fig. 9 is the human body image schematic diagram to lie down.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:Obtain air conditioner human body image in the environment;Described in acquisition
The shift length of the target location of human body image, wherein the shift length includes the length travel distance and cross of human body image
To shift length;When confirming that the shift length is less than the pre-determined distance, confirm that current human is in sleep state.
Due in the prior art, sleep quality state whether, is closely bound up with operating modes of air conditioner, but the prior art
Infrared sensor can not detect sleep quality state, and the use of infrared sensor is reduced when thus air conditioner being caused to be applied
Degree.
The present invention provides a solution, the human body image detected by infrared sensor, with the human body image
Pixel Information and user activity data confirm the current sleep state of user.It realizes and is confirmed by the detection of infrared sensor
The dormant advantageous effect of user.
As shown in Figure 1, the terminal structure schematic diagram for the hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to.
Terminal of the embodiment of the present invention can be the terminal device that air conditioner, clarifier etc. have air conditioning function.Such as Fig. 1
Shown, which includes:Processor 1001, such as CPU, network interface 1004, user interface 1003, memory 1005 lead to
Believe bus 1002.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap
It includes than illustrating more or fewer components, either combines certain components or different components arrangement.
As shown in Figure 1, as may include operating system, net in a kind of memory 1005 of computer readable storage medium
Network communication module, Subscriber Interface Module SIM and dormant detection program.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, is carried out with background server
Data communicate;User interface 1003 is mainly used for connecting client (user terminal), with client into row data communication;And processor
1001 can be used for calling the dormant detection program stored in memory 1005, and execute following operation:
Obtain air conditioner human body image in the environment;
Obtain the shift length of the target location of the human body image, wherein the shift length includes human body image
Length travel distance and lateral displacement distance;
When confirming that the shift length is less than the pre-determined distance, confirm that current human is in sleep state.
Further, processor 1001 can call the dormant detection program stored in memory 1005, also hold
The following operation of row:
When confirming that the shift length is less than the pre-determined distance, the static duration of human body is obtained;
When confirming that the static duration of human body is more than the first preset time, confirm that current human is in sleep state.
Further, processor 1001 can call the dormant detection program stored in memory 1005, also hold
The following operation of row:
When confirming that the shift length is less than the pre-determined distance, timing acquisition user's head temperature;
The temperature gap of the user's head temperature and initial head temperature is calculated, and is more than in the confirmation temperature gap
When preset temperature, confirm that current human is in sleep state.
Further, processor 1001 can call the dormant detection program stored in memory 1005, also hold
The following operation of row:
Obtain the horizontal pixel width of the human body image and longitudinal pixel wide;
When the horizontal pixel width is more than longitudinal pixel wide, the mesh for obtaining the human body image is executed
The step of shift length of cursor position.
Further, processor 1001 can call the dormant detection program stored in memory 1005, also hold
The following operation of row:
When confirming that the horizontal pixel width is more than longitudinal pixel wide, the horizontal pixel width and institute are obtained
State the difference between longitudinal pixel wide;
When the difference is more than preset difference value, the shift length of the target location for obtaining the human body image is executed
The step of.
Further, processor 1001 can call the dormant detection program stored in memory 1005, also hold
The following operation of row:
When confirming that the horizontal pixel width is less than or equal to longitudinal pixel wide, the human body image is obtained
The static duration of human body;
When the static duration of the human body is more than second preset time, the mesh for obtaining the human body image is executed
The step of shift length of cursor position, wherein second preset time is more than first preset time.
Further, processor 1001 can call the dormant detection program stored in memory 1005, also hold
The following operation of row:
When confirming that the shift length is more than the pre-determined distance, the static duration of the human body counted on is reset.
With reference to Fig. 2, Fig. 2 is the flow diagram of the dormant detection method first embodiment of the present invention.
In one embodiment, the dormant detection method includes:
Step S10, obtain air conditioner human body image in the environment;
Based on the operating status of current air conditioner, after the infrared sensor for opening the air conditioner, by described infrared
The infrared ray of sensor diverging obtain the air conditioner human body image in the environment.Wherein, the infrared sensor can be set
In on the air conditioner, or it is placed in and has on other electronic equipments of connection relation with the air conditioner.
Step S20 obtains the shift length of the target location of the human body image, wherein the shift length includes people
The length travel distance and lateral displacement distance of body image;
The shift length of active user target location, and base are obtained by the human body image that the infrared sensor is got
The shift length of the human body target position is obtained in the human body image, wherein the target location is defined as the human body
The maximum point of heat source position, the i.e. part of trunk in image, can confirm when the distance of trunk does not change and work as
Preceding human body remains static;The shift length includes the length travel distance and lateral displacement distance of human body image, described
Shift length can be as shown in Figure 7 human body image move schematic diagram, infrared scan indoor temperature field is divided into 32*24 units, horizontal
It is Unit 32 to x, longitudinal y is Unit 24, and infrared detection Moving Heat Sources track, after time t second, heat source is from the position (x1, y1)
It sets and is moved to the position (x2, y2), the shift length of X-direction movement is defined as Sx, and the shift length of Y-direction movement is defined as
Sy, and then confirm current human's state with the distance values of the Sx and Sy.
Step S30 confirms that current human is in sleep shape when confirming that the shift length is less than the pre-determined distance
State.
Based on the shift length currently got, the shift length is compared with pre-determined distance, is confirmed with comparison result
Current body state.As shown in figure 5, the shift length is defined as human body image target location of the user in preset time
Displacement distance, and count displacement distance on the basis of the heat source peak of the human body image.In practical applications, human body exists
Turn, adjustment sleeping posture, trick stance adjustment etc. are not will produce large-scale position to move under sleep state.Therefore,
The Sx that will be had confirmed that, Sy are compared with pre-determined distance respectively, confirm body state according to comparison result.Confirmed with this and is worked as
Before the shift length that gets whether be less than pre-determined distance, and when confirming that the shift length is less than the pre-determined distance, really
Body of recognizing people is in sleep state.Wherein, the pre-determined distance, when to set local displacement when body of recognizing people really is in sleep state
Max-thresholds.Further, it is less than if may be defined as Sx when the pre-determined distance compares by the Sx, Sy
Either Sy is less than the pre-determined distance also to the pre-determined distance or Sx, Sy are both less than the pre-determined distance three above condition,
It can confirm that current human is in sleep state, various human body sleeping positions are adapted to this.
In the present embodiment, the shift length that current human's image that infrared sensor is got obtains current human is crossed,
And current body state is confirmed based on the shift length, it realizes and operation acknowledgement current human is detected by infrared sensor
The advantageous effect of state.
With reference to figure 3, the flow diagram of the detection method second embodiment of the positions Fig. 3 the present inventor's somatic sleep state is based on
First embodiment shown in above-mentioned, it is described when confirming that the shift length is less than the pre-determined distance, confirm at current human
In the sleep state the step of, further include:
Step S40 obtains the static duration of human body when confirming that the shift length is less than the pre-determined distance;
Step S50 confirms that current human is in sleep when confirming that the static duration of human body is more than the first preset time
State.
It is when confirming that current shift length is less than the pre-determined distance, the static duration of the human body got and first is pre-
If Time transfer receiver, current human's state is confirmed according to the static duration of the human body and the comparison result of the first preset time;If institute
It states the static duration of human body and is more than the first preset time, confirm that active user is in sleep state.Wherein, described first it is default when
Between, the user to have set enters the quiescent time slept based on average under state of couching.
When confirming current human's state with shift length, there is also the excessive possibilities of shift length, therefore, the people
The detection method of somatic sleep state further includes:
When confirming that the shift length is more than the pre-determined distance, the static duration of the human body counted on is reset.
The shift length got is compared with pre-determined distance, confirm the shift length be more than it is described it is default away from
From when, confirm that current human be in nonstatic state, by the human body counted on static duration clearing, i.e., as shown in fig. 7, true
Recognize the Sx and confirms that current human is in nonstatic state when Sy has one of them or is both more than the pre-determined distance.And
When detecting that human body is static again, the static duration of the human body is counted.
In the present embodiment, confirms body state by counting the static duration of human body, realize and detected by infrared sensor
The advantageous effect of body state.
With reference to figure 4, Fig. 4 is the flow diagram of the dormant detection method 3rd embodiment of the present invention, based on above-mentioned
Shown in the first and second embodiment, it is described when confirming that the shift length is less than the pre-determined distance, confirm that current human is in
The step of sleep state further includes:
Step S60, when confirming that the shift length is less than the pre-determined distance, timing acquisition user's head temperature;
Step S70 calculates the temperature gap of the user's head temperature and initial head temperature, and is confirming the temperature
When difference is more than preset temperature, confirm that current human is in sleep state.
When confirming that current shift length is less than the pre-determined distance, current user's head temperature is obtained, and with described
User's head temperature is compared with the user's initial temperature detected before, calculates the temperature gap, and described in calculating
Temperature gap is compared with preset temperature, confirms current body state,;Confirming the temperature gap more than the preset temperature
When, confirm that current human is in sleep state.Such validation testing is that contemporary scientific technology has confirmed that under normal circumstances,
Human body has differences before falling asleep with the body temperature after falling asleep, the initial head temperature in sleep state, exists for air conditioner
After opening the infrared sensor, the user's body temperature got at the first time is defined as initial head temperature.And the default temperature
Degree is under defined user's sleep state, with temperature gap threshold value when waking state.
In the present embodiment, by obtaining active user's head temperature, the temperature of temperature and current head temperature before falling asleep is calculated
Difference is spent, when confirming that the temperature gap is more than preset temperature, confirms that current human is in sleep state, realizes by red
Outer sensor detection confirms the advantageous effect of body state.
With reference to figure 5, Fig. 5 is the flow diagram of the detection method fourth embodiment of the present inventor's somatic sleep state, is based on
First, second and third embodiment shown in above-mentioned, it is described obtain air conditioner human body image in the environment the step of after, also wrap
It includes:
Step S80 obtains the horizontal pixel width of the human body image and longitudinal pixel wide;
Step S90 executes the acquisition human body when the horizontal pixel width is more than longitudinal pixel wide
The step of shift length of the target location of image.
Based on the human body image got, the horizontal pixel width of active user is confirmed in the human body image and is indulged
Confirm current human's posture to pixel wide, and with the horizontal pixel width and longitudinal pixel wide, is specifically included in really
When recognizing the horizontal pixel width more than longitudinal pixel wide, confirmation current human is state of couching, and by having confirmed that
The body state, the step of executing the shift length of the target location for obtaining the human body image.
As described above, reality by horizontal pixel width in human body image and longitudinal pixel wide confirm human posture
The step of now confirming body state, further, after confirming that the horizontal pixel is more than longitudinal pixel, i.e., the described acquisition
After the step of horizontal pixel width of the human body image and longitudinal pixel wide, further include:
When confirming that the horizontal pixel width is more than longitudinal pixel wide, the horizontal pixel width and institute are obtained
State the difference between longitudinal pixel wide;
When the difference is more than preset difference value, the shift length of the target location for obtaining the human body image is executed
The step of.
When confirming current human's posture based on the human body image got, if the horizontal pixel width is more than described indulge
To pixel wide, then confirm the difference of the horizontal pixel width and longitudinal pixel wide, and by the difference with it is described
Default value compares, and the further accurate human posture, when confirming that the difference is more than the preset difference value, confirmation is worked as
The posture of preceding human body is state of couching, further executes the shift length of the target location for obtaining the human body image
Step.
Wherein, pixel value difference is being calculated with the horizontal pixel width, longitudinal pixel wide, and true with the pixel value difference
When recognizing human posture.Its concrete operations further includes obtaining the numerical value of corresponding preset difference value with the current pixel value difference calculated;
The reason of human body image that cause is got, in the horizontal pixel width for getting the human body image and longitudinal pixel wide,
There are two types of the modes for calculating pixel value difference:First, horizontal pixel width calculates pixel value difference with longitudinal pixel wide;Second, it indulges
Pixel value difference is calculated to pixel wide and horizontal pixel width, obtained numerical value has differences, to avoid the human body image
Corresponding human posture confirms mistake, and corresponding default value is set according to the calculation for calculating the pixel value difference, such as
The default value corresponding to pixel value difference that horizontal pixel width is calculated with longitudinal pixel wide is the first default value.According to
The calculation of the pixel value difference calculated obtains corresponding preset difference value.Confirming that the preset difference value is first default
When numerical value, i.e., when the calculation of the described pixel value difference is that horizontal pixel width subtracts longitudinal pixel wide, by the pixel difference
Value is compared with first preset difference value, confirms human posture with the comparison result.Confirming the pixel value difference more than institute
When stating the first default value, confirmation current human is state of couching, i.e., when horizontal pixel width is more than longitudinal pixel wide, human body
When lying down, it is highly greater than width;When confirming that the pixel value difference is less than or equal to first default value, confirmation is worked as
Preceding human body is non-state of couching.
In the present embodiment, the operation that the human body image that human body arrives confirms sleep quality state is being obtained by infrared sensor
In, can also confirm current body state by horizontal pixel width in human body image and longitudinal pixel wide, that is, lie down with
It is non-to lie down, it realizes when detecting body state with infrared sensor, confirms human body by further analyzing human posture
Dormant advantageous effect.
With reference to figure 6, Fig. 6 is the flow diagram of the 5th embodiment of detection method of the present inventor's somatic sleep state, is based on
First, second and third and fourth embodiment shown in above-mentioned, the horizontal pixel width for obtaining the human body image and longitudinal pixel
After the step of width, further include:
Step S100, when confirming that the horizontal pixel width is less than or equal to longitudinal pixel wide, described in acquisition
The static duration of human body of human body image;
Step S110 executes the acquisition people when the static duration of the human body is more than second preset time
The step of shift length of the target location of body image, wherein second preset time is more than first preset time.
When confirming human posture with the horizontal pixel width and longitudinal pixel wide, if confirming the lateral picture
Plain width is less than or equal to longitudinal pixel wide, and confirmation current human's state is non-state of couching, is based on such situation, really
It is non-state of couching to recognize current human's posture, confirms whether human body enters sleep state under non-state of couching to be further,
The static duration of human body counted on is obtained, and the static duration of the human body is compared with the second preset time.Described in confirmation
When the static duration of human body is more than second preset time, confirm that current human is further possibly into sleep state
The step of confirming body state, executing the shift length of the target location for obtaining the human body image, and with the displacement
Distance confirms current human's state, wherein second preset time be with the user of setting under non-state of couching into sleep
The time of dormancy, and second preset time is more than first preset time.
As described above in such a way that horizontal pixel width and longitudinal pixel wide confirm current human's state, people is being confirmed
The horizontal pixel width of body image and longitudinal pixel wide, also need, based on the human body image got, to obtain the human body heat source
In each target area pixel, wherein the target area pixel is defined as the transverse direction of location of pixels in the human body image
Maximum pixel, minimum pixel and the maximum pixel of longitudinal direction and minimum pixel, showing as human body image pixel as described in Fig. 8,9
It is intended to, wherein Fig. 8 is that human body image schematic diagram, Fig. 9 of standing or sitting posture are the human body image schematic diagram to lie down.To get
Transverse direction and longitudinal direction pixel value, calculate the pixel wide of the transverse direction and longitudinal direction, the pixel wide is equal to the maximum picture
The plain difference between the minimum pixel.Further, it when confirming body state with the human body image, is also based on having examined
The human body image measured confirms the human body image according to the horizontal pixel width calculated and longitudinal pixel wide
Whether effectively, due to user standing place, infrared sensor is may result in when scanning human body image, form human body
Image abnormity confirms current human's figure when confirming that the numerical values recited of the horizontal pixel width and longitudinal pixel wide is consistent
As invalid, the identical horizontal pixel width of factor value and longitudinal pixel wide are formed by human body image and are square, Wu Fatong
The comparison for crossing default value confirms current human's posture, therefore, is confirming the horizontal pixel width and longitudinal pixel wide
When numerical values recited is consistent, the human body image is invalid, and in the numerical value for confirming the horizontal pixel width and longitudinal pixel wide
When cause not of uniform size, confirm that the human body image is effective, executes the horizontal pixel numerical value for obtaining human body image, longitudinal pixel number
And the step of human body static duration.
In the present embodiment, the horizontal pixel width and longitudinal pixel in the human body image detected with infrared sensor are wide
When degree confirms human posture, if confirming that current human's posture is non-lies down based on current horizontal pixel width and longitudinal pixel wide
State confirms whether current human is in the second preset time and sleeps to confirm sleep quality of the human body under non-state of couching
Dormancy state realizes the advantageous effect for improving sleep quality status monitoring accuracy.
In addition, the embodiment of the present invention also proposes a kind of readable storage medium storing program for executing, sleep is stored on the readable storage medium storing program for executing
The detection program of state realizes following operation when the dormant detection program is executed by processor:
Obtain air conditioner human body image in the environment;
Obtain the shift length of the target location of the human body image, wherein the shift length includes human body image
Length travel distance and lateral displacement distance;
When confirming that the shift length is less than the pre-determined distance, confirm that current human is in sleep state.
Further, following operation is also realized when the dormant detection program is executed by processor:
When confirming that the shift length is less than the pre-determined distance, the static duration of human body is obtained;
When confirming that the static duration of human body is more than the first preset time, confirm that current human is in sleep state.
Further, following operation is also realized when the dormant detection program is executed by processor:
When confirming that the shift length is less than the pre-determined distance, timing acquisition user's head temperature;
The temperature gap of the user's head temperature and initial head temperature is calculated, and is more than in the confirmation temperature gap
When preset temperature, confirm that current human is in sleep state.
Further, following operation is also realized when the dormant detection program is executed by processor:
Obtain the horizontal pixel width of the human body image and longitudinal pixel wide;
When the horizontal pixel width is more than longitudinal pixel wide, the mesh for obtaining the human body image is executed
The step of shift length of cursor position.
Further, following operation is also realized when the dormant detection program is executed by processor:
When confirming that the horizontal pixel width is more than longitudinal pixel wide, the horizontal pixel width and institute are obtained
State the difference between longitudinal pixel wide;
When the difference is more than preset difference value, the shift length of the target location for obtaining the human body image is executed
The step of.
Further, following operation is also realized when the dormant detection program is executed by processor:
When confirming that the horizontal pixel width is less than or equal to longitudinal pixel wide, the human body image is obtained
The static duration of human body;
When the static duration of the human body is more than second preset time, the mesh for obtaining the human body image is executed
The step of shift length of cursor position, wherein second preset time is more than first preset time.
Further, following operation is also realized when the dormant detection program is executed by processor:
When confirming that the shift length is more than the pre-determined distance, the static duration of the human body counted on is reset.
In addition, the present invention also provides a kind of air conditioner, the air conditioner includes dormant detection dress as described above
It sets, infrared sensor is arranged in the air conditioner, and the infrared sensor is connect with processor signal, for detecting human body image.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of dormant detection method, which is characterized in that described dormant detection method includes the following steps:
Obtain air conditioner human body image in the environment;
Obtain the shift length of the target location of the human body image, wherein the shift length includes the longitudinal direction of human body image
Shift length and lateral displacement distance;
When confirming that the shift length is less than the pre-determined distance, confirm that current human is in sleep state.
2. dormant detection method as described in claim 1, which is characterized in that described to confirm that the shift length is small
When the pre-determined distance, confirms the step of current human is in sleep state, further include:
When confirming that the shift length is less than the pre-determined distance, the static duration of human body is obtained;
When confirming that the static duration of human body is more than the first preset time, confirm that current human is in sleep state.
3. the detection method of sleep quality state as described in claim 1, which is characterized in that it is described confirm the displacement away from
When from less than the pre-determined distance, confirms the step of current human is in sleep state, further include:
When confirming that the shift length is less than the pre-determined distance, timing acquisition user's head temperature;
The temperature gap of the user's head temperature and initial head temperature is calculated, and is confirming that it is default that the temperature gap is more than
When temperature, confirm that current human is in sleep state.
4. the detection method of sleep quality state as described in claim 1, which is characterized in that ring where the acquisition air conditioner
After the step of human body image in border, further include:
Obtain the horizontal pixel width of the human body image and longitudinal pixel wide;
When the horizontal pixel width is more than longitudinal pixel wide, the target position for obtaining the human body image is executed
The step of shift length set.
5. dormant detection method as claimed in claim 4, which is characterized in that the cross for obtaining the human body image
To after the step of pixel wide and longitudinal pixel wide, further include:
When confirming that the horizontal pixel width is more than longitudinal pixel wide, obtains the horizontal pixel width and indulged with described
To the difference between pixel wide;
When the difference is more than preset difference value, the step of the shift length of the target location for obtaining the human body image is executed
Suddenly.
6. the detection method of sleep quality state as claimed in claim 5, which is characterized in that described to obtain the human body image
Horizontal pixel width and the step of longitudinal pixel wide after, further include:
When confirming that the horizontal pixel width is less than or equal to longitudinal pixel wide, the human body of the human body image is obtained
Static duration;
When the static duration of the human body is more than second preset time, the target position for obtaining the human body image is executed
The step of shift length set, wherein second preset time is more than first preset time.
7. such as the detection method of claim 1 to 6 any one of them sleep quality state, which is characterized in that the human body sleeping
The detection method of dormancy state further includes:
When confirming that the shift length is more than the pre-determined distance, the static duration of the human body counted on is reset.
8. a kind of dormant detection device, which is characterized in that including:Memory, processor and it is stored in the memory
Dormant detection program that is upper and can running on the processor, the dormant detection program is by the processing
The step of dormant detection method as described in any one of claim 1 to 7 is realized when device executes.
9. a kind of air conditioner, which is characterized in that the air conditioner includes dormant detection dress as claimed in claim 8
It sets;Infrared sensor is arranged in the air conditioner, and the infrared sensor is connect with processor signal, for detecting human body image.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with dormant detection journey on the readable storage medium storing program for executing
Sequence, the dormant detection program realize the sleep shape as described in any one of claim 1 to 7 when being executed by processor
The step of detection method of state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810275507.6A CN108443965A (en) | 2018-03-29 | 2018-03-29 | Dormant detection method, device, air conditioner and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810275507.6A CN108443965A (en) | 2018-03-29 | 2018-03-29 | Dormant detection method, device, air conditioner and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108443965A true CN108443965A (en) | 2018-08-24 |
Family
ID=63198426
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810275507.6A Pending CN108443965A (en) | 2018-03-29 | 2018-03-29 | Dormant detection method, device, air conditioner and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108443965A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112833521A (en) * | 2021-01-07 | 2021-05-25 | 南京绛门信息科技股份有限公司 | Intelligent Internet of things management system and method |
CN112902342A (en) * | 2019-12-04 | 2021-06-04 | 佛山市云米电器科技有限公司 | Household equipment control method, system, control equipment and readable storage medium |
CN114007141A (en) * | 2021-10-29 | 2022-02-01 | 海信视像科技股份有限公司 | Intelligent terminal, server and sleep detection display method |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007120815A (en) * | 2005-10-26 | 2007-05-17 | Matsushita Electric Works Ltd | Air conditioning system |
JP2007285562A (en) * | 2006-04-14 | 2007-11-01 | Matsushita Electric Ind Co Ltd | Air-conditioner control device |
CN104344504A (en) * | 2014-10-29 | 2015-02-11 | 深圳市唯传科技有限公司 | Air conditioner conditioning method and system |
CN104764152A (en) * | 2015-03-27 | 2015-07-08 | 武汉海尔电器股份有限公司 | Air conditioner sleeping and running control method |
CN104864554A (en) * | 2015-04-30 | 2015-08-26 | 广东美的制冷设备有限公司 | Air conditioner and control method of same, wearable equipment, and intelligent control equipment |
CN105371436A (en) * | 2015-12-01 | 2016-03-02 | 青岛海尔空调器有限总公司 | Control method for air conditioner during sleep |
CN105605750A (en) * | 2016-03-21 | 2016-05-25 | 王星宇 | Intelligent sleeping air conditioner control method and intelligent wearable device and system |
CN105662371A (en) * | 2014-11-21 | 2016-06-15 | 小米科技有限责任公司 | Alarm method, device and equipment |
CN106196509A (en) * | 2016-08-19 | 2016-12-07 | 珠海格力电器股份有限公司 | Air-conditioning sleep pattern control method and system |
CN106236013A (en) * | 2016-06-22 | 2016-12-21 | 京东方科技集团股份有限公司 | A kind of sleep monitor method and device |
CN106765970A (en) * | 2016-12-30 | 2017-05-31 | 美的集团武汉制冷设备有限公司 | Air-conditioner and its control method |
CN107023955A (en) * | 2017-04-10 | 2017-08-08 | 青岛海尔空调器有限总公司 | Air conditioning control method and air-conditioning |
CN107166645A (en) * | 2017-05-18 | 2017-09-15 | 厦门瑞为信息技术有限公司 | A kind of air conditioning control method analyzed based on indoor scene |
-
2018
- 2018-03-29 CN CN201810275507.6A patent/CN108443965A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007120815A (en) * | 2005-10-26 | 2007-05-17 | Matsushita Electric Works Ltd | Air conditioning system |
JP2007285562A (en) * | 2006-04-14 | 2007-11-01 | Matsushita Electric Ind Co Ltd | Air-conditioner control device |
CN104344504A (en) * | 2014-10-29 | 2015-02-11 | 深圳市唯传科技有限公司 | Air conditioner conditioning method and system |
CN105662371A (en) * | 2014-11-21 | 2016-06-15 | 小米科技有限责任公司 | Alarm method, device and equipment |
CN104764152A (en) * | 2015-03-27 | 2015-07-08 | 武汉海尔电器股份有限公司 | Air conditioner sleeping and running control method |
CN104864554A (en) * | 2015-04-30 | 2015-08-26 | 广东美的制冷设备有限公司 | Air conditioner and control method of same, wearable equipment, and intelligent control equipment |
CN105371436A (en) * | 2015-12-01 | 2016-03-02 | 青岛海尔空调器有限总公司 | Control method for air conditioner during sleep |
CN105605750A (en) * | 2016-03-21 | 2016-05-25 | 王星宇 | Intelligent sleeping air conditioner control method and intelligent wearable device and system |
CN106236013A (en) * | 2016-06-22 | 2016-12-21 | 京东方科技集团股份有限公司 | A kind of sleep monitor method and device |
CN106196509A (en) * | 2016-08-19 | 2016-12-07 | 珠海格力电器股份有限公司 | Air-conditioning sleep pattern control method and system |
CN106765970A (en) * | 2016-12-30 | 2017-05-31 | 美的集团武汉制冷设备有限公司 | Air-conditioner and its control method |
CN107023955A (en) * | 2017-04-10 | 2017-08-08 | 青岛海尔空调器有限总公司 | Air conditioning control method and air-conditioning |
CN107166645A (en) * | 2017-05-18 | 2017-09-15 | 厦门瑞为信息技术有限公司 | A kind of air conditioning control method analyzed based on indoor scene |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112902342A (en) * | 2019-12-04 | 2021-06-04 | 佛山市云米电器科技有限公司 | Household equipment control method, system, control equipment and readable storage medium |
CN112833521A (en) * | 2021-01-07 | 2021-05-25 | 南京绛门信息科技股份有限公司 | Intelligent Internet of things management system and method |
CN114007141A (en) * | 2021-10-29 | 2022-02-01 | 海信视像科技股份有限公司 | Intelligent terminal, server and sleep detection display method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106440245B (en) | Human body position obtaining method and device | |
CN108443965A (en) | Dormant detection method, device, air conditioner and readable storage medium storing program for executing | |
CN108571804B (en) | Air conditioner, parameter adjusting method and device thereof and readable storage medium | |
EP3644219A1 (en) | Human face feature point tracking method, device, storage medium and apparatus | |
US9367734B2 (en) | Apparatus, control method, and storage medium for setting object detection region in an image | |
US20180137332A1 (en) | Method for fingerprint enrollment | |
JP6720909B2 (en) | Action detection device, method and program, and monitored person monitoring device | |
CN108648259B (en) | Image drawing method and device, storage medium and intelligent terminal | |
CN111258357B (en) | Environment distribution establishing method, intelligent device, cleaning robot and storage medium | |
JP6763390B2 (en) | Monitoring systems, monitoring methods, and programs | |
CN110147742B (en) | Key point positioning method, device and terminal | |
CN112178785A (en) | Dehumidification control method and dehumidification control equipment for air conditioner | |
CN110191369A (en) | Image interception method, apparatus, equipment and storage medium | |
CN113052127A (en) | Behavior detection method, behavior detection system, computer equipment and machine readable medium | |
WO2018087912A1 (en) | Control device and control system | |
US20170208604A1 (en) | Smart home control system and method | |
CN108852362A (en) | Dormant detection method, device, air conditioner and readable storage medium storing program for executing | |
CN113673319B (en) | Abnormal gesture detection method, device, electronic device and storage medium | |
JP6264181B2 (en) | Image processing apparatus, image processing method, and image processing program | |
CN109348212A (en) | A kind of picture noise determines method and terminal device | |
CN108990156A (en) | A kind of Wireless LAN communication method, terminal and computer readable storage medium | |
CN105376499B (en) | Dead point bearing calibration, system and the correction system of infrared eye | |
CN114353255B (en) | Air conditioner control method and device, air conditioner and readable storage medium | |
CN106055201A (en) | Intelligent method and device for quickly and randomly adjusting size of screen | |
CN104935811B (en) | A kind of method of adjustment and terminal device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180824 |
|
RJ01 | Rejection of invention patent application after publication |