Head movement detection method, smart headset and computer readable storage medium

By integrating accelerometers and gyroscopes in smart headphones, head movement detection is realized, which solves the problem of limited functions of existing headphones, provides a new way of human-computer interaction, and improves user experience.

CN114157950BActive Publication Date: 2024-08-30GEER TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111427725.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-26
Publication Date
2024-08-30
Estimated Expiration
2041-11-26

AI Technical Summary

Technical Problem

Existing headsets have limited human-computer interaction functions. Especially when manual operation is inconvenient or voice control is ineffective, richer human-computer interaction cannot be achieved.

Method used

By integrating accelerometers and gyroscopes in smart headphones, the head movement detection method is used to dynamically read position data, detect head movements and perform difference calculations, analyze head movements, and realize the collection and analysis of user head movements. The order is given.

Benefits of technology

It provides a new way of human-computer interaction, improves the user experience, and allows users to issue instructions on smart headsets or related devices through head movements to meet more interaction needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114157950B
    Figure CN114157950B
Patent Text Reader

Abstract

The present invention discloses a head movement detection method, a smart headset and a computer-readable storage medium, the method comprising: calibrating the smart headset with a preset accuracy and confirming that the user has worn the smart headset; dynamically reading and recording the first position data of the smart headset, and detecting whether there is a preset action trigger interruption based on the first position data recorded each time; when the preset action trigger interruption is detected, reading and recording the second position data of the smart headset; performing difference calculation based on the first position data and the second position data of the same time sequence to obtain displacement data; performing data analysis on a plurality of the displacement data recorded within a preset time length and the first position data and the second position data of the corresponding time sequence, and obtaining the head movement of the user within the preset time length. By implementing the present invention, the collection of the user's head movement is realized, thereby providing a new human-computer interaction method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of earphone technology, and in particular to a head movement detection method, a smart earphone and a computer-readable storage medium. Background Art

[0002] At present, wireless headphones have occupied a large share in the smart wearable device market with their stylish appearance and high-quality audio processing. However, the human-computer interaction of most headphones is currently limited to functions such as AI voice recognition and touch function recognition.

[0003] However, in many scenarios, users will want more human-computer interaction functions. For example, when it is inconvenient to free their hands for operation or when voice control is ineffective, the need to achieve human-computer interaction through headphones becomes more urgent. Summary of the invention

[0004] The main purpose of the present invention is to provide a head movement detection method, a smart headset and a computer-readable storage medium, aiming to solve the technical problem of how to capture the user's head movements and thus achieve human-computer interaction.

[0005] To achieve the above object, the present invention provides a head movement detection method, which comprises the following steps:

[0006] Calibrate the smart headset with a preset accuracy, and confirm that the current interaction object of the smart headset is wearing the smart headset;

[0007] Dynamically read and record the first position data of the smart headset, and detect whether there is a preset action triggering interrupt based on the first position data recorded each time;

[0008] When the preset action triggers an interruption, reading and recording the second position data of the smart headset;

[0009] Performing difference calculation based on the first position data and the second position data of the same time sequence to obtain displacement data;

[0010] Data analysis is performed on the multiple displacement data recorded within a preset time period and the first position data and the second position data of the corresponding time series to obtain the head movement action of the current interactive object of the smart headset within the preset time period.

[0011] Optionally, the position data of the smart headset includes a value of an accelerometer and a value of a gyroscope, and the step of reading the position data of the smart headset includes:

[0012] Read the values ​​of the accelerometer and the gyroscope in the smart headset;

[0013] The step of reading the value of the accelerometer and the value of the gyroscope in the smart headset includes:

[0014] Substitute the values ​​of the accelerometer and the gyroscope into a preset rotation algorithm to obtain the head rotation angle of the current interaction object of the smart headset.

[0015] Optionally, the step of performing data analysis on the plurality of displacement data recorded within a preset time period and the first position data and the second position data of the corresponding time series to obtain the head movement action of the current interaction object of the smart headset within the preset time period includes:

