WO2022247515A1 - Attitude detection method and apparatus, wireless earphone, and storage medium - Google Patents

Attitude detection method and apparatus, wireless earphone, and storage medium Download PDF

Info

Publication number
WO2022247515A1
WO2022247515A1 PCT/CN2022/087055 CN2022087055W WO2022247515A1 WO 2022247515 A1 WO2022247515 A1 WO 2022247515A1 CN 2022087055 W CN2022087055 W CN 2022087055W WO 2022247515 A1 WO2022247515 A1 WO 2022247515A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
head
motion curve
wireless earphone
posture
Prior art date
Application number
PCT/CN2022/087055
Other languages
French (fr)
Chinese (zh)
Inventor
龚勇
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2022247515A1 publication Critical patent/WO2022247515A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Definitions

  • the present disclosure relates to but not limited to the technical field of wireless earphones, and specifically, relates to but not limited to an attitude detection method and device, a wireless earphone and a storage medium.
  • the mobile phone is already the first tool for interaction in work and life, and the car is a tool that provides convenience for work and life.
  • Reasonable use will improve work efficiency and enhance the happiness of life, but unreasonable use will bring very large risks, even life-threatening.
  • Fatigue driving ranks first in highway traffic accidents, and the trend is still rising as automobiles become popular.
  • hand-held calls are likely to cause unstable control due to hands leaving the steering wheel, thereby causing traffic accidents. Therefore, taking your hands off the steering wheel to make a phone call is prohibited by traffic rules. How to make drivers aware of fatigue and keep their hands on the steering wheel has become an important direction of automotive electronics research.
  • the fatigue driving monitoring technology is mainly divided into the following types: the vehicle running track monitoring method, and the fatigue driving monitoring system based on human eyes.
  • the posture detection method, device, wireless earphone and storage medium provided by the present disclosure at least solve the technical problem that the existing wireless earphones do not have abnormal posture detection functions such as user head fatigue posture.
  • the present disclosure provides a posture detection method, which is applied to wireless earphones, including: collecting first motion data of the user's head; generating a motion curve of the user's head according to the collected first motion data; Compare the results, and send an alarm prompt to the user according to the comparison results.
  • the present disclosure also provides a posture detection device, which is applied to wireless earphones, including: a posture acquisition unit, used to collect the first motion data of the user's head; a posture judgment unit, used to generate the user's head according to the collected first motion data The internal motion curve; and obtain the comparison result of the motion curve and the standard motion curve; the posture reminder unit is used to send an alarm prompt to the user according to the comparison result.
  • a posture detection device which is applied to wireless earphones, including: a posture acquisition unit, used to collect the first motion data of the user's head; a posture judgment unit, used to generate the user's head according to the collected first motion data The internal motion curve; and obtain the comparison result of the motion curve and the standard motion curve; the posture reminder unit is used to send an alarm prompt to the user according to the comparison result.
  • the present disclosure also provides a wireless earphone, including: a processor, a memory, and a communication bus; the communication bus is used to realize connection and communication between the processor and the memory; the processor is used to execute one or more computer programs stored in the memory, to The steps of the above attitude detection method are realized.
  • the present disclosure also provides a computer-readable storage medium, where one or more computer programs are stored in the computer-readable storage medium, and one or more computer programs can be executed by one or more processors, so as to realize the gesture detection as described above method steps.
  • FIG. 1 is a schematic flow diagram of a posture detection method in Embodiment 1 of the present disclosure
  • FIG. 2 is a schematic structural diagram of a wireless headset connected to the cloud in Embodiment 1 of the present disclosure
  • FIG. 3 is a schematic diagram of a model of a motion curve in Embodiment 1 of the present disclosure
  • Embodiment 4 is a schematic structural diagram of an attitude detection device in Embodiment 2 of the present disclosure.
  • FIG. 5 is a schematic structural diagram of an attitude detection device in Embodiment 3 of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another attitude detection device in Embodiment 3 of the present disclosure.
  • FIG. 7 is a schematic diagram of a refined process of a posture detection method in Embodiment 3 of the present disclosure.
  • FIG. 8 is a schematic structural diagram of yet another attitude detection device in Embodiment 3 of the present disclosure.
  • FIG. 9 is a schematic diagram of a refined process of yet another attitude detection method in Embodiment 3 of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a wireless earphone in Embodiment 4 of the present disclosure.
  • the fatigue driving monitoring technology is mainly divided into the following types: the vehicle running track monitoring method, and the fatigue driving monitoring system based on human eyes.
  • Vehicle running trajectory monitoring method installs a monitoring running trajectory device on the vehicle, which is used to determine whether the vehicle deviates from the lane through trajectory measurement so as to judge whether the driver is in a fatigue driving state.
  • a monitoring running trajectory device on the vehicle, which is used to determine whether the vehicle deviates from the lane through trajectory measurement so as to judge whether the driver is in a fatigue driving state.
  • the vehicle is running, once it deviates from the track, it means that an accident is about to occur.
  • the time left for the driver to react and take control measures is very short. As a result, even if there is a fatigue driving warning system, the effect is not great.
  • the vehicle does not keep moving in a straight line during driving, so the misjudgment rate is relatively high.
  • Fatigue driving monitoring system based on human eyes This method uses cameras to monitor the state of human eyes, and judges the degree of fatigue according to the degree of opening of human eyes. This method has requirements for the environment. When the light is dark, or when the driver wears dark glasses, the photographing effect is so poor that it is impossible to accurately identify the state of the human eye. When the road is smooth and has no curvature, the vehicle is close to a uniform linear motion, and the driver is prone to visual fatigue and driving posture fatigue. The monitoring system cannot ideally identify these two fatigue levels.
  • the present disclosure provides an attitude detection method applied to a wireless earphone, please refer to FIG. 1 , the attitude detection method includes steps S101 to S103.
  • S101 Collect first motion data of the user's head.
  • before collecting the first motion data of the user's head it further includes: detecting a wearing state of the wireless earphone.
  • the wireless headset when the wireless headset is not worn (that is, the wireless headset is in a non-wearing state), the wireless headset will enter a sleep state to reduce power consumption. Only when the wireless headset is in the wearing state, the posture detection function of the user's head will be turned on. In order to realize the wearing detection function, the wireless headset is built with an acceleration sensor and/or a distance sensor.
  • the distance detector can be an infrared proximity sensor or a capacitive sensor. Among them, the infrared proximity sensor determines the distance between the person and itself according to the intensity of the infrared rays emitted by the infrared rays reflected back by the blocking of the person.
  • the capacitive sensor uses the skin on the human body to approach the contact point to cause a change in capacitance, and the distance between the person and itself is determined according to the change in capacitance.
  • the manner of detecting that the wireless earphone is in the wearing state includes but is limited to the following manners 1 to 3.
  • Method 1 Collect the acceleration value of the wireless headset, and when the acceleration value changes within a preset time, it is determined that the wireless headset is in the wearing state.
  • Method 2 collect the distance value between the wireless headset and the user's head, and determine that the wireless headset is in the wearing state when the distance value is less than or equal to the preset distance threshold within a preset time.
  • Method 3 collect the acceleration value of the wireless earphone and the distance value between the wireless earphone and the user's head respectively. When the acceleration value changes within the preset time and the distance value is less than or equal to the preset distance threshold, it is determined that the wireless earphone is in the wearing state.
  • the way 3 is beneficial to eliminate the situation that the user touches the wireless earphone by mistake, so as to improve the accuracy of wearing detection.
  • the wireless headset is in a dormant state, and the acceleration value of the acceleration sensor is acquired regularly, and when the acceleration value changes within a preset time, it is determined that the wireless headset is moved. Then start the distance detector (such as proximity infrared sensor or capacitive sensor) for further detection, and regularly obtain the distance value of the distance detector. When the distance value is less than or equal to the preset distance threshold within the preset time, it is determined that the wireless headset is worn .
  • the preset distance threshold can be reasonably selected according to the type of the distance detector and the degree of sensitivity required. As an example, the preset distance threshold may be 1mm, 1.5mm, 2.0mm, 2.5mm.
  • the distance detector is kept on, and the distance value of the distance detector is continuously acquired at regular intervals.
  • the distance values are greater than a preset threshold within a preset time, it is determined that the wireless earphone is taken off.
  • the wireless headset is taken off, it will enter a dormant state until it is worn next time.
  • S102 Generate a motion curve of the user's head according to the collected first motion data.
  • the wireless headset has a built-in angular velocity sensor (also called a gyroscope), and the angle and direction of the user's head can be collected through the angular velocity sensor in the wireless headset.
  • the first exercise data includes: the angle, direction and frequency of the wireless earphone.
  • the motion curve of the user's head can be constructed according to the first motion data, and after comparing the motion curve with the standard motion curve, it can be determined whether the posture of the user's head is a normal posture or an abnormal posture.
  • a system can be composed of a wireless headset, a mobile terminal, and the cloud; wherein, the wireless headset is paired with the mobile terminal, and the wireless headset communicates with the cloud through the mobile terminal.
  • the wireless headset can also directly communicate with the cloud.
  • an appropriate execution subject can be selected according to actual application requirements to process the motion data of the user's head to generate a motion curve of the user's head; an appropriate execution subject can also be selected according to actual needs to compare the motion curves Compare with the standard motion curve to get the result.
  • the aforementioned execution subject may be a wireless earphone or a third device, wherein the third party device may be a mobile terminal paired and connected with the wireless earphone, or a cloud communicated with the wireless earphone.
  • the motion curve of the user's head is generated through the wireless earphone according to the collected first motion data; the pre-stored standard motion curve is obtained from the wireless earphone, and the motion curve is compared with the standard motion curve through the wireless earphone to obtain Get the comparison result.
  • the wireless headset has a built-in standard motion curve, which is convenient for the wireless headset to quickly obtain the standard curve motion for subsequent processing. Even when the wireless headset cannot communicate with the mobile terminal and cannot access the cloud, or the wireless headset has no cloud service function and cannot access the cloud, the standard motion curve can be directly obtained from the wireless headset.
  • S1 the first motion of the user's head is detected within a period of time and returns to the initial state, and the timing is reset to calibrate Acceleration sensor and gyroscope.
  • S2 start the collection of head movement posture parameters.
  • S3 When the head movement of the
  • S5 when the rate of acceleration change exceeds the preset threshold, it indicates that the user's sudden head movement is caused by other circumstances, not a natural movement of neck muscle relaxation; follow-up execution of S6.
  • S6 when the angle of the head movement returns to the initial state, the timer is reset to zero, and the next collection of head movement posture parameters is started, and the process returns to S3.
  • a standard motion curve is constructed according to the collected effective head motion posture parameters. As shown in Figure 3, according to the angle and frequency in the effective head movement posture parameters, the user's head movement curve is constructed with forward bending, backward extension, left and right as anchor points.
  • the motion curve of the user's head is generated through the wireless earphone according to the collected first motion data; the standard motion curve sent by the third-party device is received, and the motion curve is compared with the standard motion curve through the wireless earphone to obtain Compare the results.
  • the standard motion curve can be generated by a third-party device to obtain a more accurate standard motion curve, thereby improving the accuracy of posture detection.
  • the method further includes: collecting second motion data of the user's head, the second motion data includes The acceleration value of the wireless earphone; when the acceleration value is less than or equal to the preset acceleration threshold within the preset time, the second motion data is sent to the third-party device, so that the third-party device can generate a standard motion curve according to the second motion data.
  • a wireless headset is paired and connected to a mobile terminal through Bluetooth.
  • the second motion data of the user's head is obtained through the wireless earphone, and the second motion data includes the acceleration value of the wireless earphone and the angle and frequency of the wireless earphone;
  • the acceleration threshold is set, it is determined that the posture of the user's head is in a normal posture; at this time, the second movement data of the user's head collected within a preset time can be sent to the mobile terminal, and then the mobile terminal constructs The standard motion curve of the user's head is fed back to the wireless headset; after the wireless headset receives the standard motion curve, it compares the motion curve of the user's head with the standard motion curve to determine whether the posture of the user's head is normal.
  • the wireless headset is paired and connected to the mobile terminal through Bluetooth, and the wireless headset is connected to the cloud through the mobile terminal.
  • the second motion data of the user's head is obtained through the wireless earphone, and the second motion data includes the acceleration value of the wireless earphone and the angle and frequency of the wireless earphone;
  • the acceleration threshold is set, it is determined that the posture of the user's head is in a normal posture; at this time, the mobile terminal can be used to send the second movement data of the user's head collected within the preset time to the cloud, and then the artificial intelligence algorithm in the cloud will
  • the second motion data constructs the standard motion curve of the user's head, and feeds it back to the wireless earphone through the mobile terminal; after the wireless earphone receives the standard motion curve, it compares the motion curve of the user's head with the standard motion curve to judge the motion of the user's head. Whether the posture is a normal posture.
  • the process of generating a standard motion curve based on the artificial intelligence algorithm in the cloud is as follows: after receiving n times of valid head motion posture data, according to the angle, frequency and acceleration rate of the head motion, a classification algorithm (such as the K nearest neighbor algorithm ) to find head motion curves. At the same time, predict the next head movement posture data according to the head movement curve. If k predictions out of the m predictions are accurate, the head motion curve is determined to be the standard motion curve of the current wearer's head motion posture. Among them, the values of m and k are set according to the accuracy.
  • the first motion data is sent to a third-party device; and the comparison result sent by the third-party device is received.
  • a third-party device is selected to process the motion data of the user's head to obtain the motion curve of the user's head, and the motion curve of the user's head is compared with the standard motion curve to judge the posture of the user's head. It is beneficial to improve the accuracy of posture detection.
  • the wireless earphone moves with the user's head, and at this time, the motion data of the wireless earphone can be regarded as the motion data of the user's head.
  • the pulling torque of the neck muscles will make the motion posture of the user's head tend to be stable, and the acceleration of the user's head is very small at this time.
  • the torque of the pulling force of the neck muscles cannot be balanced with the gravity torque of the head and neck, resulting in changes in acceleration. At this time, the acceleration of the user's head is relatively large.
  • the acceleration of the user's head is small and the posture of the user's head remains unchanged for a long time. At this time, the movement of the user's head If both the frequency and the movement angle are small, the movement curve of the user's head tends to be gentle. It can be seen that when judging the current posture of the user's head, it can be determined based on any one or several parameters of the acceleration value, frequency and angle during the movement of the user's head. For a better understanding, the following further explains how to determine the posture of the user's head:
  • the first motion data includes: the angle and frequency of the wireless earphone. Generate the motion curve of the user's head according to the angle and frequency; also obtain the standard motion curve. Afterwards, obtaining the comparison result of the motion curve and the standard motion curve includes: obtaining the first frequency and the first angle of the motion curve and the second frequency and the second angle of the standard motion curve; when the first frequency is less than the second frequency and the first When the angle is smaller than the second angle, generate a comparison result that the user's head is in an abnormal posture; and/or, when the first frequency is greater than the second frequency and the first angle is greater than the second angle, generate that the user's head is in an abnormal posture comparison results.
  • the first motion data includes: the acceleration value of the wireless earphone and the angle and frequency of the wireless earphone. Generate the motion curve of the user's head according to the angle and frequency; also obtain the standard motion curve. If the acceleration value is greater than the preset acceleration threshold within the preset time and the acceleration value shows an increasing trend, an abnormal result that the user's head is in an abnormal posture will be generated, and an alarm prompt will be sent to the user according to the abnormal result; if the acceleration is within the preset time When the value is less than the preset acceleration threshold, compare the motion curve with the standard motion curve to obtain the comparison result. At this time, the process of comparing the motion curve with the standard motion curve to obtain the comparison result is as described above, and will not be repeated here. repeat.
  • the frequency and angle can be expressed in the form of interval values, the frequency can indicate the speed of the angle change of the motion curve or the standard motion curve, and the angle can indicate the motion curve or the standard motion Angle variation range of the curve.
  • the wireless headset has built-in speakers and motors; sending an alarm prompt to the user through the wireless headset includes: sending a voice prompt to the user's head through the speaker in the wireless headset, and/or sending a vibration prompt to the user's head through the motor in the wireless headset.
  • the posture detection method it is possible to obtain the posture data of the user's head with the help of wireless earphones, and when the user's head is in an abnormal posture (such as a fatigue state), an alarm prompt is sent to the user's head, so as to remind the user in time Be aware of the purpose of resting or adjusting for poor posture.
  • an abnormal posture such as a fatigue state
  • the present disclosure provides an attitude detection device applied to wireless earphones. Please refer to FIG. 4 .
  • the attitude detection device includes at least the following units: an attitude acquisition unit 201 , an attitude judgment unit 202 and an attitude reminder unit 203 .
  • Gesture acquisition unit 201 is used to collect the first motion data of the user's head; posture judgment unit 202 is used to generate the motion curve of the user's head according to the first motion data collected; posture reminder unit 203 is used to obtain the motion curve The comparison result with the standard motion curve, and an alarm prompt is sent to the user according to the comparison result.
  • the attitude acquiring unit 201 is also used to acquire the acceleration value of the wireless earphone and/or acquire the distance value between the wireless earphone and the user's head.
  • the posture detection device further includes a wearing detection unit.
  • the wearing detection unit is used to determine that the wireless headset is in the wearing state when the acceleration value changes within a preset time; or, the wearing detection unit is used to determine that the wireless headset is in a wearing state when the distance value is less than or equal to a preset distance threshold within a preset time. In the wearing state; or, the wearing detection unit is used to determine that the wireless headset is in the wearing state when the acceleration value changes within a preset time and the distance value is less than or equal to the preset distance threshold.
  • the gesture judging unit 202 is used to generate the motion curve of the user's head according to the collected first motion data through the wireless earphone; obtain the pre-stored standard motion curve from the wireless earphone, and use the wireless earphone to convert the motion curve Compare with the standard motion curve to get the comparison result.
  • the posture judging unit 202 is used to generate the motion curve of the user's head according to the collected first motion data through the wireless earphone; receive the standard motion curve sent by the third-party device, and compare the motion curve with the standard motion curve through the wireless earphone to get the comparison result.
  • the posture judging unit 202 is configured to send the first motion data to a third-party device; and receive a comparison result sent by the third-party device.
  • the third-party device can be a mobile terminal paired and connected with the wireless headset, or a cloud connected with the wireless headset.
  • the posture acquisition unit 201 is further configured to collect second motion data of the user's head, and the second motion data includes the acceleration value of the wireless earphone.
  • the posture judging unit 202 is also configured to send the second motion data to the third-party device when the acceleration value is less than or equal to the preset acceleration threshold within the preset time, so that the third-party device can generate a standard motion curve according to the second motion data.
  • the posture judging unit 202 is also used to obtain the first frequency and the first angle of the motion curve and the second frequency and the second angle of the standard motion curve; when the first frequency is less than the second frequency and the first angle is less than At the second angle, generate the comparison result that the user’s head is in an abnormal posture; The comparison results of all parts in abnormal postures.
  • the posture judging unit 202 is further configured to generate a user head response when the acceleration value is greater than the preset acceleration threshold within a preset time and the acceleration value shows an increasing trend. An abnormal result in an abnormal posture; and when the acceleration value is less than a preset acceleration threshold within a preset time, comparing the motion curve with the standard motion curve to obtain a comparison result.
  • the posture reminder unit 203 is also configured to send an alarm prompt to the user according to the abnormal result.
  • the posture detection device it is possible to obtain the posture data of the user's head with the help of wireless earphones, and when the user's head is in an abnormal posture (such as a fatigue state), an alarm prompt is sent to the user's head, so as to remind the user in time Be aware of the purpose of resting or adjusting for poor posture.
  • an abnormal posture such as a fatigue state
  • the present disclosure provides a gesture detection method and device.
  • the wireless earphone may be an in-ear wireless Bluetooth earphone or a bone conduction wireless Bluetooth earphone.
  • the posture detection device in the wireless earphone includes the following units: posture tracking unit 301 (corresponding to posture acquisition unit 201), audio vibration unit 302 (corresponding to posture reminder unit 203), wearing detection unit 300, wireless connection unit 303 , power management unit 304 , storage unit 305 and management control unit 306 (corresponding to posture judging unit 202 ).
  • posture tracking unit 301 corresponding to posture acquisition unit 201
  • audio vibration unit 302 corresponding to posture reminder unit 203
  • wearing detection unit 300 wireless connection unit 303
  • power management unit 304 corresponding to posture judging unit 202
  • storage unit 305 corresponding to posture judging unit 202
  • the wearing detection unit 300 is used for judging whether the user has worn the wireless earphone. Only when the wireless earphone is in the wearing state, the posture tracking unit 301 will be enabled and the provided data will be valid. At the same time, when the wireless headset is not worn, it is in a deep sleep state to reduce the power consumption of the entire system.
  • the wearing detection unit 300 includes a distance detector and an acceleration sensor, wherein the distance detector can be any one of a proximity infrared sensor and a capacitive sensor. Meanwhile, a distance detector may be provided around each speaker. In practical applications, the wearing detection unit 300 is used to regularly read the acceleration value of the acceleration sensor.
  • the distance detector is started for timing detection.
  • the distance detector When the detected distance value is less than or equal to the preset distance threshold, it is determined that the wireless headset is in the wearing state.
  • the posture tracking unit 301 is configured to monitor the movement data of the user's head.
  • the attitude tracking unit 301 may include an acceleration sensor and/or an angular velocity sensor (also called a gyroscope).
  • the acceleration value of the wireless headset can be obtained through the acceleration sensor, and the angle of the wireless headset can be obtained through the gyroscope.
  • the audio vibration unit 302 is used to provide electro-acoustic conversion, audio collection, vibration reminder and other functions.
  • the audio vibration unit 302 includes but not limited to a microphone (Microphone, MIC for short), a bone conduction speaker and a motor. Among them, the microphone is used to collect audio data; the bone conduction speaker is used to convert electrical signals into audio data; the motor is used to generate vibration.
  • the audio vibration unit 302 is used to transmit audio data to the user through bone conduction, and also sends the collected audio data to the management control unit 306 for management The control unit 306 sends the audio data to the mobile terminal.
  • the audio vibration unit 302 is also used to receive prompt information sent by the management control unit 306, and provide timely auditory and tactile reminders to the user according to the prompt information, so as to remind the user to pay attention to rest or adjust bad sitting posture.
  • the wireless connection unit 303 is configured to provide a mobile network to connect the wireless headset with external devices such as mobile terminals, for example, by using Bluetooth or WIFI connection.
  • the management control unit 306 communicates audio data with external devices such as mobile terminals through the wireless connection unit 303 to realize voice communication.
  • the motion data of the user's head can also be transmitted to the mobile terminal through the wireless connection unit 303, and then transmitted to the cloud by the mobile terminal.
  • the artificial intelligence algorithm in the cloud (such as the K nearest neighbor algorithm) can construct the motion curve of the user's head according to the motion data of the user's head; and then feed back the motion curve of the user's head to the wireless earphone through the mobile terminal.
  • the motion curve of the user's head estimated by the cloud is the motion curve when the user's head is in a normal posture, which can be used as a reference motion curve for judging the current posture of the user's head. called the standard motion curve.
  • the power management unit 304 is used to supply power to other units in the attitude detection device and to charge the battery in this unit. Since the wireless headset does not need to be equipped with an audio cable to improve portability, each unit inside the wireless headset needs to be powered by a battery.
  • the power management unit 304 can also include a power switch, which can be used to control the power supply circuits of other units in the posture detection device, so as to further reduce power consumption.
  • the storage unit 305 is configured to store the motion data of the user's head and the motion curve (that is, the standard motion curve) when the user's head is in a normal posture.
  • the management control unit 306 can access the The standard motion curve is obtained in unit 305. In this manner, the standard motion curve is estimated by a local algorithm.
  • the storage unit 305 includes but is not limited to a TF card (Trans-flash Card, TF card for short), and a flash memory (Flash EEPROM, Flash for short) storage chip.
  • the management control unit 306 is configured to judge the current posture of the user's head. In practical applications, when the wireless headset is worn, it is necessary to judge the current posture of the user's head. At this time, the management control unit 306 obtains the standard motion curve from the storage unit 305, or obtains the standard motion curve from the cloud through the wireless connection unit 303 and the mobile terminal; and obtains the motion data of the user's head from the posture tracking unit 301, and The motion data of the user's head is used to construct the motion curve of the user's head; the current posture of the user's head is judged according to the motion curve and the standard motion curve, and finally a prompt message is generated according to the comparison result and sent to the audio vibration unit 302.
  • the posture detection device and method provided in the present disclosure can be applied to monitor the driver's fatigue state, so that the driver can enjoy the convenience of travel brought by the car and have an additional security monitoring.
  • the wireless earphone is a bone conduction type wireless earphone. Since the wireless headset adopts the bone conduction method, there is no need to insert earplugs into the ear canal, and it will not reduce the driver's perception of external sounds.
  • the posture detection device applied to wireless earphones includes the following units: posture tracking unit 301, audio vibration unit 302, wearing detection unit 300, wireless connection unit 303, power management unit 304, storage unit 305 and management control Unit 306.
  • the wearing detection unit 300 includes an acceleration sensor and an infrared proximity sensor
  • the attitude tracking unit 301 includes a gyroscope and an acceleration sensor
  • the audio vibration unit 302 includes: an audio codec unit, MIC, a bone conduction speaker, and a motor
  • the wireless connection unit 303 uses Bluetooth
  • the power management unit 304 includes a charging and power conversion unit and a battery
  • the storage unit 305 includes a Flash storage chip
  • the management control unit 306 includes a micro control unit (Micro Control Unit, referred to as MCU).
  • the posture detection method applied to wireless earphones includes the following steps S501 to S518.
  • S501 The wireless earphone is in a dormant state, regularly acquires the acceleration value detected by the acceleration sensor, and judges whether the acceleration value has changed within the preset time, and if so, determines that the wireless earphone is in a moving state, and then executes S502; otherwise, does not do any processing.
  • S502 Start the infrared proximity sensor for detection.
  • S503 Obtain the distance value detected by the infrared proximity sensor regularly, and determine whether the distance values are less than or equal to the preset distance value within the preset time; if so, determine that the wireless earphone is in the wearing state; otherwise, determine that the wireless earphone is only in the moving state.
  • S504 Determine that the wireless headset is in the wearing state, and then execute S506;
  • S505 Determine that the wireless headset is only in a moving state, and do not perform any processing.
  • S506 Calibrate the acceleration sensor and the gyroscope, and establish a Bluetooth connection with the mobile terminal.
  • S507 Determine whether the wireless headset can be connected to the cloud; if not, execute S508; otherwise, execute S509.
  • S510 Determine whether the acceleration value within the preset time is smaller than the preset acceleration threshold; if yes, execute S511; otherwise, return to execute S509.
  • S511 Upload the motion data of the user's head to the cloud through the mobile terminal, and estimate the motion curve (that is, the standard motion curve) of the user's head in a normal posture by the artificial intelligence algorithm of the cloud.
  • S512 Receive the standard motion curve sent by the cloud through the mobile terminal.
  • S514 Determine the motion curve of the user's head according to the parameters of the gyroscope.
  • S515 Determine whether the acceleration value is greater than the preset acceleration threshold within the preset time; if yes, execute S516; otherwise, execute S517.
  • S517 Further judge whether the current posture of the user's head is in an abnormal posture according to the motion curve and the standard motion curve; if so, execute S518; otherwise, return to execute S513.
  • the wireless earphone can give the driver an auditory and/or tactile warning according to the degree of fatigue state, so that the driver can enjoy the convenience of travel brought by the car while having an additional safety monitoring.
  • the posture detection device and method provided by the present disclosure can be applied to monitor the fatigue state of primary school students, so that the primary school students can keep their attention focused.
  • the wireless earphone may be an in-ear wireless earphone or a bone conduction wireless earphone.
  • the posture detection device applied to wireless earphones includes the following units: posture tracking unit 301, audio vibration unit 302, wearing detection unit 300, wireless connection unit 303, power management unit 304, storage unit 305 and management control Unit 306.
  • the wearing detection unit 300 includes an acceleration sensor and a capacitive sensor (that is, the capacitive touch button in the figure);
  • the posture tracking unit 301 includes a gyroscope and an acceleration sensor;
  • the audio vibration unit 302 includes: an audio codec unit, MIC, bone conduction Loudspeaker and motor;
  • Wireless connection unit 303 adopts the mode of bluetooth to be connected with mobile terminal;
  • Power management unit 304 comprises charging and power conversion unit and battery;
  • Storage unit 305 comprises Flash storage chip;
  • Management control unit 306 comprises micro control unit (Micro Control Unit, referred to as MCU).
  • the posture detection method applied to wireless earphones includes the following steps: S701 to S718.
  • S701 The wireless earphone is in a dormant state, regularly acquires the acceleration value detected by the acceleration sensor, and judges whether the acceleration value has changed within the preset time, and if so, determines that the wireless earphone is in a moving state, and then executes S702; otherwise, does not perform any processing.
  • S703 Obtain the distance value detected by the capacitive sensor regularly, and determine whether the distance value is less than or equal to the preset distance value within the preset time; if so, determine that the wireless earphone is in the wearing state; otherwise, determine that the wireless earphone is only in the moving state.
  • S704 Determine that the wireless earphone is in the wearing state, and then execute S706.
  • S705 Determine that the wireless headset is only in a moving state, without any processing.
  • S706 Calibrate the acceleration sensor and the gyroscope, and establish a Bluetooth connection with the mobile terminal.
  • S707 Determine whether the wireless headset can be connected to the cloud; if not, execute S708; otherwise, execute S709.
  • S710 Determine whether the acceleration value within the preset time is smaller than the preset acceleration threshold; if yes, execute S711; otherwise, return to execute S709.
  • S711 Upload the motion data of the user's head to the cloud through the mobile terminal, and estimate the motion curve (that is, the standard motion curve) when the user's head is in a normal posture by the artificial intelligence algorithm in the cloud.
  • S712 Receive the standard motion curve sent by the cloud through the mobile terminal.
  • S714 Determine the motion curve of the user's head according to the parameters of the gyroscope.
  • S715 Judging whether the first preset condition is satisfied between the motion curve and the standard motion curve, the first preset condition is that the frequency of the motion curve is less than the frequency of the standard motion curve, and the angle of the motion curve is smaller than the angle of the standard motion curve; if If no, execute S716; otherwise, return to execute S717.
  • S716 Determine that the primary school students have a high degree of fatigue, and promptly remind the primary school students to rest or move their heads a little.
  • S718 Determine the pupil's lack of concentration, and promptly remind the pupil to concentrate or adjust the sitting posture for writing.
  • the wireless earphone can send out auditory and/or tactile warnings to primary school students according to the fatigue state during the process of monitoring the fatigue state of primary school students, so that primary school students can concentrate and maintain correct sitting posture when writing homework or listening to classes.
  • This embodiment provides a wireless earphone, as shown in FIG. 10, which includes a processor 801, a memory 802, and a communication bus 803, wherein: the communication bus 803 is used to realize connection and communication between the processor 801 and the memory 802; The device 801 is configured to execute one or more computer programs stored in the memory 802, so as to realize at least one step in the posture detection method in the above-mentioned embodiments.
  • the present embodiment also provides a computer-readable storage medium, which includes information implemented in any method or technology for storing information, such as computer-readable instructions, data structures, computer program modules, or other data. volatile or nonvolatile, removable or non-removable media.
  • Computer-readable storage media include, but are not limited to, RAM (Random Access Memory, random access memory), ROM (Read-Only Memory, read-only memory), EEPROM (Electrically Erasable Programmable read-only memory, electrically erasable programmable read-only memory), flash memory or other memory technologies, CD-ROM (CompactDiscRead-OnlyMemory, compact disk read-only memory), digital versatile disk (DVD) or other optical disk storage, magnetic box, magnetic tape, magnetic disk storage or other magnetic storage devices, or can be used to store desired information and can be Any other media accessed by a computer.
  • the computer-readable storage medium in this embodiment can be used to store one or more computer programs, and the one or more computer programs stored in it can be executed by a processor to implement at least one step in the posture detection method in the above-mentioned embodiments .
  • This embodiment also provides a computer program (or computer software), which can be distributed on a computer-readable medium and executed by a computing device to implement at least one of the pose detection methods in the above-mentioned embodiments steps; and in some cases, at least one step shown or described may be performed in a sequence different from that described in the above embodiments.
  • a computer program or computer software
  • This embodiment also provides a computer program product, including a computer-readable device, on which the above-mentioned computer program is stored.
  • the computer-readable device in this embodiment may include the computer-readable storage medium as described above.
  • the posture detection method, device, wireless earphone and storage medium provided in the present disclosure, by collecting the first motion data of the user's head; generating the motion curve of the user's head according to the collected first motion data; obtaining the motion curve and the standard motion The comparison results of the curves, and send an alarm to the user according to the comparison results; it is possible to obtain the posture data of the user's head with the help of wireless headphones, and when the user's head is in an abnormal posture (such as a fatigue state), send an alarm to the user's head Send an alarm prompt to timely remind the user to pay attention to rest or adjust bad posture.
  • an abnormal posture such as a fatigue state
  • the functional modules/units in the system and the device can be implemented as software (the computer program code executable by the computing device can be used to realize ), firmware, hardware, and appropriate combinations thereof.
  • the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components. Components cooperate to execute.
  • Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit .
  • communication media typically embodies computer readable instructions, data structures, computer program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery medium. Therefore, the present disclosure is not limited to any specific combination of hardware and software.

