Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, provides a kind of and detects based on smart machine method and the smart machine whether user is tired.Provide a kind of by detecting the method whether user is tired, thereby avoided user to cause work because of absent minded, impact in life, has improved security.
The technical scheme that technical solution problem of the present invention adopts is as follows:
Based on smart machine, detect the method whether user is tired, wherein, comprise step:
A, measure user under the state of sitting up straight in advance, distance between chin and clavicle is called standard and sits up straight distance, and recording user is when different activity scene, the distance in the unit interval between chin and clavicle is not equal to the benchmark number of times that described standard is sat up straight distance, and is stored in smart machine;
B, when needing fatigue detecting, detect in real time active user's chin and clavicle spacing and whether be less than described standard and sit up straight distance; When be less than described standard sit up straight apart from time in real time and in the record unit time increasing progressively between chin and clavicle distance not etc. described standard sit up straight the number of times of distance, be current number of times;
C, by described current number of times and predetermined comparing for detection of the whether tired benchmark number of times of user, when described current number of times is less than described the first benchmark number of times, judge that active user belongs to tired, doze state is also reminded active user.
Described detects based on smart machine the method whether user is tired, and wherein, described steps A specifically comprises:
A1, measure user under the state of sitting up straight in advance, the distance between chin and clavicle is called standard and sits up straight distance h 1, is stored in the memory headroom of smart machine;
A2 and recording user are being run, while speaking scene, distance in unit interval between chin and clavicle is not equal to the benchmark number of times that described standard is sat up straight distance h 1, minute another name running benchmark number of times f (1), and the benchmark number of times f (2) that speaks is stored in memory headroom; Chin often rocks once, f+1.
Described based on smart machine, detect the method whether user is tired, wherein, described steps A also comprises: pre-define the benchmark number of times f (2) that speaks described in being for for detection of the whether tired benchmark number of times of user.
Described based on smart machine, detect the method whether user is tired, wherein, described steps A also comprises: chin and interclavicular distance when corresponding path being set entering different activity scene for user, this setting can be entered or fast be entered by menu.
Described detects based on smart machine the method whether user is tired, and wherein, the unit interval during described steps A is concrete is 1 minute, 2 minutes or 3 minutes.
Described detects based on smart machine the method whether user is tired, and wherein, described step C specifically comprises:
C1, call current real-time described current number of times;
C2 and call running, while speaking scene, the distance in the unit interval between chin and clavicle is not equal to the described running benchmark number of times f (1) that standard is sat up straight distance h 1, and benchmark number of times f (2) speaks;
C3, described current number of times f (t) and described running benchmark number of times f (1), the benchmark number of times f (2) that speaks are contrasted;
C4, when running benchmark number of times f (1) described in described current number of times f (t) >, judgement user be non-fatigue, doze state;
As the benchmark number of times f (1) that runs described in described current number of times f (t) <, and further judge whether described current number of times f (t) is greater than the benchmark number of times f (2) that speaks, if be greater than the benchmark number of times f (2) that speaks, judge that user's brain is in speaking or than the more active state of speaking, non-fatigue, doze state; The benchmark number of times f (2) if described current number of times f (t) < speaks, judges that user is in fatigue, doze state, and export corresponding result and carry out corresponding prompting.
A smart machine, wherein, comprising:
Measurement in advance and logging modle, for measuring in advance user under the state of sitting up straight, distance between chin and clavicle is called standard and sits up straight distance, and recording user is when different activity scene, distance in unit interval between chin and clavicle is not equal to the benchmark number of times that described standard is sat up straight distance, and is stored in smart machine;
Detection module, for when needing fatigue detecting, detects in real time active user's chin and clavicle spacing and whether is less than described standard and sits up straight distance; When be less than described standard sit up straight apart from time in real time and in the record unit time increasing progressively between chin and clavicle distance not etc. described standard sit up straight the number of times of distance, be current number of times;
Contrast judge module, for comparing for detection of the whether tired benchmark number of times of user that described current number of times and is scheduled to, when described current number of times is less than described the first benchmark number of times, judge that active user belongs to tired, doze state is also reminded active user.
Described smart machine, wherein, described measurement in advance comprises with logging modle:
Measuring unit, for measuring in advance user under the state of sitting up straight, the distance between chin and clavicle is called standard and sits up straight distance h 1, is stored in the memory headroom of smart machine;
Record cell, for recording user, running, while speaking scene, the distance in the unit interval between chin and clavicle is not equal to the benchmark number of times that described standard is sat up straight distance h 1, divide another name running benchmark number of times f (1), the benchmark number of times f (2) that speaks is stored in memory headroom; Chin often rocks once, f+1;
Pre-defined unit, for pre-defining the benchmark number of times f (2) that speaks described in being for for detection of the whether tired benchmark number of times of user.
Described smart machine, wherein, described contrast judge module comprises:
The first call unit, for calling current real-time described current number of times;
The second call unit, for calling running, while speaking scene, the distance in the unit interval between chin and clavicle is not equal to the described running benchmark number of times f (1) that standard is sat up straight distance h 1, and benchmark number of times f (2) speaks;
Contrast unit, for contrasting described current number of times f (t) and described running benchmark number of times f (1), the benchmark number of times f (2) that speaks;
Judging unit, for when running benchmark number of times f (1) described in described current number of times f (t) >, judgement user is non-fatigue, doze state; As the benchmark number of times f (1) that runs described in described current number of times f (t) <, and further judge whether described current number of times f (t) is greater than the benchmark number of times f (2) that speaks, if be greater than the benchmark number of times f (2) that speaks, judge that user's brain is in speaking or than the more active state of speaking, non-fatigue, doze state; The benchmark number of times f (2) if described current number of times f (t) < speaks, judges that user is in fatigue, doze state, and export corresponding result and carry out corresponding prompting;
Described smart machine, wherein, described measurement in advance comprises with logging modle: menu setting unit, chin and interclavicular distance while entering different activity scene for corresponding path is set for user, this setting can be entered or fast be entered by menu;
The described step unit interval is 1 minute, 2 minutes or 3 minutes.
Provided by the present invention based on smart machine detection user whether tired method and smart machine, make smart machine increase new function: to there is fatigue detecting function, within the unit interval, by detecting user's chin, depart from the number of times of normal height, thereby contrast and judge the whether fatigue state in dozing off of user with number of times that chin in the various situations of user departs from normal height, thereby avoid user to cause work because of absent minded, impact in life, has improved security.
Embodiment
Whether provided by the present invention based on smart machine detection user tired method and smart machine, for making object of the present invention, technical scheme and advantage clearer, clear and definite, referring to accompanying drawing, developing simultaneously, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 the present invention is based on the process flow diagram that smart machine detects the preferred embodiment of the method whether user is tired.A kind of shown in Fig. 1 detects based on smart machine the method whether user is tired, comprises the following steps:
S100, measure user under the state of sitting up straight in advance, distance between chin and clavicle is called standard and sits up straight distance, and recording user is when different activity scene, distance in unit interval between chin and clavicle is not equal to the benchmark number of times that described standard is sat up straight distance, and is stored in smart machine.
In the embodiment of the present invention, primarily need to measure in advance user under the state of sitting up straight, the distance between chin and clavicle is called standard and sits up straight distance h 1, is stored in the memory headroom of smart machine.As shown in Figure 2.
And recording user is being run, while the scene such as speaking, distance in unit interval between chin and clavicle is not equal to the benchmark number of times that described standard is sat up straight distance h 1, minute another name running benchmark number of times f (1), and the benchmark number of times f (2) that speaks is stored in memory headroom; Chin often rocks once, f+1.Certainly the different activity scenes described in the embodiment of the present invention include but not limited to that user is running, the scene such as speak.
In the specific embodiment of the invention, distance between described chin and clavicle is less than described standard and sits up straight distance, and the distance in the unit interval between chin and clavicle is not equal to the benchmark number of times that described standard is sat up straight distance h 1, when the benchmark number of times of speaking is than usual also few, be less than while speaking benchmark number of times f (2), the chin that user is described rock number of times seldom and also chin and clavicle between rock distance and be also less than standard and sit up straight distance h 1, illustrate that user is substantially in fatigue, doze state, so speak described in definition in the present embodiment, benchmark number of times f (2) is for detection of the whether tired benchmark number of times of user.
Wherein, recording duration and can being arranged voluntarily by user of unit interval, can be also that the time of standard is as 1min(minute), 2min, 3min.Smart machine arranges corresponding path and for user, enters chin and the interclavicular distance that gathers above scene, and this arranges can be to enter by menu, can be also the various paths such as fast to enter.
The data of record are above stored in smart machine, for example can and the input data of module end as a comparison, by record data in the situation that user opens real-time detection, the data that module operation is called as a comparison.
Smart machine in the present invention comprises intelligent mobile terminal and Wearable equipment, and its Wearable equipment comprises glasses, bracelet, necklace etc., and intelligent mobile terminal comprises mobile phone, with the other-end of camera.
S200, when needing fatigue detecting, detect in real time active user's chin and clavicle spacing and whether be less than described standard and sit up straight distance; When be less than described standard sit up straight apart from time in real time and in the record unit time increasing progressively between chin and clavicle distance not etc. described standard sit up straight the number of times of distance, be current number of times.
In the embodiment of the present invention, after opening the fatigue detecting function of smart machine, detecting in real time active user's chin and clavicle spacing, whether to be less than the distance between chin and clavicle in the situation of sitting up straight be that described standard is sat up straight distance h 1.Real time record active user's chin and interclavicular current distance h (t), when h (t) <h (1), in real time and in the record unit time increasing progressively between chin and clavicle distance not etc. described standard sit up straight the number of times f (t) of distance h 1.
S300, by described current number of times and one for detection of user whether tired the first tired benchmark number of times compare, when described current number of times is less than described the first tired benchmark number of times, judge that active user belongs to tired, doze state is also reminded active user.
In the invention process, the benchmark number of times of described current number of times and each activity scene need to be compared, for example, the real-time described current number of times f (t) of gained and running benchmark number of times f (1) will be detected, the benchmark number of times f (2) that speaks intersects relatively, and export comparing result, and belong to tired, doze state according to judging whether.
Because user because brain response is blunt, loosens musculi colli when dozing off, when musculi colli relax to the weight that is not enough to supporting member, head will be naturally toward sagging.Because this person is when dozing off, will form a piecemeal posture.When nodding, chin and interclavicular distance will reduce.And because now brain response is blunt, the frequency of nodding can be lower than speaking at ordinary times, the frequency while walking etc.So speak described in definition in the present embodiment, benchmark number of times f (2) is for detection of the whether tired benchmark number of times of user
Wherein, contrast judgement flow process is as follows:
1) smart machine calls current real-time described current number of times f (t);
2) smart machine calls running, while the scene such as speaking, the distance in the unit interval between chin and clavicle is not equal to the number of times f (1) that standard is sat up straight distance h 1, f (2), call described running benchmark number of times f (1), benchmark number of times f (2) speaks;
3), described current number of times f (t) and described running benchmark number of times f (1), the benchmark number of times f (2) that speaks are contrasted.When running benchmark number of times f (1) described in described current number of times f (t) >, illustrate that the current frequency of nodding of user is greater than the frequency while running, health is more positive than strenuous exercise state; So judgement user is non-fatigue, doze state; As the benchmark number of times f (1) that runs described in described current number of times f (t) <, for increasing degree of accuracy, further judge whether described current number of times f (t) is greater than the benchmark number of times f (2) that speaks, if be greater than the benchmark number of times f (2) that speaks, judge that user's brain is in speaking or than the more active state of speaking, non-fatigue, doze state; The benchmark number of times f (2) if described current number of times f (t) < speaks, judges that user is in fatigue, doze state, and export corresponding result and provide user reminding or other warning etc.
Therefore, the invention provides a kind of by detecting the method whether user tired, thereby avoid user to cause work because of absent minded, impact in life, has improved security.
Based on above-described embodiment, the present invention also provides a kind of smart machine, and the smart machine in the present invention comprises intelligent mobile terminal and Wearable equipment, and its Wearable equipment comprises glasses, bracelet, necklace etc., intelligent mobile terminal comprises mobile phone, with the other-end of camera.As shown in Figure 3, described smart machine, comprising:
Measure in advance with logging modle 310, for measuring in advance user under the state of sitting up straight, distance between chin and clavicle is called standard and sits up straight distance, and recording user is when different activity scene, distance in unit interval between chin and clavicle is not equal to the benchmark number of times that described standard is sat up straight distance, and is stored in smart machine; Specifically as described in above-mentioned steps S100.
Detection module 320, for when needing fatigue detecting, detects in real time active user's chin and clavicle spacing and whether is less than described standard and sits up straight distance; When be less than described standard sit up straight apart from time in real time and in the record unit time increasing progressively between chin and clavicle distance not etc. described standard sit up straight the number of times of distance, be current number of times; Specifically as described in above-mentioned steps S200.
Contrast judge module 330, for comparing for detection of the whether tired benchmark number of times of user that described current number of times and is scheduled to, when described current number of times is less than described the first benchmark number of times, judge that active user belongs to tired, doze state is also reminded active user; Specifically as described in above-mentioned steps S300.。
Described smart machine, wherein, described measurement in advance comprises with logging modle 100:
Measuring unit, for measuring in advance user under the state of sitting up straight, the distance between chin and clavicle is called standard and sits up straight distance h 1, is stored in the memory headroom of smart machine; Specifically as described in above-mentioned steps S100.
Record cell, for recording user, running, while speaking scene, the distance in the unit interval between chin and clavicle is not equal to the benchmark number of times that described standard is sat up straight distance h 1, divide another name running benchmark number of times f (1), the benchmark number of times f (2) that speaks is stored in memory headroom; Chin often rocks once, f+1; Specifically as described in above-mentioned steps S100.
Pre-defined unit, for pre-defining the benchmark number of times f (2) that speaks described in being for for detection of the whether tired benchmark number of times of user; Specifically as described in above-mentioned steps S100.
Described smart machine, wherein, described contrast judge module 300 comprises:
The first call unit, for calling current real-time described current number of times; Specifically as described in above-mentioned steps S300.
The second call unit, for calling running, while speaking scene, the distance in the unit interval between chin and clavicle is not equal to the described running benchmark number of times f (1) that standard is sat up straight distance h 1, and benchmark number of times f (2) speaks; Specifically as described in above-mentioned steps S300.
Contrast unit, for contrasting described current number of times f (t) and described running benchmark number of times f (1), the benchmark number of times f (2) that speaks;
Judging unit, for when running benchmark number of times f (1) described in described current number of times f (t) >, judgement user is non-fatigue, doze state; As the benchmark number of times f (1) that runs described in described current number of times f (t) <, and further judge whether described current number of times f (t) is greater than the benchmark number of times f (2) that speaks, if be greater than the benchmark number of times f (2) that speaks, judge that user's brain is in speaking or than the more active state of speaking, non-fatigue, doze state; The benchmark number of times f (2) if described current number of times f (t) < speaks, judges that user is in fatigue, doze state, and export corresponding result and carry out corresponding prompting; Specifically as described in above-mentioned steps S300.
Described smart machine, wherein, described measurement in advance also comprises with logging modle 100: menu setting unit, and chin and interclavicular distance while entering different activity scene for corresponding path is set for user, this setting can be entered or fast be entered by menu; ; Specifically as described in above-mentioned steps S100.Wherein, the described step unit interval is 1 minute, 2 minutes or 3 minutes.
In sum, provided by the present invention based on smart machine detection user whether tired method and smart machine, make smart machine increase new function: to there is fatigue detecting function, within the unit interval, by detecting user's chin, depart from the number of times of normal height, thereby contrast and judge the whether fatigue state in dozing off of user with number of times that chin in the various situations of user departs from normal height, thereby avoid user to cause work because of absent minded, impact in life, has improved security.
Should be understood that, application of the present invention is not limited to above-mentioned giving an example, and for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection domain of claims of the present invention.