[0016] Perform trajectory recognition on the multiple displacement data and the multiple head rotation angles recorded within a preset time length, obtain a trajectory recognition result, and use the trajectory recognition result as the head movement action of the current interactive object of the smart headset within the preset time length.

[0017] Optionally, the smart headset includes a preset chip, the preset chip includes an accelerometer and a gyroscope, and the step of calibrating the smart headset to a preset accuracy includes:

[0018] Initializing the preset parameters in the preset chip;

[0019] The accelerometer and the gyroscope are calibrated with a preset accuracy according to the preset parameters.

[0020] Optionally, the step of calibrating the accelerometer to a preset accuracy includes:

[0021] Initializing the accelerometer and reading corresponding X-axis position data and Y-axis position data according to the preset parameters;

[0022] Calculate the mean value and standard deviation according to the X-axis position data and the Y-axis position data respectively;

[0023] Substitute the mean value and standard deviation into a preset matrix formula to calculate a calibration value.

[0024] Optionally, the step of calibrating the gyroscope to a preset accuracy includes:

[0025] Initializing the gyroscope, and reading corresponding X-axis rotation data and Y-axis rotation data according to the preset parameters;

[0026] Calculate the mean value and standard deviation according to the X-axis rotation data and the Y-axis rotation data respectively;

[0027] Substitute the mean value and standard deviation into a preset matrix formula to calculate a calibration value.

[0028] Optionally, after the step of calibrating the accelerometer and the gyroscope with a preset accuracy according to the preset parameters, the method further comprises:

[0029] After the preset accuracy calibration of the accelerometer and the gyroscope is completed, the calibration value is stored in a preset storage space.

[0030] Optionally, after the step of detecting whether there is a preset action triggering an interrupt, the method further includes:

[0031] When the preset action triggering interrupt is not detected, the step of dynamically reading and recording the first position data of the smart headset is performed.

[0032] In addition, to achieve the above-mentioned purpose, the present invention also provides a smart headset, which includes: a memory, a processor, and a head movement detection program stored in the memory and executable on the processor, and the head movement detection program, when executed by the processor, implements the steps of the head movement detection method as described above.

[0033] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a head movement detection program is stored, and when the head movement detection program is executed by a processor, the steps of the head movement detection method as described above are implemented.

[0034] The present invention proposes a head movement detection method, a smart headset and a computer-readable storage medium. In the head movement detection method, the smart headset is first calibrated with a preset accuracy, then it is confirmed that the current interactive object of the smart headset has worn the smart headset, and then the first position data of the smart headset is dynamically read and recorded, and whether there is a preset action triggering interruption based on the first position data recorded each time is detected. When the preset action triggering interruption is detected, the second position data of the smart headset is read and recorded, and the difference calculation is performed according to the first position data and the second position data of the same time sequence to obtain displacement data. By performing data analysis on multiple displacement data recorded within a preset time length and the first position data and the second position data of the corresponding time sequence, the head movement action of the current interactive object of the smart headset within the preset time length is obtained, thereby realizing the collection of the user's head movement, thereby providing a new human-computer interaction mode, and can issue instructions to the smart headset or other related devices according to the user's head movement, thereby improving the user's usage experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention;

[0036] Figure 2It is a schematic diagram of the flow chart of the first embodiment of the head movement detection method of the present invention;

[0037] Figure 3 It is a schematic diagram of the rotation angle detected by the gyroscope in the head movement detection method of the present invention;

[0038] Figure 4 4 is a flow chart of the second embodiment of the head movement detection method of the present invention.

[0039] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0040] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0041] The main solution of the embodiment of the present invention is: a head movement detection method, the head movement detection method comprising the following steps:

[0042] Calibrate the smart headset with a preset accuracy, and confirm that the current interaction object of the smart headset is wearing the smart headset;

[0043] Dynamically read and record the first position data of the smart headset, and detect whether there is a preset action triggering interrupt based on the first position data recorded each time;

[0044] When the preset action triggers an interruption, reading and recording the second position data of the smart headset;

[0045] Performing difference calculation based on the first position data and the second position data of the same time sequence to obtain displacement data;