Abstract

The present disclosure provides an attitude detection method and apparatus, a wireless earphone, and a storage medium. The method comprises: collecting first motion data of the head of a user; generating a motion curve of the head of the user according to the collected first motion data; and obtaining a comparison result between the motion curve and a standard motion curve, and sending an alarm prompt to the user according to the comparison result.

Description

姿态检测方法、装置、无线耳机及存储介质Attitude detection method, device, wireless earphone and storage medium
相关申请的交叉引用Cross References to Related Applications
本公开要求享有2021年05月27日提交的名称为“姿态检测方法、装置、无线耳机及存储介质”的中国专利申请CN202110584065.5的优先权,其全部内容通过引用并入本公开中。This disclosure claims the priority of the Chinese patent application CN202110584065.5 entitled "Attitude Detection Method, Device, Wireless Earphone and Storage Medium" filed on May 27, 2021, the entire content of which is incorporated into this disclosure by reference.
技术领域technical field
本公开涉及但不限于无线耳机技术领域,具体而言,涉及但不限于姿态检测方法、装置、无线耳机及存储介质。The present disclosure relates to but not limited to the technical field of wireless earphones, and specifically, relates to but not limited to an attitude detection method and device, a wireless earphone and a storage medium.
背景技术Background technique
手机已是在工作生活进行交互的首先工具,汽车是给工作生活提供便利的工具。合理的使用会提高工作效率,增强生活幸福感,但使用不合理,却会带来非常大的风险,甚至威胁生命。疲劳驾驶排在高速公路的交通事故的首位,随着汽车普及,趋势还在上升。行车过程中,手持通话因手离开方向盘容易造成控制不稳,从而引发交通事故。因而,手离开方向盘打电话是交通规则禁止行为。如何让驾驶员知晓疲劳及双手不离方向盘成为了汽车电子研究的一个重要方向。The mobile phone is already the first tool for interaction in work and life, and the car is a tool that provides convenience for work and life. Reasonable use will improve work efficiency and enhance the happiness of life, but unreasonable use will bring very large risks, even life-threatening. Fatigue driving ranks first in highway traffic accidents, and the trend is still rising as automobiles become popular. During the driving process, hand-held calls are likely to cause unstable control due to hands leaving the steering wheel, thereby causing traffic accidents. Therefore, taking your hands off the steering wheel to make a phone call is prohibited by traffic rules. How to make drivers aware of fatigue and keep their hands on the steering wheel has become an important direction of automotive electronics research.
目前疲劳驾驶监测技术主要分为以下几种:车辆运行轨迹监测方式、基于人眼的疲劳驾驶监测系统。At present, the fatigue driving monitoring technology is mainly divided into the following types: the vehicle running track monitoring method, and the fatigue driving monitoring system based on human eyes.
由上述的技术描述可知,这几个技术方向还没有涉及解决行车过程中的安全通话的问题。部分车辆装配有车载蓝牙通话系统,但是由于驾驶员距离麦克风较远,说话声音与车辆内部的噪声无法有效区分,使得通话的对方无法听清驾驶员需要传递的内容,致使车载蓝牙通话系统被放弃;并且,还有很大一部分车辆不具备车载蓝牙通话系统。因此,如何实现较准确监测驾驶员的疲劳并同时提供友好又安全的通话系统,显得十分有必要。It can be seen from the above technical description that these technical directions have not yet involved in solving the problem of safe communication during driving. Some vehicles are equipped with a vehicle-mounted Bluetooth communication system, but because the driver is far away from the microphone, the voice of the driver cannot be effectively distinguished from the noise inside the vehicle, making it impossible for the other party to hear the content that the driver needs to transmit, resulting in the abandonment of the vehicle-mounted Bluetooth communication system ; And, there is also a large part of vehicles that do not possess the vehicle-mounted Bluetooth intercom system. Therefore, how to monitor the driver's fatigue more accurately and provide a friendly and safe communication system at the same time is very necessary.
发明内容Contents of the invention
本公开提供的姿态检测方法、装置、无线耳机及存储介质,至少解决了现有无线耳机不具备用户头部疲劳姿态等非正常姿态检测功能的技术问题。The posture detection method, device, wireless earphone and storage medium provided by the present disclosure at least solve the technical problem that the existing wireless earphones do not have abnormal posture detection functions such as user head fatigue posture.
本公开提供一种姿态检测方法,应用于无线耳机,包括:采集用户头部的第一运动数据;根据采集到的第一运动数据生成用户头部的运动曲线;获取运动曲线与标准运动曲线的比对结果,并根据比对结果向用户发送报警提示。The present disclosure provides a posture detection method, which is applied to wireless earphones, including: collecting first motion data of the user's head; generating a motion curve of the user's head according to the collected first motion data; Compare the results, and send an alarm prompt to the user according to the comparison results.
本公开还提供一种姿态检测装置,应用于无线耳机,包括:姿态获取单元,用于采集用户头部的第一运动数据;姿态判断单元,用于根据采集到的第一运动数据生成用户头部的运动曲线;以及获取运动曲线与标准运动曲线的比对结果;姿态提醒单元,用于根据比对结果向用户发送报警提示。The present disclosure also provides a posture detection device, which is applied to wireless earphones, including: a posture acquisition unit, used to collect the first motion data of the user's head; a posture judgment unit, used to generate the user's head according to the collected first motion data The internal motion curve; and obtain the comparison result of the motion curve and the standard motion curve; the posture reminder unit is used to send an alarm prompt to the user according to the comparison result.
本公开还提供一种无线耳机,包括:处理器、存储器及通信总线;通信总线用于实现处理器和存储器之间的连接通信;处理器用于执行存储器中存储的一个或者多个计算机程序,以实现如上的姿态检测方法的步骤。The present disclosure also provides a wireless earphone, including: a processor, a memory, and a communication bus; the communication bus is used to realize connection and communication between the processor and the memory; the processor is used to execute one or more computer programs stored in the memory, to The steps of the above attitude detection method are realized.
本公开还提供一种计算机可读存储介质,计算机可读存储介质存储有一个或者多个计算机程序,一个或者多个计算机程序可被一个或者多个处理器执行,以实现如上所述的姿态检测方法的步骤。The present disclosure also provides a computer-readable storage medium, where one or more computer programs are stored in the computer-readable storage medium, and one or more computer programs can be executed by one or more processors, so as to realize the gesture detection as described above method steps.
附图说明Description of drawings
图1为本公开实施例一中姿态检测方法的流程示意图;FIG. 1 is a schematic flow diagram of a posture detection method in Embodiment 1 of the present disclosure;
图2为本公开实施例一中无线耳机接入云端的结构示意图;FIG. 2 is a schematic structural diagram of a wireless headset connected to the cloud in Embodiment 1 of the present disclosure;
图3为本公开实施例一中运动曲线的模型示意图;3 is a schematic diagram of a model of a motion curve in Embodiment 1 of the present disclosure;
图4为本公开实施例二中姿态检测装置的结构示意图;4 is a schematic structural diagram of an attitude detection device in Embodiment 2 of the present disclosure;
图5为本公开实施例三中一种姿态检测装置的结构示意图;5 is a schematic structural diagram of an attitude detection device in Embodiment 3 of the present disclosure;
图6为本公开实施例三中另一种姿态检测装置的结构示意图;6 is a schematic structural diagram of another attitude detection device in Embodiment 3 of the present disclosure;
图7为本公开实施例三中一种姿态检测方法的流程细化示意图。FIG. 7 is a schematic diagram of a refined process of a posture detection method in Embodiment 3 of the present disclosure.
图8为本公开实施例三中又一种姿态检测装置的结构示意图。FIG. 8 is a schematic structural diagram of yet another attitude detection device in Embodiment 3 of the present disclosure.
图9为本公开实施例三中又一种姿态检测方法的流程细化示意图;FIG. 9 is a schematic diagram of a refined process of yet another attitude detection method in Embodiment 3 of the present disclosure;
图10为本公开实施例四中无线耳机的结构示意图。FIG. 10 is a schematic structural diagram of a wireless earphone in Embodiment 4 of the present disclosure.
具体实施方式Detailed ways
为了使本公开的目的、技术方案及优点更加清楚明白,下面通过实施方式结合附图对本公开作进一步详细说明。应当理解,此处所描述的实施例仅仅用以解释本公开,并不用于限定本公开。In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below through implementation manners in conjunction with the accompanying drawings. It should be understood that the embodiments described here are only used to explain the present disclosure, not to limit the present disclosure.
目前疲劳驾驶监测技术主要分为以下几种:车辆运行轨迹监测方式、基于人眼的疲劳驾驶监测系统。At present, the fatigue driving monitoring technology is mainly divided into the following types: the vehicle running track monitoring method, and the fatigue driving monitoring system based on human eyes.
车辆运行轨迹监测方式:该种方式在车辆上安装监测运行轨迹装置,通过轨迹测量用于确定车辆是否偏离车道以便判断驾驶员是否处于疲劳驾驶状态。当车辆在运行过程中,一旦 偏离轨道就表示事故即将发生。在车速较快的高速路段,留给驾驶员反应及采取控制措施的时间及其短暂,造成的结果就是即使有疲劳驾驶预警系统,但效果不大。另外,车辆在行驶过程中并不是一直保持直线运动,所以误判率较高。Vehicle running trajectory monitoring method: This method installs a monitoring running trajectory device on the vehicle, which is used to determine whether the vehicle deviates from the lane through trajectory measurement so as to judge whether the driver is in a fatigue driving state. When the vehicle is running, once it deviates from the track, it means that an accident is about to occur. In the fast highway section, the time left for the driver to react and take control measures is very short. As a result, even if there is a fatigue driving warning system, the effect is not great. In addition, the vehicle does not keep moving in a straight line during driving, so the misjudgment rate is relatively high.
基于人眼的疲劳驾驶监测系统:该种方式利用摄像头对人眼的状态进行监测,根据人眼的睁开程度进行判断疲劳的程度。该种方式对环境有要求,当光线较暗时,或驾驶员佩戴深色眼镜时,拍照效果较差以至于不能精确识别人眼的状态。当道路通畅及无弯度时,车辆接近一种匀速直线运动,驾驶员容易出现视觉疲劳和驾驶姿势疲劳。该监测系统无法较理想的识别出这两种疲劳程度。Fatigue driving monitoring system based on human eyes: This method uses cameras to monitor the state of human eyes, and judges the degree of fatigue according to the degree of opening of human eyes. This method has requirements for the environment. When the light is dark, or when the driver wears dark glasses, the photographing effect is so poor that it is impossible to accurately identify the state of the human eye. When the road is smooth and has no curvature, the vehicle is close to a uniform linear motion, and the driver is prone to visual fatigue and driving posture fatigue. The monitoring system cannot ideally identify these two fatigue levels.
由上述的技术描述可知,这几个技术方向还没有涉及解决行车过程中的安全通话的问题。部分车辆装配有车载蓝牙通话系统,但是由于驾驶员距离麦克风较远,说话声音与车辆内部的噪声无法有效区分,使得通话的对方无法听清驾驶员需要传递的内容,致使车载蓝牙通话系统被放弃;并且,还有很大一部分车辆不具备车载蓝牙通话系统。因此,如何实现较准确监测驾驶员的疲劳并同时提供友好又安全的通话系统,显得十分有必要。It can be seen from the above technical description that these technical directions have not yet involved in solving the problem of safe communication during driving. Some vehicles are equipped with a vehicle-mounted Bluetooth communication system, but because the driver is far away from the microphone, the voice of the driver cannot be effectively distinguished from the noise inside the vehicle, making it impossible for the other party to hear the content that the driver needs to transmit, resulting in the abandonment of the vehicle-mounted Bluetooth communication system ; And, there is also a large part of vehicles that do not possess the vehicle-mounted Bluetooth intercom system. Therefore, how to monitor the driver's fatigue more accurately and provide a friendly and safe communication system at the same time is very necessary.
实施例一Embodiment one
本公开提供一种应用于无线耳机的姿态检测方法,请参见图1所示,姿态检测方法包括步骤S101至S103。The present disclosure provides an attitude detection method applied to a wireless earphone, please refer to FIG. 1 , the attitude detection method includes steps S101 to S103.
S101:采集用户头部的第一运动数据。S101: Collect first motion data of the user's head.
在一些实施例中,在采集用户头部的第一运动数据之前进一步包括:检测无线耳机的佩戴状态。In some embodiments, before collecting the first motion data of the user's head, it further includes: detecting a wearing state of the wireless earphone.
在实际应用中,当无线耳机没有被佩戴时(也即无线耳机处于非佩戴状态),无线耳机会进入休眠状态,以降低功耗。仅当无线耳机处于佩戴状态时,会开启用户头部的姿态检测功能。为了实现佩戴检测功能,无线耳机内置有加速度传感器和/或距离传感器。距离检测器可为红外接近传感器或电容式传感器。其中,红外接近传感器是根据其发射的红外线通过人阻挡反射回来的红外线强度来确定人与自身之间的距离。电容式传感器是通过人的体表肌肤靠近接触点引起电容变化,根据电容的大小变化来确定人与自身的距离。对此,检测无线耳机处于佩戴状态的方式包括但限于以下方式一~方式三。In practical applications, when the wireless headset is not worn (that is, the wireless headset is in a non-wearing state), the wireless headset will enter a sleep state to reduce power consumption. Only when the wireless headset is in the wearing state, the posture detection function of the user's head will be turned on. In order to realize the wearing detection function, the wireless headset is built with an acceleration sensor and/or a distance sensor. The distance detector can be an infrared proximity sensor or a capacitive sensor. Among them, the infrared proximity sensor determines the distance between the person and itself according to the intensity of the infrared rays emitted by the infrared rays reflected back by the blocking of the person. The capacitive sensor uses the skin on the human body to approach the contact point to cause a change in capacitance, and the distance between the person and itself is determined according to the change in capacitance. In this regard, the manner of detecting that the wireless earphone is in the wearing state includes but is limited to the following manners 1 to 3.
方式一:采集无线耳机的加速度值,在预设时间内加速度值有变化时,确定无线耳机处于佩戴状态。Method 1: Collect the acceleration value of the wireless headset, and when the acceleration value changes within a preset time, it is determined that the wireless headset is in the wearing state.
方式二:采集无线耳机与用户头部之间的距离值,在预设时间内距离值小于等于预设距离阈值时,确定无线耳机处于佩戴状态。Method 2: collect the distance value between the wireless headset and the user's head, and determine that the wireless headset is in the wearing state when the distance value is less than or equal to the preset distance threshold within a preset time.
方式三:分别采集无线耳机的加速度值和无线耳机与用户头部之间的距离值,在预设时间内加速度值有变化且距离值小于等于预设距离阈值时,确定无线耳机处于佩戴状态。Method 3: collect the acceleration value of the wireless earphone and the distance value between the wireless earphone and the user's head respectively. When the acceleration value changes within the preset time and the distance value is less than or equal to the preset distance threshold, it is determined that the wireless earphone is in the wearing state.
对于上述方式一~方式三,方式三有利于排除用户误碰无线耳机的情形以提高佩戴检测的准确度。Regarding the above-mentioned ways 1 to 3, the way 3 is beneficial to eliminate the situation that the user touches the wireless earphone by mistake, so as to improve the accuracy of wearing detection.
在实际应用场景中,无线耳机处于休眠状态,定时获取加速度传感器的加速度值,在预设时间内加速度值有变化时,确定出无线耳机被移动。再启动距离检测器(例如接近红外传感器或电容式传感器)作进一步检测,定时获取距离检测器的距离值,在预设时间内距离值都小于等于预设距离阈值时,确定出无线耳机被佩戴。其中,预设距离阈值可根据距离检测器的类型以及需要的灵敏度程度进行合理选择。作为举例,预设距离阈值可以是1mm、1.5mm、2.0mm、2.5mm。此外,确定出无线耳机被佩戴后,保持距离检测器的开启状态,继续定时获取距离检测器的距离值,在预设时间内距离值都大于预设阈值时,确定出无线耳机被摘下。而当无线耳机被摘下后,其会进入休眠状态直到下次被佩戴。In a practical application scenario, the wireless headset is in a dormant state, and the acceleration value of the acceleration sensor is acquired regularly, and when the acceleration value changes within a preset time, it is determined that the wireless headset is moved. Then start the distance detector (such as proximity infrared sensor or capacitive sensor) for further detection, and regularly obtain the distance value of the distance detector. When the distance value is less than or equal to the preset distance threshold within the preset time, it is determined that the wireless headset is worn . Wherein, the preset distance threshold can be reasonably selected according to the type of the distance detector and the degree of sensitivity required. As an example, the preset distance threshold may be 1mm, 1.5mm, 2.0mm, 2.5mm. In addition, after it is determined that the wireless earphone is worn, the distance detector is kept on, and the distance value of the distance detector is continuously acquired at regular intervals. When the distance values are greater than a preset threshold within a preset time, it is determined that the wireless earphone is taken off. When the wireless headset is taken off, it will enter a dormant state until it is worn next time.
S102:根据采集到的第一运动数据生成用户头部的运动曲线。S102: Generate a motion curve of the user's head according to the collected first motion data.
无线耳机内置有角速度传感器(也称为陀螺仪),也就可通过无线耳机中的角速度传感器来采集用户头部的角度及方向。在S102中,第一运动数据包括:无线耳机的角度及方向和频次。后续可根据第一运动数据构建用户头部的运动曲线,而将运动曲线与标准运动曲线作对比后,可确定出用户头部的姿态为正常姿态或非正常姿态。The wireless headset has a built-in angular velocity sensor (also called a gyroscope), and the angle and direction of the user's head can be collected through the angular velocity sensor in the wireless headset. In S102, the first exercise data includes: the angle, direction and frequency of the wireless earphone. Subsequently, the motion curve of the user's head can be constructed according to the first motion data, and after comparing the motion curve with the standard motion curve, it can be determined whether the posture of the user's head is a normal posture or an abnormal posture.
在实际应用中,为了精确地构建出用户头部的运动曲线,需要采集足够多的运动数据,此时运动数据的处理过程较为复杂。而在实际应用场景中,如图2所示,可由无线耳机、移动终端和云端组成一个系统;其中,无线耳机与移动终端进行配对连接,同时无线耳机通过移动终端与云端进行通信连接。此外,当无线耳机内集成有特定芯片时,无线耳机还可直接与云端进行通信连接。对此,在本公开中,可根据实际应用需求选择合适的执行主体来处理用户头部的运动数据以生成用户头部的运动曲线;还可按照实际需求选择合适的执行主体来比对运动曲线与标准运动曲线以得到比对结果。上述执行主体可为无线耳机或第三设备,其中第三方设备可为与无线耳机配对连接的移动终端,或与无线耳机通信连接的云端。为了更好地理解,下面提供几种示例。In practical applications, in order to accurately construct the motion curve of the user's head, it is necessary to collect enough motion data, and the processing process of the motion data is relatively complicated at this time. In an actual application scenario, as shown in Figure 2, a system can be composed of a wireless headset, a mobile terminal, and the cloud; wherein, the wireless headset is paired with the mobile terminal, and the wireless headset communicates with the cloud through the mobile terminal. In addition, when a specific chip is integrated in the wireless headset, the wireless headset can also directly communicate with the cloud. In this regard, in this disclosure, an appropriate execution subject can be selected according to actual application requirements to process the motion data of the user's head to generate a motion curve of the user's head; an appropriate execution subject can also be selected according to actual needs to compare the motion curves Compare with the standard motion curve to get the result. The aforementioned execution subject may be a wireless earphone or a third device, wherein the third party device may be a mobile terminal paired and connected with the wireless earphone, or a cloud communicated with the wireless earphone. For better understanding, several examples are provided below.
在一示例中,通过无线耳机根据采集到的第一运动数据生成用户头部的运动曲线;从无线耳机内获取预先存储的标准运动曲线,并通过无线耳机将运动曲线与标准运动曲线作比较以得到比对结果。采用此种方式时,无线耳机内置有标准运动曲线,便于无线耳机快速获得标准曲线运动以进行后续处理。即便无线耳机无法与移动终端进行通信连接导致无法接入云端时,或者无线耳机没有开发云端服务功能也无法接入云端时,均可直接从无线耳机内部获 得标准运动曲线。In an example, the motion curve of the user's head is generated through the wireless earphone according to the collected first motion data; the pre-stored standard motion curve is obtained from the wireless earphone, and the motion curve is compared with the standard motion curve through the wireless earphone to obtain Get the comparison result. When using this method, the wireless headset has a built-in standard motion curve, which is convenient for the wireless headset to quickly obtain the standard curve motion for subsequent processing. Even when the wireless headset cannot communicate with the mobile terminal and cannot access the cloud, or the wireless headset has no cloud service function and cannot access the cloud, the standard motion curve can be directly obtained from the wireless headset.
此外,无线耳机还可通过本地算法根据采集到的运动数据生成标准运动曲线;具体过程为:S1,在一段时间内检测到用户头部发生首次运动并恢复至初始状态,计时清零,以校准加速度传感器及陀螺仪。S2,启动头部运动姿态参数采集。S3,当检测到用户头部发生运动时,将此次头部运动过程的加速度与上一次有效头部运动的加速度进行比较,得到加速度变化率。S4,当加速度变化率小于等于预设阈值,则表明此次头部运动监测属于有效监测;记录头部运动的角度及方向,同时根据频率=1/时间来计算运动频次;后续执行S6。S5,当加速度变化率超过预设阈值,表明用户因其他情况引起的突发头部运动,非颈部肌肉放松的自然运动;后续执行S6。S6,待头部运动的角度恢复至初始状态,计时清零,进入下一次头部运动姿态参数采集,返回至S3。根据采集的有效头部运动姿态参数构建标准运动曲线。如图3所示,根据有效头部运动姿态参数内的角度及频次,按前屈、后伸、左侧和右侧为锚点构建用户头部的运动曲线。In addition, the wireless headset can also generate a standard motion curve based on the collected motion data through a local algorithm; the specific process is: S1, the first motion of the user's head is detected within a period of time and returns to the initial state, and the timing is reset to calibrate Acceleration sensor and gyroscope. S2, start the collection of head movement posture parameters. S3. When the head movement of the user is detected, the acceleration of the current head movement process is compared with the acceleration of the last valid head movement to obtain the acceleration change rate. S4. When the acceleration rate is less than or equal to the preset threshold, it indicates that the head movement monitoring is an effective monitoring; record the angle and direction of the head movement, and calculate the movement frequency according to frequency=1/time; follow-up execution S6. S5, when the rate of acceleration change exceeds the preset threshold, it indicates that the user's sudden head movement is caused by other circumstances, not a natural movement of neck muscle relaxation; follow-up execution of S6. S6, when the angle of the head movement returns to the initial state, the timer is reset to zero, and the next collection of head movement posture parameters is started, and the process returns to S3. A standard motion curve is constructed according to the collected effective head motion posture parameters. As shown in Figure 3, according to the angle and frequency in the effective head movement posture parameters, the user's head movement curve is constructed with forward bending, backward extension, left and right as anchor points.
在另一示例中,通过无线耳机根据采集到的第一运动数据生成用户头部的运动曲线;接收第三方设备发送的标准运动曲线,并通过无线耳机将运动曲线与标准运动曲线作比较以得到比对结果。采用此种方式时,标准运动曲线可由第三方设备生成,以获得更为精确地标准运动曲线,从而提高姿态检测的准确度。In another example, the motion curve of the user's head is generated through the wireless earphone according to the collected first motion data; the standard motion curve sent by the third-party device is received, and the motion curve is compared with the standard motion curve through the wireless earphone to obtain Compare the results. When this method is adopted, the standard motion curve can be generated by a third-party device to obtain a more accurate standard motion curve, thereby improving the accuracy of posture detection.
为了实现针对不同的用户分别构建对应的标准运动曲线以降低误判率,在接收第三方设备发送的标准运动曲线之前,方法进一步包括:采集用户头部的第二运动数据,第二运动数据包括无线耳机的加速度值;在预设时间内加速度值小于等于预设加速度阈值时,将第二运动数据发送给第三方设备,以供第三方设备根据第二运动数据生成标准运动曲线。例如,在一种实际应用场景中,无线耳机通过蓝牙与移动终端进行配对连接。在无线耳机处于佩戴状态时,通过无线耳机获取用户头部的第二运动数据,第二运动数据包括无线耳机的加速度值和无线耳机的角度及频次;在预设时间内加速度值均小于等于预设加速度阈值时,确定出用户头部的姿态处于正常姿态;此时可将预设时间内采集到的用户头部的第二运动数据发送给移动终端,之后由移动终端根据第二运动数据构建用户头部的标准运动曲线并反馈给无线耳机;无线耳机接收到标准运动曲线后,将用户头部的运动曲线与标准运动曲线作对比以判断用户头部的姿态是否为正常姿态。在另一种实际应用场景中,无线耳机通过蓝牙与移动终端进行配对连接,且无线耳机通过移动终端与云端进行通信连接。在无线耳机处于佩戴状态时,通过无线耳机获取用户头部的第二运动数据,第二运动数据包括无线耳机的加速度值和无线耳机的角度及频次;在预设时间内加速度值均小于等于预设加速度阈值时,确定出用户头部的姿态处于正常姿态;此时可借助移动终端将预设时间内采集到的用户头部的第二运动数据 发送给云端,之后由云端中人工智能算法根据第二运动数据构建用户头部的标准运动曲线,并通过移动终端反馈给无线耳机;无线耳机接收到标准运动曲线后,将用户头部的运动曲线与标准运动曲线作对比以判断用户头部的姿态是否为正常姿态。In order to construct corresponding standard motion curves for different users to reduce the misjudgment rate, before receiving the standard motion curves sent by the third-party device, the method further includes: collecting second motion data of the user's head, the second motion data includes The acceleration value of the wireless earphone; when the acceleration value is less than or equal to the preset acceleration threshold within the preset time, the second motion data is sent to the third-party device, so that the third-party device can generate a standard motion curve according to the second motion data. For example, in a practical application scenario, a wireless headset is paired and connected to a mobile terminal through Bluetooth. When the wireless earphone is in the wearing state, the second motion data of the user's head is obtained through the wireless earphone, and the second motion data includes the acceleration value of the wireless earphone and the angle and frequency of the wireless earphone; When the acceleration threshold is set, it is determined that the posture of the user's head is in a normal posture; at this time, the second movement data of the user's head collected within a preset time can be sent to the mobile terminal, and then the mobile terminal constructs The standard motion curve of the user's head is fed back to the wireless headset; after the wireless headset receives the standard motion curve, it compares the motion curve of the user's head with the standard motion curve to determine whether the posture of the user's head is normal. In another practical application scenario, the wireless headset is paired and connected to the mobile terminal through Bluetooth, and the wireless headset is connected to the cloud through the mobile terminal. When the wireless earphone is in the wearing state, the second motion data of the user's head is obtained through the wireless earphone, and the second motion data includes the acceleration value of the wireless earphone and the angle and frequency of the wireless earphone; When the acceleration threshold is set, it is determined that the posture of the user's head is in a normal posture; at this time, the mobile terminal can be used to send the second movement data of the user's head collected within the preset time to the cloud, and then the artificial intelligence algorithm in the cloud will The second motion data constructs the standard motion curve of the user's head, and feeds it back to the wireless earphone through the mobile terminal; after the wireless earphone receives the standard motion curve, it compares the motion curve of the user's head with the standard motion curve to judge the motion of the user's head. Whether the posture is a normal posture.
需要说明的是,云端基于人工智能算法生成标准运动曲线的过程为:接收到n次有效头部运动姿态数据,根据头部运动的角度,频次及加速度变化率来通过分类算法(例如K近邻算法)进行分类来找到头部运动曲线。同时,根据该头部运动曲线来预测下一次头部运动姿态数据。如果m次预测中有k次预测准确,则确定该头部运动曲线为当前佩戴者头部运动姿态的标准运动曲线。其中,m和k的取值根据准确度来设定。It should be noted that the process of generating a standard motion curve based on the artificial intelligence algorithm in the cloud is as follows: after receiving n times of valid head motion posture data, according to the angle, frequency and acceleration rate of the head motion, a classification algorithm (such as the K nearest neighbor algorithm ) to find head motion curves. At the same time, predict the next head movement posture data according to the head movement curve. If k predictions out of the m predictions are accurate, the head motion curve is determined to be the standard motion curve of the current wearer's head motion posture. Among them, the values of m and k are set according to the accuracy.
在又一示例中,将第一运动数据发送给第三方设备;以及接收第三方设备发送比对结果。采用此种方式时,选用第三方设备来处理用户头部的运动数据以得到用户头部的运动曲线,以及将用户头部的运动曲线与标准运动曲线作对比以判断用户头部的姿态,有利于提高姿态检测的准确度。In yet another example, the first motion data is sent to a third-party device; and the comparison result sent by the third-party device is received. When using this method, a third-party device is selected to process the motion data of the user's head to obtain the motion curve of the user's head, and the motion curve of the user's head is compared with the standard motion curve to judge the posture of the user's head. It is beneficial to improve the accuracy of posture detection.
S103:获取运动曲线与标准运动曲线的比对结果,并根据比对结果向用户发送报警提示。S103: Obtain a comparison result between the motion curve and the standard motion curve, and send an alarm prompt to the user according to the comparison result.
当无线耳机处于佩戴状态时,无线耳机跟随用户头部一起运动,此时可将无线耳机的运动数据视为用户头部的运动数据。在一些实际场景中,当用户头部处于正常姿态时,颈部肌肉群拉力力矩会使得用户头部的运动姿态趋于稳定,此时用户头部的加速度很小。当用户出现姿势疲劳时(也即非正常姿态时),颈部肌肉群拉力的力矩无法与头颈部重力力矩保持平衡,从而会产生加速度变化,此时用户头部的加速度较大。在另一些实际场景中,当用户头部出现姿势疲劳时(也即非正常姿态时),用户头部的加速度较小且长时间内用户头的姿态保持不变,此时用户头部的运动频次和运动角度均较小,则用户头部的运动曲线趋于平缓。由此可见,在判断用户头部的当前姿态时,可基于用户头部运动过程中的加速度值、频次及角度等中的任意一个或几个参数来确定。为了更好地理解,下面对如何判断出用户头部的姿态作进一步说明:When the wireless earphone is in the wearing state, the wireless earphone moves with the user's head, and at this time, the motion data of the wireless earphone can be regarded as the motion data of the user's head. In some practical scenarios, when the user's head is in a normal posture, the pulling torque of the neck muscles will make the motion posture of the user's head tend to be stable, and the acceleration of the user's head is very small at this time. When the user suffers from postural fatigue (that is, when the posture is abnormal), the torque of the pulling force of the neck muscles cannot be balanced with the gravity torque of the head and neck, resulting in changes in acceleration. At this time, the acceleration of the user's head is relatively large. In some other actual scenarios, when the user's head has posture fatigue (that is, abnormal posture), the acceleration of the user's head is small and the posture of the user's head remains unchanged for a long time. At this time, the movement of the user's head If both the frequency and the movement angle are small, the movement curve of the user's head tends to be gentle. It can be seen that when judging the current posture of the user's head, it can be determined based on any one or several parameters of the acceleration value, frequency and angle during the movement of the user's head. For a better understanding, the following further explains how to determine the posture of the user's head:
在一示例中,第一运动数据包括:无线耳机的角度及频次。根据角度及频次生成用户头部的运动曲线;还获得标准运动曲线。之后,获取运动曲线与标准运动曲线的比对结果包括:获取运动曲线的第一频次和第一角度和标准运动曲线的第二频次和第二角度;在第一频次小于第二频次且第一角度小于第二角度时,生成用户头部处于非正常姿态的比对结果;和/或,在第一频次大于第二频次且第一角度大于第二角度时,生成用户头部处于非正常姿态的比对结果。In an example, the first motion data includes: the angle and frequency of the wireless earphone. Generate the motion curve of the user's head according to the angle and frequency; also obtain the standard motion curve. Afterwards, obtaining the comparison result of the motion curve and the standard motion curve includes: obtaining the first frequency and the first angle of the motion curve and the second frequency and the second angle of the standard motion curve; when the first frequency is less than the second frequency and the first When the angle is smaller than the second angle, generate a comparison result that the user's head is in an abnormal posture; and/or, when the first frequency is greater than the second frequency and the first angle is greater than the second angle, generate that the user's head is in an abnormal posture comparison results.
在另一示例中,第一运动数据包括:无线耳机的加速度值和无线耳机的角度及频次。根据角度及频次生成用户头部的运动曲线;还获得标准运动曲线。若在预设时间内加速度值大 于预设加速度阈值且加速度值呈递增趋势时,生成用户头部处于非正常姿态的异常结果,并根据异常结果向用户发送报警提示;若在预设时间内加速度值小于预设加速度阈值时,将运动曲线与标准运动曲线作比较以得到比对结果,此时将运动曲线与标准运动曲线作比较以得到比对结果的过程如前文所述,在此不再赘述。In another example, the first motion data includes: the acceleration value of the wireless earphone and the angle and frequency of the wireless earphone. Generate the motion curve of the user's head according to the angle and frequency; also obtain the standard motion curve. If the acceleration value is greater than the preset acceleration threshold within the preset time and the acceleration value shows an increasing trend, an abnormal result that the user's head is in an abnormal posture will be generated, and an alarm prompt will be sent to the user according to the abnormal result; if the acceleration is within the preset time When the value is less than the preset acceleration threshold, compare the motion curve with the standard motion curve to obtain the comparison result. At this time, the process of comparing the motion curve with the standard motion curve to obtain the comparison result is as described above, and will not be repeated here. repeat.
可以理解的是,在将运动曲线与标准运动曲线作比较时,频次和角度可通过区间值的形式表示,频次可表明运动曲线或标准运动曲线的角度变化快慢,角度可表明运动曲线或标准运动曲线的角度变化范围。It can be understood that when comparing the motion curve with the standard motion curve, the frequency and angle can be expressed in the form of interval values, the frequency can indicate the speed of the angle change of the motion curve or the standard motion curve, and the angle can indicate the motion curve or the standard motion Angle variation range of the curve.
无线耳机内置有扬声器和马达;通过无线耳机向用户发送报警提示包括:通过无线耳机中的扬声器向用户头部发送语音提示,和/或通过无线耳机中的马达向用户头部发送振动提示。The wireless headset has built-in speakers and motors; sending an alarm prompt to the user through the wireless headset includes: sending a voice prompt to the user's head through the speaker in the wireless headset, and/or sending a vibration prompt to the user's head through the motor in the wireless headset.
根据本公开提供的姿态检测方法,实现了借助无线耳机获取用户头部的姿态数据,以及在用户头部处于非正常姿态(例如疲劳状态)时,向用户头部发送报警提示,达到及时提醒用户注意休息或调整不良姿态的目的。According to the posture detection method provided in the present disclosure, it is possible to obtain the posture data of the user's head with the help of wireless earphones, and when the user's head is in an abnormal posture (such as a fatigue state), an alarm prompt is sent to the user's head, so as to remind the user in time Be aware of the purpose of resting or adjusting for poor posture.
实施例二Embodiment two
本公开提供一种应用于无线耳机的姿态检测装置,请参见图4所示,姿态检测装置至少包括以下单元:姿态获取单元201、姿态判断单元202和姿态提醒单元203。The present disclosure provides an attitude detection device applied to wireless earphones. Please refer to FIG. 4 . The attitude detection device includes at least the following units: an attitude acquisition unit 201 , an attitude judgment unit 202 and an attitude reminder unit 203 .
姿态获取单元201,用于采集用户头部的第一运动数据;姿态判断单元202,用于根据采集到的第一运动数据生成用户头部的运动曲线;姿态提醒单元203,用于获取运动曲线与标准运动曲线的比对结果,并根据比对结果向用户发送报警提示。 Gesture acquisition unit 201 is used to collect the first motion data of the user's head; posture judgment unit 202 is used to generate the motion curve of the user's head according to the first motion data collected; posture reminder unit 203 is used to obtain the motion curve The comparison result with the standard motion curve, and an alarm prompt is sent to the user according to the comparison result.
在一些实施例中,姿态获取单元201还用于采集无线耳机的加速度值和/或采集无线耳机与用户头部之间的距离值。姿态检测装置进一步包括佩戴检测单元。佩戴检测单元,用于在预设时间内加速度值有变化时,确定无线耳机处于佩戴状态;或者,佩戴检测单元,用于在预设时间内距离值小于等于预设距离阈值时,确定无线耳机处于佩戴状态;或者,佩戴检测单元,用于在预设时间内加速度值有变化且距离值小于等于预设距离阈值时,确定无线耳机处于佩戴状态。In some embodiments, the attitude acquiring unit 201 is also used to acquire the acceleration value of the wireless earphone and/or acquire the distance value between the wireless earphone and the user's head. The posture detection device further includes a wearing detection unit. The wearing detection unit is used to determine that the wireless headset is in the wearing state when the acceleration value changes within a preset time; or, the wearing detection unit is used to determine that the wireless headset is in a wearing state when the distance value is less than or equal to a preset distance threshold within a preset time. In the wearing state; or, the wearing detection unit is used to determine that the wireless headset is in the wearing state when the acceleration value changes within a preset time and the distance value is less than or equal to the preset distance threshold.
在一些实施例中,姿态判断单元202用于通过无线耳机根据采集到的第一运动数据生成用户头部的运动曲线;从无线耳机内获取预先存储的标准运动曲线,并通过无线耳机将运动曲线与标准运动曲线作比较以得到比对结果。或者,姿态判断单元202用于通过无线耳机根据采集到的第一运动数据生成用户头部的运动曲线;接收第三方设备发送的标准运动曲线,并通过无线耳机将运动曲线与标准运动曲线作比较以得到比对结果。或者,姿态判断单元202用于将第一运动数据发送给第三方设备;接收第三方设备发送的比对结果。其中,第三方设 备可为与无线耳机配对连接的移动终端,或与无线耳机通信连接的云端。In some embodiments, the gesture judging unit 202 is used to generate the motion curve of the user's head according to the collected first motion data through the wireless earphone; obtain the pre-stored standard motion curve from the wireless earphone, and use the wireless earphone to convert the motion curve Compare with the standard motion curve to get the comparison result. Alternatively, the posture judging unit 202 is used to generate the motion curve of the user's head according to the collected first motion data through the wireless earphone; receive the standard motion curve sent by the third-party device, and compare the motion curve with the standard motion curve through the wireless earphone to get the comparison result. Alternatively, the posture judging unit 202 is configured to send the first motion data to a third-party device; and receive a comparison result sent by the third-party device. Wherein, the third-party device can be a mobile terminal paired and connected with the wireless headset, or a cloud connected with the wireless headset.
在一些实施例中,姿态获取单元201还用于采集用户头部的第二运动数据,第二运动数据包括无线耳机的加速度值。姿态判断单元202还用于在预设时间内加速度值小于等于预设加速度阈值时,将第二运动数据发送给第三方设备,以供第三方设备根据第二运动数据生成标准运动曲线。In some embodiments, the posture acquisition unit 201 is further configured to collect second motion data of the user's head, and the second motion data includes the acceleration value of the wireless earphone. The posture judging unit 202 is also configured to send the second motion data to the third-party device when the acceleration value is less than or equal to the preset acceleration threshold within the preset time, so that the third-party device can generate a standard motion curve according to the second motion data.
在一些实施例中,姿态判断单元202还用于获取运动曲线的第一频次和第一角度和标准运动曲线的第二频次和第二角度;在第一频次小于第二频次且第一角度小于第二角度时,生成用户头部处于非正常姿态的比对结果;和/或,姿态判断单元202还用于在第一频次大于第二频次且第一角度大于第二角度时,生成用户头部处于非正常姿态的比对结果。In some embodiments, the posture judging unit 202 is also used to obtain the first frequency and the first angle of the motion curve and the second frequency and the second angle of the standard motion curve; when the first frequency is less than the second frequency and the first angle is less than At the second angle, generate the comparison result that the user’s head is in an abnormal posture; The comparison results of all parts in abnormal postures.
在一些实施例中,当第一运动数据包括无线耳机的加速度值时,姿态判断单元202还用于在预设时间内加速度值大于预设加速度阈值且加速度值呈递增趋势时,生成用户头部处于非正常姿态的异常结果;以及在预设时间内加速度值小于预设加速度阈值时,将运动曲线与标准运动曲线作比较以得到比对结果。姿态提醒单元203还用于根据异常结果向用户发送报警提示。In some embodiments, when the first motion data includes the acceleration value of the wireless earphone, the posture judging unit 202 is further configured to generate a user head response when the acceleration value is greater than the preset acceleration threshold within a preset time and the acceleration value shows an increasing trend. An abnormal result in an abnormal posture; and when the acceleration value is less than a preset acceleration threshold within a preset time, comparing the motion curve with the standard motion curve to obtain a comparison result. The posture reminder unit 203 is also configured to send an alarm prompt to the user according to the abnormal result.
根据本公开提供的姿态检测装置,实现了借助无线耳机获取用户头部的姿态数据,以及在用户头部处于非正常姿态(例如疲劳状态)时,向用户头部发送报警提示,达到及时提醒用户注意休息或调整不良姿态的目的。According to the posture detection device provided in the present disclosure, it is possible to obtain the posture data of the user's head with the help of wireless earphones, and when the user's head is in an abnormal posture (such as a fatigue state), an alarm prompt is sent to the user's head, so as to remind the user in time Be aware of the purpose of resting or adjusting for poor posture.
实施例三Embodiment Three
本公开提供一种姿态检测方法及装置,该无线耳机可以是入耳式无线蓝牙耳机,也可以是骨传导式无线蓝牙耳机。请参见图5所示,无线耳机中姿态检测装置包括以下单元:姿态追踪单元301(对应于姿态获取单元201)、音频振动单元302(对应于姿态提醒单元203)、佩戴检测单元300、无线连接单元303、电源管理单元304、存储单元305和管理控制单元306(对应于姿态判断单元202)。下面对姿态检测装置中各个单元的功能作详细的阐述。The present disclosure provides a gesture detection method and device. The wireless earphone may be an in-ear wireless Bluetooth earphone or a bone conduction wireless Bluetooth earphone. Please refer to shown in Fig. 5, the posture detection device in the wireless earphone includes the following units: posture tracking unit 301 (corresponding to posture acquisition unit 201), audio vibration unit 302 (corresponding to posture reminder unit 203), wearing detection unit 300, wireless connection unit 303 , power management unit 304 , storage unit 305 and management control unit 306 (corresponding to posture judging unit 202 ). The functions of each unit in the attitude detection device will be described in detail below.
佩戴检测单元300,用于判断用户是否已经佩戴好无线耳机。只有处于佩戴状态的无线耳机,姿态追踪单元301才会被使能,以及提供的数据才会有效。同时,当无线耳机没有被佩戴时,其处于深度休眠状态,以降低整个系统的功耗。该佩戴检测单元300包括距离检测器和加速度传感器,其中,距离检测器可为接近红外传感器和电容式传感器中的任意一种。同时,距离检测器可设置在每个扬声器周围。在实际应用中,佩戴检测单元300用于定时读取加速度传感器的加速度值,当预设时间内加速度值有变化时,确定无线耳机处于移动状态;启动距离检测器进行定时检测,当距离检测器检测到的距离值小于等于预设距离阈值时,确 定无线耳机处于佩戴状态。The wearing detection unit 300 is used for judging whether the user has worn the wireless earphone. Only when the wireless earphone is in the wearing state, the posture tracking unit 301 will be enabled and the provided data will be valid. At the same time, when the wireless headset is not worn, it is in a deep sleep state to reduce the power consumption of the entire system. The wearing detection unit 300 includes a distance detector and an acceleration sensor, wherein the distance detector can be any one of a proximity infrared sensor and a capacitive sensor. Meanwhile, a distance detector may be provided around each speaker. In practical applications, the wearing detection unit 300 is used to regularly read the acceleration value of the acceleration sensor. When the acceleration value changes within a preset time, it is determined that the wireless earphone is in a moving state; the distance detector is started for timing detection. When the distance detector When the detected distance value is less than or equal to the preset distance threshold, it is determined that the wireless headset is in the wearing state.
姿态追踪单元301,用于监测用户头部的运动数据。该姿态追踪单元301可以包括加速度传感器和/或角速度传感器(也称为陀螺仪)。通过加速度传感器可获得无线耳机的加速度值,而通过陀螺仪可获得无线耳机的角度。The posture tracking unit 301 is configured to monitor the movement data of the user's head. The attitude tracking unit 301 may include an acceleration sensor and/or an angular velocity sensor (also called a gyroscope). The acceleration value of the wireless headset can be obtained through the acceleration sensor, and the angle of the wireless headset can be obtained through the gyroscope.
音频振动单元302,用于提供电声转换及音频采集、振动提醒等功能。该音频振动单元302包括但不限于麦克风(Microphone,简称MIC)、骨传导扬声器和马达。其中,麦克风用于采集音频数据;骨传导扬声器用于将电信号转换为音频数据;马达用于产生振动。在实际应用中,用户利用骨传导式无线耳机进行通话时,音频振动单元302用于通过骨传导方式将音频数据传递给用户,也将采集到的音频数据发送给管理控制单元306,以供管理控制单元306将该音频数据发送至移动终端。此外,该音频振动单元302还用于接收管理控制单元306发送的提示信息,根据该提示信息向用户提供听觉及触觉上的及时提醒,以提醒用户注意休息或调整不良坐姿。The audio vibration unit 302 is used to provide electro-acoustic conversion, audio collection, vibration reminder and other functions. The audio vibration unit 302 includes but not limited to a microphone (Microphone, MIC for short), a bone conduction speaker and a motor. Among them, the microphone is used to collect audio data; the bone conduction speaker is used to convert electrical signals into audio data; the motor is used to generate vibration. In practical applications, when a user makes a call with a bone conduction wireless headset, the audio vibration unit 302 is used to transmit audio data to the user through bone conduction, and also sends the collected audio data to the management control unit 306 for management The control unit 306 sends the audio data to the mobile terminal. In addition, the audio vibration unit 302 is also used to receive prompt information sent by the management control unit 306, and provide timely auditory and tactile reminders to the user according to the prompt information, so as to remind the user to pay attention to rest or adjust bad sitting posture.
无线连接单元303,用于提供移动网路将无线耳机与移动终端等外部设备进行连接,例如采用蓝牙或WIFI连接方式。管理控制单元306与移动终端等外部设备通过无线连接单元303进行音频数据传递,以实现语音通话。当无线耳机能接入云端,还可通过无线连接单元303将用户头部的运动数据传递给移动终端,并由移动终端传递给云端。在此方式下,可由云端的人工智能算法(例如K近邻算法)根据用户头部的运动数据来构建用户头部的运动曲线;之后通过移动终端将用户头部的运动曲线反馈给无线耳机。应当理解的是,由云端估算出的用户头部的运动曲线为用户头部处于正常姿态时的运动曲线,其可作为判断用户头部的当前姿态时的参考运动曲线,下文将该参考运动曲线称为标准运动曲线。The wireless connection unit 303 is configured to provide a mobile network to connect the wireless headset with external devices such as mobile terminals, for example, by using Bluetooth or WIFI connection. The management control unit 306 communicates audio data with external devices such as mobile terminals through the wireless connection unit 303 to realize voice communication. When the wireless earphone can be connected to the cloud, the motion data of the user's head can also be transmitted to the mobile terminal through the wireless connection unit 303, and then transmitted to the cloud by the mobile terminal. In this way, the artificial intelligence algorithm in the cloud (such as the K nearest neighbor algorithm) can construct the motion curve of the user's head according to the motion data of the user's head; and then feed back the motion curve of the user's head to the wireless earphone through the mobile terminal. It should be understood that the motion curve of the user's head estimated by the cloud is the motion curve when the user's head is in a normal posture, which can be used as a reference motion curve for judging the current posture of the user's head. called the standard motion curve.
电源管理单元304,用于给姿态检测装置中的其他单元供电及给本单元中的电池进行充电。无线耳机因无需配置音频连接线以提升便携性,则无线耳机内部各个单元需要依靠电池来供电。此外,电源管理单元304还可包括电源开关,该电源开关可用于控制姿态检测装置中其他单元的供电电路,以进一步降低功耗。The power management unit 304 is used to supply power to other units in the attitude detection device and to charge the battery in this unit. Since the wireless headset does not need to be equipped with an audio cable to improve portability, each unit inside the wireless headset needs to be powered by a battery. In addition, the power management unit 304 can also include a power switch, which can be used to control the power supply circuits of other units in the posture detection device, so as to further reduce power consumption.
存储单元305,用于存储用户头部的运动数据以及用户头部处于正常姿态时的运动曲线(也即标准运动曲线)。在实际应用场景中,当无线耳机中的无线连接单元303处于离线状态,或者因网络不稳定导致无线耳机无法顺利接入云端,或者无线耳机不具备云端服务功能,则管理控制单元306可从存储单元305中获取标准运动曲线,在此方式下,标准运动曲线是由本地算法估算得到的。同时,储存单元305包括但不限于TF卡(Trans-flash Card,简称TF卡)、闪存(Flash EEPROM,简称Flash)储存芯片。The storage unit 305 is configured to store the motion data of the user's head and the motion curve (that is, the standard motion curve) when the user's head is in a normal posture. In a practical application scenario, when the wireless connection unit 303 in the wireless headset is offline, or the wireless headset cannot be successfully connected to the cloud due to unstable network, or the wireless headset does not have the cloud service function, the management control unit 306 can access the The standard motion curve is obtained in unit 305. In this manner, the standard motion curve is estimated by a local algorithm. Meanwhile, the storage unit 305 includes but is not limited to a TF card (Trans-flash Card, TF card for short), and a flash memory (Flash EEPROM, Flash for short) storage chip.
管理控制单元306,用于判断用户头部的当前姿态。在实际应用中,当无线耳机被佩戴 后,需要对用户头部的当前姿态进行判断。此时,管理控制单元306从存储单元305获得标准运动曲线,或者通过无线连接单元303及移动终端从云端获得标准运动曲线;以及从姿态追踪单元301获取用户头部的运动数据,并根据用户头部的运动数据构建用户头部的运动曲线;再根据运动曲线和标准运动曲线判断用户头部的当前姿态,最后根据比较结果生成提示信息并发送给音频振动单元302。The management control unit 306 is configured to judge the current posture of the user's head. In practical applications, when the wireless headset is worn, it is necessary to judge the current posture of the user's head. At this time, the management control unit 306 obtains the standard motion curve from the storage unit 305, or obtains the standard motion curve from the cloud through the wireless connection unit 303 and the mobile terminal; and obtains the motion data of the user's head from the posture tracking unit 301, and The motion data of the user's head is used to construct the motion curve of the user's head; the current posture of the user's head is judged according to the motion curve and the standard motion curve, and finally a prompt message is generated according to the comparison result and sent to the audio vibration unit 302.
为了更好地理解本公开,本公开结合应用场景一和应用场景二对姿态检测方法及装置作详细阐述。In order to better understand the present disclosure, the present disclosure will elaborate on the pose detection method and device in combination with application scenario 1 and application scenario 2.
应用场景一Application Scenario 1
本公开提供的姿态检测装置及方法可应用于对驾驶员的疲劳状态进行监测,使得驾驶员享用汽车所带来的出行便利同时多一份安全监控。此时,无线耳机为骨传导式无线耳机。由于无线耳机采用骨传导方式,无需将耳塞插入耳道,不会降低驾驶员对外界声音的感知效果。The posture detection device and method provided in the present disclosure can be applied to monitor the driver's fatigue state, so that the driver can enjoy the convenience of travel brought by the car and have an additional security monitoring. At this time, the wireless earphone is a bone conduction type wireless earphone. Since the wireless headset adopts the bone conduction method, there is no need to insert earplugs into the ear canal, and it will not reduce the driver's perception of external sounds.
请参见图6所示,应用于无线耳机的姿态检测装置包括以下单元:姿态追踪单元301、音频振动单元302、佩戴检测单元300、无线连接单元303、电源管理单元304、存储单元305和管理控制单元306。其中,佩戴检测单元300包括加速度传感器和红外接近传感器;姿态追踪单元301包括陀螺仪和加速度传感器;音频振动单元302包括:音频编解码单元、MIC、骨传导扬声器和马达;无线连接单元303采用蓝牙的方式与移动终端进行连接;电源管理单元304包括充电及电源转换单元和电池;存储单元305包括Flash储存芯片;管理控制单元306包括微控制单元(Micro Control Unit,简称MCU)。Please refer to Fig. 6, the posture detection device applied to wireless earphones includes the following units: posture tracking unit 301, audio vibration unit 302, wearing detection unit 300, wireless connection unit 303, power management unit 304, storage unit 305 and management control Unit 306. Wherein, the wearing detection unit 300 includes an acceleration sensor and an infrared proximity sensor; the attitude tracking unit 301 includes a gyroscope and an acceleration sensor; the audio vibration unit 302 includes: an audio codec unit, MIC, a bone conduction speaker, and a motor; the wireless connection unit 303 uses Bluetooth The power management unit 304 includes a charging and power conversion unit and a battery; the storage unit 305 includes a Flash storage chip; the management control unit 306 includes a micro control unit (Micro Control Unit, referred to as MCU).
请参见图7所示,应用于无线耳机的姿态检测方法包括以下步骤S501至S518。Please refer to FIG. 7 , the posture detection method applied to wireless earphones includes the following steps S501 to S518.
S501:无线耳机处于休眠状态,定时获取加速度传感器检测到的加速度值,判断预设时间内加速度值是否有变化,若有,确定无线耳机处于移动状态,接下来执行S502;反之,不作任何处理。S501: The wireless earphone is in a dormant state, regularly acquires the acceleration value detected by the acceleration sensor, and judges whether the acceleration value has changed within the preset time, and if so, determines that the wireless earphone is in a moving state, and then executes S502; otherwise, does not do any processing.
S502:启动红外接近传感器进行检测。S502: Start the infrared proximity sensor for detection.
S503:定时获取红外接近传感器检测到的距离值,判断预设时间内距离值是否都小于等于预设距离值;若是,确定无线耳机处于佩戴状态;反之,确定无线耳机仅处于移动状态。S503: Obtain the distance value detected by the infrared proximity sensor regularly, and determine whether the distance values are less than or equal to the preset distance value within the preset time; if so, determine that the wireless earphone is in the wearing state; otherwise, determine that the wireless earphone is only in the moving state.
S504:确定无线耳机处于佩戴状态,接下来执行S506;S504: Determine that the wireless headset is in the wearing state, and then execute S506;
S505:确定无线耳机仅处于移动状态,不作任何处理。S505: Determine that the wireless headset is only in a moving state, and do not perform any processing.
S506:校准加速度传感器和陀螺仪,并与移动终端建立蓝牙连接。S506: Calibrate the acceleration sensor and the gyroscope, and establish a Bluetooth connection with the mobile terminal.
S507:判断无线耳机是否能接入云端;若为否,执行S508;反之,执行S509。S507: Determine whether the wireless headset can be connected to the cloud; if not, execute S508; otherwise, execute S509.
S508:从本地获取预先存储的标准运动曲线。S508: Obtain a pre-stored standard motion curve locally.
S509:定时获取加速度传感器的加速度值。S509: Obtain the acceleration value of the acceleration sensor regularly.
S510:判断预设时间内加速度值是否小于预设加速度阈值;若是,执行S511;反之,返回执行S509。S510: Determine whether the acceleration value within the preset time is smaller than the preset acceleration threshold; if yes, execute S511; otherwise, return to execute S509.
S511:通过移动终端将用户头部的运动数据上传至云端,由云端的人工智能算法估算得到用户头部处于正常姿态时的运动曲线(也即标准运动曲线)。S511: Upload the motion data of the user's head to the cloud through the mobile terminal, and estimate the motion curve (that is, the standard motion curve) of the user's head in a normal posture by the artificial intelligence algorithm of the cloud.
S512:通过移动终端接收由云端发送的标准运动曲线。S512: Receive the standard motion curve sent by the cloud through the mobile terminal.
S513:定时获取加速度传感器的加速度值和陀螺仪的参数。S513: Obtain the acceleration value of the acceleration sensor and the parameters of the gyroscope at regular intervals.
S514:根据陀螺仪的参数确定用户头部的运动曲线。S514: Determine the motion curve of the user's head according to the parameters of the gyroscope.
S515:判断在预设时间内加速度值是否大于预设加速度阈值;若是,执行S516;反之,执行S517。S515: Determine whether the acceleration value is greater than the preset acceleration threshold within the preset time; if yes, execute S516; otherwise, execute S517.
S516:在这预设时间内加速度值呈递增趋势时,确定驾驶员的疲劳程度较高,并及时提醒驾驶员注意休息。S516: When the acceleration value shows an increasing trend within the preset time, it is determined that the driver's fatigue level is high, and the driver is reminded to take a rest in time.
S517:再根据运动曲线与标准运动曲线,进一步判断用户头部的当前姿态是否处于非正常姿态;若是,执行S518;反之,返回执行S513。S517: Further judge whether the current posture of the user's head is in an abnormal posture according to the motion curve and the standard motion curve; if so, execute S518; otherwise, return to execute S513.
S518:在运动曲线的频次小于标准运动曲线的频次,且运动曲线的角度小于标准运动曲线的角度时,确定驾驶员的疲劳程度较高,并及时提醒驾驶员注意休息。如果汽车的控制单元具备驾驶员状态数据接入功能时,同时将该疲劳程度传递给汽车的控制单元,根据疲劳程度限制或降低行车速度。S518: When the frequency of the motion curve is less than the frequency of the standard motion curve, and the angle of the motion curve is smaller than the angle of the standard motion curve, determine that the driver's fatigue is high, and promptly remind the driver to take a rest. If the control unit of the car has the driver status data access function, the fatigue degree is transmitted to the control unit of the car at the same time, and the driving speed is limited or reduced according to the degree of fatigue.
通过本公开提供的姿态检测方法及装置,在驾驶员佩戴无线耳机后,由于该无线耳机具备姿态检测功能,可实现对驾驶员的疲劳状态进行监测。同时该无线耳机在监测驾驶员疲劳状态过程,可以根据疲劳状态程度向驾驶员发出听觉和/或触觉方式的预警,使得驾驶员在享用汽车所带来的出行便利的同时多一份安全监控。With the attitude detection method and device provided in the present disclosure, after the driver wears the wireless earphone, since the wireless earphone has an attitude detection function, the fatigue state of the driver can be monitored. At the same time, during the process of monitoring the driver's fatigue state, the wireless earphone can give the driver an auditory and/or tactile warning according to the degree of fatigue state, so that the driver can enjoy the convenience of travel brought by the car while having an additional safety monitoring.
应用场景二Application Scenario 2
本公开提供的姿态检测装置及方法可应用于对小学生的疲劳状态进行监测,使得小学生的注意力保持集中。此时,无线耳机可以为入耳式无线耳机也可以是骨传导式无线耳机。The posture detection device and method provided by the present disclosure can be applied to monitor the fatigue state of primary school students, so that the primary school students can keep their attention focused. At this time, the wireless earphone may be an in-ear wireless earphone or a bone conduction wireless earphone.
请参见图8所示,应用于无线耳机的姿态检测装置包括以下单元:姿态追踪单元301、音频振动单元302、佩戴检测单元300、无线连接单元303、电源管理单元304、存储单元305和管理控制单元306。其中,佩戴检测单元300包括加速度传感器和电容式传感器(也即图中的电容触摸按键);姿态追踪单元301包括陀螺仪和加速度传感器;音频振动单元302包括:音频编解码单元、MIC、骨传导扬声器和马达;无线连接单元303采用蓝牙的方式与移动终端进行连接;电源管理单元304包括充电及电源转换单元和电池;存储单元305包括Flash储存芯片;管理控制单元306包括微控制单元(Micro Control Unit,简称MCU)。Please refer to Fig. 8, the posture detection device applied to wireless earphones includes the following units: posture tracking unit 301, audio vibration unit 302, wearing detection unit 300, wireless connection unit 303, power management unit 304, storage unit 305 and management control Unit 306. Wherein, the wearing detection unit 300 includes an acceleration sensor and a capacitive sensor (that is, the capacitive touch button in the figure); the posture tracking unit 301 includes a gyroscope and an acceleration sensor; the audio vibration unit 302 includes: an audio codec unit, MIC, bone conduction Loudspeaker and motor; Wireless connection unit 303 adopts the mode of bluetooth to be connected with mobile terminal; Power management unit 304 comprises charging and power conversion unit and battery; Storage unit 305 comprises Flash storage chip; Management control unit 306 comprises micro control unit (Micro Control Unit, referred to as MCU).
请参见图9所示,应用于无线耳机的姿态检测方法包括以下步骤:S701至S718。Please refer to FIG. 9 , the posture detection method applied to wireless earphones includes the following steps: S701 to S718.
S701:无线耳机处于休眠状态,定时获取加速度传感器检测到的加速度值,判断预设时间内加速度值是否有变化,若有,确定无线耳机处于移动状态,接下来执行S702;反之,不作任何处理。S701: The wireless earphone is in a dormant state, regularly acquires the acceleration value detected by the acceleration sensor, and judges whether the acceleration value has changed within the preset time, and if so, determines that the wireless earphone is in a moving state, and then executes S702; otherwise, does not perform any processing.
S702:启动电容式传感器进行检测。S702: Start the capacitive sensor for detection.
S703:定时获取电容式传感器检测到的距离值,判断预设时间内距离值是否都小于等于预设距离值;若是,确定无线耳机处于佩戴状态;反之,确定无线耳机仅处于移动状态。S703: Obtain the distance value detected by the capacitive sensor regularly, and determine whether the distance value is less than or equal to the preset distance value within the preset time; if so, determine that the wireless earphone is in the wearing state; otherwise, determine that the wireless earphone is only in the moving state.
S704:确定无线耳机处于佩戴状态,接下来执行S706。S704: Determine that the wireless earphone is in the wearing state, and then execute S706.
S705:确定无线耳机仅处于移动状态,不作任何处理。S705: Determine that the wireless headset is only in a moving state, without any processing.
S706:校准加速度传感器和陀螺仪,并与移动终端建立蓝牙连接。S706: Calibrate the acceleration sensor and the gyroscope, and establish a Bluetooth connection with the mobile terminal.
S707:判断无线耳机是否能接入云端;若为否,执行S708;反之,执行S709。S707: Determine whether the wireless headset can be connected to the cloud; if not, execute S708; otherwise, execute S709.
S708:从本地获取预先存储的标准运动曲线。S708: Obtain a pre-stored standard motion curve locally.
S709:定时获取加速度传感器的加速度值。S709: Obtain the acceleration value of the acceleration sensor regularly.
S710:判断预设时间内加速度值是否小于预设加速度阈值;若是,执行S711;反之,返回执行S709。S710: Determine whether the acceleration value within the preset time is smaller than the preset acceleration threshold; if yes, execute S711; otherwise, return to execute S709.
S711:通过移动终端将用户头部的运动数据上传至云端,由云端的人工智能算法估算得到用户头部处于正常姿态时的运动曲线(也即标准运动曲线)。S711: Upload the motion data of the user's head to the cloud through the mobile terminal, and estimate the motion curve (that is, the standard motion curve) when the user's head is in a normal posture by the artificial intelligence algorithm in the cloud.
S712:通过移动终端接收由云端发送的标准运动曲线。S712: Receive the standard motion curve sent by the cloud through the mobile terminal.
S713:定时获取陀螺仪的参数。S713: Obtain the parameters of the gyroscope at regular intervals.
S714:根据陀螺仪的参数确定用户头部的运动曲线。S714: Determine the motion curve of the user's head according to the parameters of the gyroscope.
S715:判断运动曲线与标准运动曲线之间是否满足第一预设条件,该第一预设条件为运动曲线的频次小于标准运动曲线的频次,且运动曲线的角度小于标准运动曲线的角度;若为否,执行S716;反之,返回执行S717。S715: Judging whether the first preset condition is satisfied between the motion curve and the standard motion curve, the first preset condition is that the frequency of the motion curve is less than the frequency of the standard motion curve, and the angle of the motion curve is smaller than the angle of the standard motion curve; if If no, execute S716; otherwise, return to execute S717.
S716:确定小学生的疲劳程度较高,并及时提醒小学生注意休息或稍微活动头部。S716: Determine that the primary school students have a high degree of fatigue, and promptly remind the primary school students to rest or move their heads a little.
S717:继续判断运动曲线与标准运动曲线之间是否满足第二预设条件,该第二预设条件为运动曲线的频次大于标准运动曲线的频次,且运动曲线的角度大于标准运动曲线的角度;若是,执行S718;反之,返回执行S713。S717: Continue to judge whether the second preset condition is satisfied between the motion curve and the standard motion curve, the second preset condition is that the frequency of the motion curve is greater than the frequency of the standard motion curve, and the angle of the motion curve is greater than the angle of the standard motion curve; If yes, execute S718; otherwise, return to execute S713.
S718:确定小学生的注意力不集中,并及时提醒小学生需集中注意力或调整写字坐姿。S718: Determine the pupil's lack of concentration, and promptly remind the pupil to concentrate or adjust the sitting posture for writing.
通过本公开提供的姿态检测方法及装置,在小学生佩戴无线耳机后,由于该无线耳机具备姿态检测功能,可实现对小学生的疲劳状态进行监测。同时该无线耳机在监测小学生疲劳状态过程,可以根据疲劳状态程度向小学生发出听觉和/或触觉方式的预警,使得小学生在写 作业或听课时能集中注意力以及保持正确坐姿。With the attitude detection method and device provided in the present disclosure, after the pupil wears the wireless earphone, since the wireless earphone has an attitude detection function, the fatigue state of the pupil can be monitored. At the same time, the wireless earphone can send out auditory and/or tactile warnings to primary school students according to the fatigue state during the process of monitoring the fatigue state of primary school students, so that primary school students can concentrate and maintain correct sitting posture when writing homework or listening to classes.
实施例四Embodiment Four
本实施例提供了一种无线耳机,参见图10所示,其包括处理器801、存储器802及通信总线803,其中:通信总线803用于实现处理器801和存储器802之间的连接通信;处理器801用于执行存储器802中存储的一个或者多个计算机程序,以实现上述各实施例中姿态检测方法中的至少一个步骤。This embodiment provides a wireless earphone, as shown in FIG. 10, which includes a processor 801, a memory 802, and a communication bus 803, wherein: the communication bus 803 is used to realize connection and communication between the processor 801 and the memory 802; The device 801 is configured to execute one or more computer programs stored in the memory 802, so as to realize at least one step in the posture detection method in the above-mentioned embodiments.
本实施例还提供了一种计算机可读存储介质,该计算机可读存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、计算机程序模块或其他数据)的任何方法或技术中实施的易失性或非易失性、可移除或不可移除的介质。计算机可读存储介质包括但不限于RAM(RandomAccessMemory,随机存取存储器),ROM(Read-OnlyMemory,只读存储器),EEPROM(ElectricallyErasableProgrammablereadonlymemory,带电可擦可编程只读存储器)、闪存或其他存储器技术、CD-ROM(CompactDiscRead-OnlyMemory,光盘只读存储器),数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。The present embodiment also provides a computer-readable storage medium, which includes information implemented in any method or technology for storing information, such as computer-readable instructions, data structures, computer program modules, or other data. volatile or nonvolatile, removable or non-removable media. Computer-readable storage media include, but are not limited to, RAM (Random Access Memory, random access memory), ROM (Read-Only Memory, read-only memory), EEPROM (Electrically Erasable Programmable read-only memory, electrically erasable programmable read-only memory), flash memory or other memory technologies, CD-ROM (CompactDiscRead-OnlyMemory, compact disk read-only memory), digital versatile disk (DVD) or other optical disk storage, magnetic box, magnetic tape, magnetic disk storage or other magnetic storage devices, or can be used to store desired information and can be Any other media accessed by a computer.
本实施例中的计算机可读存储介质可用于存储一个或者多个计算机程序,其存储的一个或者多个计算机程序可被处理器执行,以实现上述各实施例中姿态检测方法中的至少一个步骤。The computer-readable storage medium in this embodiment can be used to store one or more computer programs, and the one or more computer programs stored in it can be executed by a processor to implement at least one step in the posture detection method in the above-mentioned embodiments .
本实施例还提供了一种计算机程序(或称计算机软件),该计算机程序可以分布在计算机可读介质上,由可计算装置来执行,以实现上述各实施例中姿态检测方法中的至少一个步骤;并且在某些情况下,可以采用不同于上述实施例所描述的顺序执行所示出或描述的至少一个步骤。This embodiment also provides a computer program (or computer software), which can be distributed on a computer-readable medium and executed by a computing device to implement at least one of the pose detection methods in the above-mentioned embodiments steps; and in some cases, at least one step shown or described may be performed in a sequence different from that described in the above embodiments.
本实施例还提供了一种计算机程序产品,包括计算机可读装置,该计算机可读装置上存储有如上所示的计算机程序。本实施例中该计算机可读装置可包括如上所示的计算机可读存储介质。This embodiment also provides a computer program product, including a computer-readable device, on which the above-mentioned computer program is stored. The computer-readable device in this embodiment may include the computer-readable storage medium as described above.
根据本公开提供的姿态检测方法、装置、无线耳机及存储介质,通过采集用户头部的第一运动数据;根据采集到的第一运动数据生成用户头部的运动曲线;获取运动曲线与标准运动曲线的比对结果,并根据比对结果向用户发送报警提示;可实现借助无线耳机获取用户头部的姿态数据,以及在用户头部处于非正常姿态(例如疲劳状态)时,向用户头部发送报警提示,达到及时提醒用户注意休息或调整不良姿态的目的。According to the posture detection method, device, wireless earphone and storage medium provided in the present disclosure, by collecting the first motion data of the user's head; generating the motion curve of the user's head according to the collected first motion data; obtaining the motion curve and the standard motion The comparison results of the curves, and send an alarm to the user according to the comparison results; it is possible to obtain the posture data of the user's head with the help of wireless headphones, and when the user's head is in an abnormal posture (such as a fatigue state), send an alarm to the user's head Send an alarm prompt to timely remind the user to pay attention to rest or adjust bad posture.
可见,本领域的技术人员应该明白,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件(可以用计算装置可执行的计算机程序代码来实现)、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。It can be seen that those skilled in the art should understand that all or some of the steps in the methods disclosed above, the functional modules/units in the system and the device can be implemented as software (the computer program code executable by the computing device can be used to realize ), firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components. Components cooperate to execute. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit .
此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、计算机程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。所以,本公开不限制于任何特定的硬件和软件结合。In addition, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, computer program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery medium. Therefore, the present disclosure is not limited to any specific combination of hardware and software.
以上内容是结合具体的实施方式对本公开所作的进一步详细说明,不能认定本公开的实施只局限于这些说明。对于本公开所属技术领域的普通技术人员来说,在不脱离本公开构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本公开的保护范围。The above content is a further detailed description of the present disclosure in conjunction with specific implementation modes, and it cannot be deemed that the implementation of the present disclosure is limited to these descriptions. Those of ordinary skill in the technical field to which the present disclosure belongs can make some simple deduction or substitution without departing from the concept of the present disclosure, which should be deemed to belong to the protection scope of the present disclosure.