[0046] Data analysis is performed on the multiple displacement data recorded within a preset time period and the first position data and the second position data of the corresponding time series to obtain the head movement action of the current interactive object of the smart headset within the preset time period.

[0047] Since the human-computer interaction of most headphones is currently limited to AI voice recognition, touch function recognition and other functions, but in many scenarios, users will hope to have more human-computer interaction functions. For example, when it is inconvenient to free up hands for operation or when voice control is ineffective, the need to achieve human-computer interaction through headphones becomes more urgent.

[0048] The present invention provides a head movement detection method. By implementing the head movement detection method, the head movement actions of the current interactive object of the smart headset within a preset time period can be obtained, thereby realizing the collection of the user's head movement, and further providing a new human-computer interaction mode. Instructions can be issued to the smart headset or other related devices according to the user's head movement, thereby improving the user experience.

[0049] like Figure 1 As shown, Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention.

[0050] The terminal in the embodiment of the present invention may be a smart headset, or may be a portable terminal device worn on the head, such as a wireless headset, a Bluetooth headset, or a TWS headset.

[0051] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include interactive buttons, and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0052] Optionally, the terminal may also include RF (Radio Frequency) circuits, sensors, audio circuits, WiFi modules, and the like. Among them, sensors include light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal may also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be repeated here.

[0053] Those skilled in the art will understand that Figure 1The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0054] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a head movement detection program.

[0055] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the backend server and perform data communication with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and perform data communication with the client; and the processor 1001 can be used to call the head movement detection program stored in the memory 1005 and perform the following operations:

[0056] Calibrate the smart headset with a preset accuracy, and confirm that the current interaction object of the smart headset is wearing the smart headset;

[0057] Dynamically read and record the first position data of the smart headset, and detect whether there is a preset action triggering interrupt based on the first position data recorded each time;

[0058] When the preset action triggers an interruption, reading and recording the second position data of the smart headset;

[0059] Performing difference calculation based on the first position data and the second position data of the same time sequence to obtain displacement data;

[0060] Data analysis is performed on the multiple displacement data recorded within a preset time period and the first position data and the second position data of the corresponding time series to obtain the head movement action of the current interactive object of the smart headset within the preset time period.

[0061] Further, the processor 1001 may call the head movement detection program stored in the memory 1005, and further perform the following operations:

[0062] The position data of the smart headset includes the value of the accelerometer and the value of the gyroscope, and the step of reading the position data of the smart headset includes:

[0063] Read the values ​​of the accelerometer and the gyroscope in the smart headset;

[0064] Further, the processor 1001 may call the head movement detection program stored in the memory 1005, and further perform the following operations:

[0065] Substitute the values ​​of the accelerometer and the gyroscope into a preset rotation algorithm to obtain the head rotation angle of the current interaction object of the smart headset.

[0066] Further, the processor 1001 may call the head movement detection program stored in the memory 1005, and further perform the following operations:

[0067] The step of performing data analysis on the plurality of displacement data recorded within a preset time period and the first position data and the second position data of the corresponding time series to obtain the head movement action of the current interactive object of the smart headset within the preset time period includes:

[0068] Perform trajectory recognition on the multiple displacement data and the multiple head rotation angles recorded within a preset time length, obtain a trajectory recognition result, and use the trajectory recognition result as the head movement action of the current interactive object of the smart headset within the preset time length.

[0069] Further, the processor 1001 may call the head movement detection program stored in the memory 1005, and further perform the following operations:

[0070] The smart headset includes a preset chip, the preset chip includes an accelerometer and a gyroscope, and the step of calibrating the smart headset with a preset accuracy includes:

[0071] Initializing the preset parameters in the preset chip;

[0072] The accelerometer and the gyroscope are calibrated with a preset accuracy according to the preset parameters.

[0073] Further, the processor 1001 may call the head movement detection program stored in the memory 1005, and further perform the following operations:

[0074] Initializing the accelerometer and reading corresponding X-axis position data and Y-axis position data according to the preset parameters;

[0075] Calculate the mean value and standard deviation according to the X-axis position data and the Y-axis position data respectively;

[0076] Substitute the mean value and standard deviation into a preset matrix formula to calculate a calibration value.