Claims (10)

  1. 一种姿态检测方法,应用于无线耳机,包括:A posture detection method applied to a wireless headset, comprising:
    采集用户头部的第一运动数据;Collecting the first motion data of the user's head;
    根据采集到的所述第一运动数据生成所述用户头部的运动曲线;generating a motion curve of the user's head according to the collected first motion data;
    获取所述运动曲线与标准运动曲线的比对结果,并根据所述比对结果向用户发送报警提示。A comparison result between the motion curve and the standard motion curve is obtained, and an alarm prompt is sent to the user according to the comparison result.
  2. 如权利要求1所述的姿态检测方法,其中,采集用户头部的第一运动数据之前进一步包括检测所述无线耳机的佩戴状态;The posture detection method according to claim 1, wherein, before collecting the first movement data of the user's head, it further comprises detecting the wearing state of the wireless earphone;
    所述检测所述无线耳机的佩戴状态包括:The detection of the wearing state of the wireless headset includes:
    采集所述无线耳机的加速度值,在预设时间内所述加速度值有变化时,确定所述无线耳机处于佩戴状态;Collecting the acceleration value of the wireless earphone, and determining that the wireless earphone is in the wearing state when the acceleration value changes within a preset time;
    或者,or,
    采集所述无线耳机与用户头部之间的距离值,在预设时间内所述距离值小于等于预设距离阈值时,确定所述无线耳机处于佩戴状态;Collecting a distance value between the wireless headset and the user's head, and determining that the wireless headset is in a wearing state when the distance value is less than or equal to a preset distance threshold within a preset time;
    或者,or,
    分别采集所述无线耳机的加速度值和所述无线耳机与所述用户头部之间的距离值,在预设时间内所述加速度值有变化且所述距离值小于等于预设距离阈值时,确定所述无线耳机处于佩戴状态。Collecting the acceleration value of the wireless earphone and the distance value between the wireless earphone and the user's head respectively, when the acceleration value changes within a preset time and the distance value is less than or equal to a preset distance threshold, It is determined that the wireless headset is in a wearing state.
  3. 如权利要求1所述的姿态检测方法,其中,所述方法进一步包括:The gesture detection method according to claim 1, wherein said method further comprises:
    通过所述无线耳机根据采集到的所述第一运动数据生成所述用户头部的运动曲线;从所述无线耳机内获取预先存储的所述标准运动曲线,并通过所述无线耳机将所述运动曲线与所述标准运动曲线作比较以得到所述比对结果;Generate a motion curve of the user's head through the wireless earphone according to the collected first motion data; obtain the pre-stored standard motion curve from the wireless earphone, and use the wireless earphone to generate the motion curve of the user's head; comparing the motion curve with the standard motion curve to obtain the comparison result;
    或者,or,
    通过所述无线耳机根据采集到的所述第一运动数据生成所述用户头部的运动曲线;generating a motion curve of the user's head through the wireless earphone according to the collected first motion data;
    接收第三方设备发送的所述标准运动曲线,并通过所述无线耳机将所述运动曲线与所述标准运动曲线作比较以得到所述比对结果;receiving the standard motion curve sent by a third-party device, and comparing the motion curve with the standard motion curve through the wireless earphone to obtain the comparison result;
    或者,or,
    将所述第一运动数据发送给第三方设备;以及接收所述第三方设备发送的所述比对结果。Sending the first motion data to a third-party device; and receiving the comparison result sent by the third-party device.
  4. 如权利要求3所述的姿态检测方法,其中,在接收所述第三方设备发送的所述标准运动曲线之前,所述方法进一步包括:The posture detection method according to claim 3, wherein, before receiving the standard motion curve sent by the third-party device, the method further comprises:
    采集用户头部的第二运动数据,所述第二运动数据包括所述无线耳机的加速度值;Collecting second motion data of the user's head, where the second motion data includes the acceleration value of the wireless earphone;
    在预设时间内所述加速度值小于等于预设加速度阈值时,将所述第二运动数据发送给所述第三方设备,以供所述第三方设备根据第二运动数据生成所述标准运动曲线。When the acceleration value is less than or equal to a preset acceleration threshold within a preset time, the second motion data is sent to the third-party device, so that the third-party device can generate the standard motion curve according to the second motion data .
  5. 如权利要求1所述的姿态检测方法,其中,所述获取所述运动曲线与标准运动曲线的比对结果包括:The posture detection method according to claim 1, wherein said obtaining the comparison result of said motion curve and standard motion curve comprises:
    获取所述运动曲线的第一频次和第一角度和所述标准运动曲线的第二频次和第二角度;Obtaining the first frequency and first angle of the motion curve and the second frequency and second angle of the standard motion curve;
    在所述第一频次小于所述第二频次且所述第一角度小于所述第二角度时,生成用户头部处于非正常姿态的比对结果;When the first frequency is less than the second frequency and the first angle is less than the second angle, generating a comparison result that the user's head is in an abnormal posture;
    和/或,and / or,
    在所述第一频次大于所述第二频次且所述第一角度大于所述第二角度时,生成用户头部处于非正常姿态的比对结果。When the first frequency is greater than the second frequency and the first angle is greater than the second angle, a comparison result that the user's head is in an abnormal posture is generated.
  6. 如权利要求1所述的姿态检测方法,其中,当所述第一运动数据包括无线耳机的加速度值时;所述方法进一步包括:The posture detection method according to claim 1, wherein, when the first motion data includes the acceleration value of the wireless earphone; the method further comprises:
    在预设时间内所述加速度值大于预设加速度阈值且所述加速度值呈递增趋势时,生成用户头部处于非正常姿态的异常结果,并根据所述异常结果向用户发送报警提示;When the acceleration value is greater than the preset acceleration threshold within the preset time and the acceleration value shows an increasing trend, an abnormal result that the user's head is in an abnormal posture is generated, and an alarm prompt is sent to the user according to the abnormal result;
    在预设时间内所述加速度值小于预设加速度阈值时,将所述运动曲线与所述标准运动曲线作比较以得到所述比对结果。When the acceleration value is less than a preset acceleration threshold within a preset time, the motion curve is compared with the standard motion curve to obtain the comparison result.
  7. 一种姿态检测装置,应用于无线耳机,包括:An attitude detection device, applied to a wireless earphone, comprising:
    姿态获取单元,用于采集用户头部的第一运动数据;a gesture acquiring unit, configured to acquire the first motion data of the user's head;
    姿态判断单元,用于根据采集到的所述第一运动数据生成所述用户头部的运动曲线,以及获取所述运动曲线与标准运动曲线的比对结果;A posture judging unit, configured to generate a motion curve of the user's head according to the collected first motion data, and obtain a comparison result between the motion curve and a standard motion curve;
    姿态提醒单元,用于根据所述比对结果向用户发送报警提示。A posture reminder unit, configured to send an alarm prompt to the user according to the comparison result.
  8. 如权利要求7所述的姿态检测装置,其中,进一步包括:佩戴检测单元;The posture detection device according to claim 7, further comprising: a wearing detection unit;
    所述姿态获取单元还用于采集所述无线耳机的加速度值和/或采集所述无线耳机与用户 头部之间的距离值;The attitude acquisition unit is also used to acquire the acceleration value of the wireless earphone and/or acquire the distance value between the wireless earphone and the user's head;
    所述佩戴检测单元,用于在预设时间内所述加速度值有变化时,确定所述无线耳机处于佩戴状态;The wearing detection unit is configured to determine that the wireless earphone is in the wearing state when the acceleration value changes within a preset time;
    或者,or,
    所述佩戴检测单元,用于在预设时间内所述距离值小于等于预设距离阈值时,确定所述无线耳机处于佩戴状态;The wearing detection unit is configured to determine that the wireless earphone is in a wearing state when the distance value is less than or equal to a preset distance threshold within a preset time;
    或者,or,
    所述佩戴检测单元,用于在预设时间内所述加速度值有变化且所述距离值小于等于预设距离阈值时,确定所述无线耳机处于佩戴状态。The wearing detection unit is configured to determine that the wireless earphone is in a wearing state when the acceleration value changes within a preset time and the distance value is less than or equal to a preset distance threshold.
  9. 一种无线耳机,包括:处理器、存储器及通信总线;A wireless earphone, comprising: a processor, a memory and a communication bus;
    所述通信总线用于实现处理器和存储器之间的连接通信;The communication bus is used to realize connection and communication between the processor and the memory;
    所述处理器用于执行存储器中存储的一个或者多个计算机程序,以实现如权利要求1至6中任一项所述的姿态检测方法的步骤。The processor is used to execute one or more computer programs stored in the memory, so as to realize the steps of the posture detection method according to any one of claims 1-6.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个计算机程序,所述一个或者多个计算机程序可被一个或者多个处理器执行,以实现如权利要求1至6中任一项所述的姿态检测方法的步骤。A computer-readable storage medium, the computer-readable storage medium stores one or more computer programs, and the one or more computer programs can be executed by one or more processors to implement claims 1 to 6 The step of the attitude detection method described in any one.
PCT/CN2022/087055 2021-05-27 2022-04-15 Attitude detection method and apparatus, wireless earphone, and storage medium WO2022247515A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110584065.5A CN115412793A (en) 2021-05-27 2021-05-27 Posture detection method and device, wireless earphone and storage medium
CN202110584065.5 2021-05-27

Publications (1)

Publication Number Publication Date
WO2022247515A1 true WO2022247515A1 (en) 2022-12-01

Family

ID=84156617

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/087055 WO2022247515A1 (en) 2021-05-27 2022-04-15 Attitude detection method and apparatus, wireless earphone, and storage medium

Country Status (2)

Country Link
CN (1) CN115412793A (en)
WO (1) WO2022247515A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115988134A (en) * 2022-12-26 2023-04-18 北京奇艺世纪科技有限公司 User state monitoring method, device, equipment and medium based on mobile equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030002705A1 (en) * 1999-05-10 2003-01-02 Boesen Peter V. Earpiece with an inertial sensor
CN104424751A (en) * 2013-09-04 2015-03-18 财团法人工业技术研究院 Driving state detection system, driving state detection method and electronic device
US20160052391A1 (en) * 2014-08-25 2016-02-25 Verizon Patent And Licensing Inc. Drowsy driver prevention systems and methods
CN105404388A (en) * 2014-09-05 2016-03-16 福特全球技术公司 Head-mounted Display Head Pose And Activity Estimation
CN107580268A (en) * 2017-08-04 2018-01-12 歌尔科技有限公司 A kind of head pose detection method, device and earphone
CN111372157A (en) * 2019-12-31 2020-07-03 歌尔科技有限公司 Wireless earphone, wearing detection method thereof and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030002705A1 (en) * 1999-05-10 2003-01-02 Boesen Peter V. Earpiece with an inertial sensor
CN104424751A (en) * 2013-09-04 2015-03-18 财团法人工业技术研究院 Driving state detection system, driving state detection method and electronic device
US20160052391A1 (en) * 2014-08-25 2016-02-25 Verizon Patent And Licensing Inc. Drowsy driver prevention systems and methods
CN105404388A (en) * 2014-09-05 2016-03-16 福特全球技术公司 Head-mounted Display Head Pose And Activity Estimation
CN107580268A (en) * 2017-08-04 2018-01-12 歌尔科技有限公司 A kind of head pose detection method, device and earphone
CN111372157A (en) * 2019-12-31 2020-07-03 歌尔科技有限公司 Wireless earphone, wearing detection method thereof and storage medium