[0077] Further, the processor 1001 may call the head movement detection program stored in the memory 1005, and further perform the following operations:

[0078] Initializing the gyroscope, and reading corresponding X-axis rotation data and Y-axis rotation data according to the preset parameters;

[0079] Calculate the mean value and standard deviation according to the X-axis rotation data and the Y-axis rotation data respectively;

[0080] Substitute the mean value and standard deviation into a preset matrix formula to calculate a calibration value.

[0081] Further, the processor 1001 may call the head movement detection program stored in the memory 1005, and further perform the following operations:

[0082] After the preset accuracy calibration of the accelerometer and the gyroscope is completed, the calibration value is stored in a preset storage space.

[0083] Further, the processor 1001 may call the head movement detection program stored in the memory 1005, and further perform the following operations:

[0084] When the preset action triggering interrupt is not detected, the step of dynamically reading and recording the first position data of the smart headset is performed.

[0085] Reference Figure 2 A first embodiment of the present invention provides a head movement detection method, the head movement detection method comprising:

[0086] Step S10, calibrating the smart headset to a preset accuracy, and confirming that the current interaction object of the smart headset is wearing the smart headset;

[0087] The executor of this embodiment is a smart headset, which may be a smart headset, such as a wireless headset, a Bluetooth headset, a TWS (True Wireless Stereo) headset, etc. For the convenience of explanation, the smart headset may be replaced by a headset below, but it does not represent a limitation on this embodiment.

[0088] It should be noted that the current interaction object of the smart headset is the user wearing the headset.

[0089] It is understandable that in order to ensure accurate detection of the user's head movement, when the headset enters the head movement detection state, the headset needs to be accurately calibrated first, and it is necessary to confirm that the headset is being worn by the user.

[0090] Step S20, dynamically reading and recording the first position data of the smart headset, and detecting whether there is a preset action triggering interrupt based on the first position data recorded each time;

[0091] It should be noted that the first position data of the smart headset can be used to represent the current position data of the headset, and can also be used to represent the current head position data of the user. The step of reading and recording the first position data is performed dynamically, that is, the position data will be read and recorded continuously after the headset enters the head movement detection state.

[0092] Step S30, when the preset action triggers an interruption, reading and recording the second position data of the smart headset;

[0093] It should be noted that the preset action trigger interrupt is used to determine whether the user has made a large head movement, and its trigger condition can be set according to needs, for example, it can be set to a sensitivity adjustment mode. When the headset detects that the preset action triggers an interrupt, it means that the user's head movement has reached a preset detection threshold. At this time, it is necessary to read and record the second position data, and the second position data is similar to the first position data in meaning.

[0094] Step S40, performing difference calculation based on the first position data and the second position data of the same time sequence to obtain displacement data;

[0095] It can be understood that since the collection of the first position data is dynamic, and the second position data is only acquired when the user's head movement reaches a preset detection threshold, in order to accurately reflect the change in the user's head position, it is necessary to ensure that the timing of the first position data and the second position data corresponds. Therefore, the displacement difference obtained by performing the difference calculation based on the first position data and the second position data of the same timing is the data that can accurately reflect the user's head displacement distance.

[0096] Step S50, performing data analysis on the multiple displacement data recorded within a preset time period and the first position data and the second position data of the corresponding time series to obtain the head movement action of the current interactive object of the smart headset within the preset time period.

[0097] It should be noted that the preset duration can be set according to actual needs, and can be 5 seconds, 10 seconds or 15 seconds, etc., and this embodiment does not limit this.

[0098] It is understandable that the user's accurate intention cannot be known based on only a small amount of data. It is necessary to perform data analysis on the first position data and the second position data of multiple corresponding time series within a certain period of time in order to know the user's head movement within a certain period of time.

[0099] In this embodiment, the position data of the smart headset includes the value of the accelerometer and the value of the gyroscope, and the following steps are included after step S30:

[0100] Substitute the values ​​of the accelerometer and the gyroscope into a preset rotation algorithm to obtain the head rotation angle of the current interaction object of the smart headset.

[0101] It should be noted that the position data of the smart headset is data values ​​collected by an accelerometer and a gyroscope in an IMU (Inertial Measurement Unit) chip preset inside the smart headset.

[0102] Regarding the accelerometer, when its sensing direction is consistent with the direction of gravity acceleration, the device is considered to be in a horizontal state. At this time, the measured acceleration is the gravity acceleration g. When its sensing direction deviates by an angle of θ, the measured acceleration value is F(θ)=g*cosθ.

[0103] Regarding the gyroscope, when the user wears headphones and turns his head, his head turning action can be simulated as follows Figure 3 The coordinate system rotated around the Z axis is shown, where the solid coordinate system X, Y, Z is the initial coordinate system. After turning the head, the new dotted coordinate system x, y, z is obtained, and the rotation angle is θ. According to the relevant knowledge of linear algebra, it can be known that a 3*3 matrix can express the rotation of an object. For example, the rotation around the Z axis can be expressed as follows (that is, the preset rotation algorithm):

[0104] Right now

[0105] Therefore, we only need to read the values ​​of the accelerometer and gyroscope at the initial position to infer the value of M and then get the head turning angle.

[0106] In this embodiment, step S50 includes:

[0107] Perform trajectory recognition on the multiple displacement data and the multiple head rotation angles recorded within a preset time length, obtain a trajectory recognition result, and use the trajectory recognition result as the head movement action of the current interactive object of the smart headset within the preset time length.

[0108] It is understandable that if you want to obtain the user's head trajectory, you need to read the rotation angle of the headset and the displacement deviation from the original position according to a certain time sequence, read the device's accelerometer and gyroscope data multiple times within a certain period of time, and connect the data points of each time sequence into a line, then you can get the user's head movement in this time period.

[0109] In this embodiment, a head movement detection method is provided. In the head movement detection method, a preset accuracy calibration is first performed on a smart headset, and then it is confirmed that the current interactive object of the smart headset has worn the smart headset. Then, the first position data of the smart headset is dynamically read and recorded, and whether a preset action triggers an interruption based on the first position data recorded each time is detected. When the preset action triggers an interruption, the second position data of the smart headset is read and recorded, and the difference calculation is performed according to the first position data and the second position data of the same time sequence to obtain displacement data. By performing data analysis on multiple displacement data recorded within a preset time length and the first position data and the second position data of the corresponding time sequence, the head movement action of the current interactive object of the smart headset within the preset time length is obtained. In this embodiment, an accelerometer and a gyroscope are used to quickly read the device position at multiple points to simulate the user's head trajectory. During use, the user can set a UI (User Interface) and use head movements to operate the device, or simulate head movements to achieve the purpose of human-computer interaction, that is, instructions can be issued to the smart headset or other related devices according to the user's head movements, which significantly improves the user's experience.

[0110] Further, see Figure 4 , a second embodiment of the head movement detection method of the present invention is proposed, based on the above Figure 2 In the embodiment shown, the smart headset includes a preset chip, and the preset chip includes an accelerometer and a gyroscope. The step of calibrating the smart headset with a preset accuracy in step S10 includes:

[0111] Step S11, initializing the preset parameters in the preset chip;

[0112] Step S12: calibrating the accelerometer and gyroscope to a preset accuracy according to the preset parameters.

[0113] In this embodiment, step S12 includes:

[0114] Initialize the accelerometer, read the corresponding X-axis position data and Y-axis position data according to the preset parameters; calculate the average value and standard deviation according to the X-axis position data and the Y-axis position data respectively; substitute the average value and standard deviation into the preset matrix formula to calculate the calibration value.

[0115] The gyroscope is initialized, and corresponding X-axis rotation data and Y-axis rotation data are read according to the preset parameters; an average value and a standard deviation are calculated according to the X-axis rotation data and the Y-axis rotation data respectively; and the average value and the standard deviation are substituted into a preset matrix formula to calculate a calibration value.

[0116] In this embodiment, step S12 includes:

[0117] Step S13, after completing the calibration of the accelerometer and the gyroscope to a preset accuracy, storing the calibration value in a preset storage space.

[0118] It should be noted that the preset chip is the IMU chip preset inside the smart headset mentioned in the first embodiment above. The preset parameters can be parameters such as product reading rate and accuracy. The initialization rate value and accuracy value can be determined according to actual needs.

[0119] In this embodiment, the accuracy calibration of the accelerometer and the gyroscope will refer to the accuracy value completed by the above-mentioned initialization setting. Depending on the set accuracy, the amount of data read is also different. The data read in this embodiment is 1s data. Finally, the calibration values ​​of the two measuring devices are calculated according to the preset matrix formula, and finally the calibration values ​​are written into the preset storage space to remove errors after each detection.

[0120] This embodiment can further ensure the accuracy of detection and reduce errors caused by assembly and environment by calibrating the accelerometer and gyroscope in the preset chip. After calibration, the calibration value is stored in the storage space so that the error can be automatically removed after each detection. This method collects data through the IMU chip preset in the headset, and then analyzes the data of ACC (accelerometer), Gyro (gyroscope), etc. to identify the current movement trajectory of the user's head, realize motion analysis, and thus enhance the user's sense of participation and experience.

[0121] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a head movement detection program is stored. When the head movement detection program is executed by a processor, the following operations are implemented:

[0122] Calibrate the smart headset with a preset accuracy, and confirm that the current interaction object of the smart headset is wearing the smart headset;

[0123] Dynamically read and record the first position data of the smart headset, and detect whether there is a preset action triggering interrupt based on the first position data recorded each time;

[0124] When the preset action triggers an interruption, reading and recording the second position data of the smart headset;

[0125] Performing difference calculation based on the first position data and the second position data of the same time sequence to obtain displacement data;

[0126] Data analysis is performed on the multiple displacement data recorded within a preset time period and the first position data and the second position data of the corresponding time series to obtain the head movement action of the current interactive object of the smart headset within the preset time period.

[0127] Furthermore, when the head movement detection program is executed by the processor, the following operations are also implemented:

[0128] The position data of the smart headset includes the value of the accelerometer and the value of the gyroscope, and the step of reading the position data of the smart headset includes:

[0129] Read the values ​​of the accelerometer and the gyroscope in the smart headset;

[0130] Furthermore, when the head movement detection program is executed by the processor, the following operations are also implemented:

[0131] Substitute the values ​​of the accelerometer and the gyroscope into a preset rotation algorithm to obtain the head rotation angle of the current interaction object of the smart headset.

[0132] Furthermore, when the head movement detection program is executed by the processor, the following operations are also implemented:

[0133] The step of performing data analysis on the plurality of displacement data recorded within a preset time period and the first position data and the second position data of the corresponding time series to obtain the head movement action of the current interactive object of the smart headset within the preset time period includes:

[0134] Perform trajectory recognition on the multiple displacement data and the multiple head rotation angles recorded within a preset time length, obtain a trajectory recognition result, and use the trajectory recognition result as the head movement action of the current interactive object of the smart headset within the preset time length.

[0135] Furthermore, when the head movement detection program is executed by the processor, the following operations are also implemented:

[0136] The smart headset includes a preset chip, the preset chip includes an accelerometer and a gyroscope, and the step of calibrating the smart headset with a preset accuracy includes:

[0137] Initializing the preset parameters in the preset chip;

[0138] The accelerometer and the gyroscope are calibrated with a preset accuracy according to the preset parameters.

[0139] Furthermore, when the head movement detection program is executed by the processor, the following operations are also implemented:

[0140] Initializing the accelerometer and reading corresponding X-axis position data and Y-axis position data according to the preset parameters;

[0141] Calculate the mean value and standard deviation according to the X-axis position data and the Y-axis position data respectively;

[0142] Substitute the mean value and standard deviation into a preset matrix formula to calculate a calibration value.

[0143] Furthermore, when the head movement detection program is executed by the processor, the following operations are also implemented:

[0144] Initializing the gyroscope, and reading corresponding X-axis rotation data and Y-axis rotation data according to the preset parameters;

[0145] Calculate the mean value and standard deviation according to the X-axis rotation data and the Y-axis rotation data respectively;

[0146] Substitute the mean value and standard deviation into a preset matrix formula to calculate a calibration value.

[0147] Furthermore, when the head movement detection program is executed by the processor, the following operations are also implemented:

[0148] After the preset accuracy calibration of the accelerometer and the gyroscope is completed, the calibration value is stored in a preset storage space.

[0149] Furthermore, when the head movement detection program is executed by the processor, the following operations are also implemented:

[0150] When the preset action triggering interrupt is not detected, the step of dynamically reading and recording the first position data of the smart headset is performed.

[0151] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0152] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0153] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0154] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A head motion detection method, It is characterized in that The head movement detection method comprises the following steps: Calibrate the smart headset with a preset accuracy, and confirm that the current interaction object of the smart headset is wearing the smart headset; Dynamically read and record the first position data of the smart headset, and detect whether there is a preset action trigger interrupt based on the first position data recorded each time, wherein the preset action trigger interrupt is used to determine whether the user has a large head movement; When the preset action triggers an interruption, reading and recording the second position data of the smart headset; Performing difference calculation based on the first position data and the second position data of the same time series to obtain displacement data; Substituting the first position data and the second position data into a preset rotation algorithm to obtain a head rotation angle of a current interaction object of the smart headset; Perform trajectory recognition on the multiple displacement data and the multiple head rotation angles recorded within a preset time length, obtain a trajectory recognition result, and use the trajectory recognition result as the head movement action of the current interactive object of the smart headset within the preset time length.

2. The head movement detection method according to claim 1, It is characterized in that The position data of the smart headset includes the value of the accelerometer and the value of the gyroscope, and the step of reading the position data of the smart headset includes: Read the values ​​of the accelerometer and the gyroscope in the smart headset; The step of reading the value of the accelerometer and the value of the gyroscope in the smart headset includes: Substitute the values ​​of the accelerometer and the gyroscope into a preset rotation algorithm to obtain the head rotation angle of the current interaction object of the smart headset.

3. The head movement detection method according to claim 1, It is characterized in that The smart headset includes a preset chip, the preset chip includes an accelerometer and a gyroscope, and the step of calibrating the smart headset with a preset accuracy includes: Initializing the preset parameters in the preset chip; The accelerometer and the gyroscope are calibrated with a preset accuracy according to the preset parameters.

4. The head movement detection method according to claim 3, It is characterized in that The step of calibrating the accelerometer to a preset accuracy comprises: Initializing the accelerometer and reading corresponding X-axis position data and Y-axis position data according to the preset parameters; Calculate the mean value and standard deviation according to the X-axis position data and the Y-axis position data respectively; Substitute the mean value and standard deviation into a preset matrix formula to calculate a calibration value.

5. The head movement detection method as claimed in claim 3, It is characterized in that The step of calibrating the gyroscope with a preset accuracy comprises: Initializing the gyroscope, and reading corresponding X-axis rotation data and Y-axis rotation data according to the preset parameters; Calculate the mean value and standard deviation according to the X-axis rotation data and the Y-axis rotation data respectively; Substitute the mean value and standard deviation into a preset matrix formula to calculate a calibration value.

6. The head movement detection method according to claim 4 or 5, It is characterized in that After the step of calibrating the accelerometer and the gyroscope with a preset accuracy according to the preset parameters, the method further comprises: After the preset accuracy calibration of the accelerometer and the gyroscope is completed, the calibration value is stored in a preset storage space.

7. The head movement detection method according to claim 6, It is characterized in that After the step of detecting whether there is a preset action triggering an interrupt, the following step further comprises: When the preset action triggering interrupt is not detected, the step of dynamically reading and recording the first position data of the smart headset is performed.

8. A smart headset, It is characterized in that The smart headset includes: a memory, a processor, and a head movement detection program stored in the memory and executable on the processor. When the head movement detection program is executed by the processor, the steps of the head movement detection method as described in any one of claims 1 to 7 are implemented.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a head movement detection program, which, when executed by a processor, implements the steps of the head movement detection method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Wireless earphone capable of being controlled by head movement

    CN112911458A