Also Published As

Publication number Publication date
CN115412793A (en) 2022-11-29

Similar Documents

Publication Publication Date Title
US10841682B2 (en) Communication network of in-ear utility devices having sensors
KR102192361B1 (en) Method and apparatus for user interface by sensing head movement
US11395076B2 (en) Health monitoring with ear-wearable devices and accessory devices
WO2017113768A1 (en) Control method and control system of earphone, and earphone
US9838771B1 (en) In-ear utility device having a humidity sensor
US20210290102A1 (en) Alertness determination for non-alert detection using ear-worn electronic devices
US10045130B2 (en) In-ear utility device having voice recognition
KR20150037251A (en) Wearable computing device and user interface method
TW201510948A (en) Method and system for detecting conditions of drivers, and electronic apparatus thereof
US11412327B2 (en) Systems and methods for controlling electronic devices
WO2022247515A1 (en) Attitude detection method and apparatus, wireless earphone, and storage medium
KR102386110B1 (en) Portable sound equipment
US10681451B1 (en) On-body detection of wearable devices
WO2021208505A1 (en) Intelligent glasses, method for monitoring human body postures, medium, terminal and system
WO2014126304A1 (en) Vsdt rearview mirror having sleepiness prevention function
JPWO2017175432A1 (en) INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING METHOD, AND PROGRAM
WO2018141409A1 (en) Initiating a control operation in response to a head gesture
US20180279086A1 (en) Device control
CN110825235B (en) Earphone sleep monitoring method, device and system
CN111601209A (en) Control method, control device, wireless headset and storage medium
US11647925B2 (en) Alertness mode initiation for non-alert detection using ear-worn electronic devices
CN111084624A (en) Body posture detection method and device and necklace
US11722813B2 (en) Situational awareness, communication, and safety for hearing protection devices
JP2018136776A (en) Information processing method, information processing device and program
US11483658B1 (en) In-ear detection of wearable devices

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22810248

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE