WO2023184761A1 - Earphone wearing detection method and apparatus, earphone device, and storage medium - Google Patents

Earphone wearing detection method and apparatus, earphone device, and storage medium Download PDF

Info

Publication number
WO2023184761A1
WO2023184761A1 PCT/CN2022/102552 CN2022102552W WO2023184761A1 WO 2023184761 A1 WO2023184761 A1 WO 2023184761A1 CN 2022102552 W CN2022102552 W CN 2022102552W WO 2023184761 A1 WO2023184761 A1 WO 2023184761A1
Authority
WO
WIPO (PCT)
Prior art keywords
earphone
wearing
axial acceleration
wearing detection
axis
Prior art date
Application number
PCT/CN2022/102552
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 WO2023184761A1 publication Critical patent/WO2023184761A1/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements

Definitions

  • the present invention relates to the technical field of earphones, and in particular, to an earphone wearing detection method, device, earphone equipment and a computer-readable storage medium.
  • TWS Truste Wireless Stereo
  • the infrared detection solution uses an infrared transmitter and an infrared receiver to achieve wearing detection.
  • this detection solution requires optical window processing corresponding to the structural design of the TWS headset. This not only brings challenges to the waterproof design of the earphones, but also causes the infrared window to be polluted by oily earwax after the user wears the earphones for a period of time, resulting in a deterioration in light transmittance and seriously affecting the detection and recognition of the wearing posture of the earphones.
  • the capacitive sensing solution can effectively solve the above-mentioned disadvantages caused by the dirty window of the infrared solution, because the capacitor is very sensitive to temperature and humidity, when there are relatively large changes in temperature and humidity, it will also cause problems when detecting the wearing posture.
  • the existing earphone wearing detection has high requirements on the structural design of earphone products, and is easily affected by dirt or temperature changes during use, resulting in complex implementation of the overall solution and poor resistance to environmental interference. Difference.
  • the main purpose of the present invention is to provide an earphone wearing detection method, device, earphone equipment and a computer-readable storage medium, aiming to simplify the implementation of the wearing detection solution and improve the resistance to environmental interference during the wearing detection process of the earphones. This ensures stable performance of headphone wearing detection.
  • the present invention provides a method for wearing detection of earphones.
  • the method is applied to an earphone device.
  • the earphone device includes a first earphone and a second earphone.
  • the method includes:
  • the step of determining whether the headphone device is in a wearing posture according to the relative posture change includes:
  • the method also includes:
  • Usage data of the earphone device is obtained, and a relative posture change threshold range of the first earphone and the second earphone is determined based on the usage data.
  • the usage data includes: multiple relative posture change data of the first earphone and the second earphone;
  • the step of determining the relative posture change threshold range of the first earphone and the second earphone according to the usage data includes:
  • Calculation is performed based on the plurality of relative posture change data to determine a relative posture change threshold range of the first earphone and the second earphone.
  • the method further includes:
  • the removed target earphone among the first earphone and the second earphone is determined according to the axial acceleration change rate.
  • the step of detecting the respective axial acceleration data of the first earphone and the second earphone includes:
  • Axial acceleration data of the X-axis, Y-axis and Z-axis of each of the first earphone and the second earphone are detected, wherein the X-axis, Y-axis and Z-axis are perpendicular to each other.
  • the step of calculating the relative posture change of the first earphone and the second earphone based on the axial acceleration data includes:
  • the axial acceleration data of the first earphone and the axial acceleration data of the second earphone are subtracted to obtain the relationship between the first earphone and the second earphone on the X axis, the Y axis and The Z-axis corresponds to the relative attitude change in the orientation.
  • the present invention also provides an earphone wearing detection device.
  • the device is applied to an earphone device.
  • the earphone device includes a first earphone and a second earphone.
  • the device includes:
  • a detection module for detecting the respective axial acceleration data of the first earphone and the second earphone
  • a calculation module configured to calculate the relative posture change of the first earphone and the second earphone according to the axial acceleration data
  • Determining module configured to determine whether the headphone device is in a wearing posture according to the relative posture change.
  • Each functional module of the earphone wearing detection device of the present invention implements the steps of the earphone wearing detection method as described above when running.
  • the present invention also provides an earphone device.
  • the earphone device includes: a memory, a processor, and an earphone wearing detection program stored in the memory and executable on the processor. The earphone When the wearing detection program is executed by the processor, the steps of the earphone wearing detection method as described above are implemented.
  • the present invention also proposes a computer-readable storage medium.
  • the computer-readable storage medium stores an earphone wearing detection program.
  • the earphone wearing detection program is executed by the processor, the above-mentioned steps are implemented. The steps of the earphone wearing detection method described above.
  • the axial acceleration data of the first earphone and the second earphone of the earphones are detected; and then, the axial acceleration data of the first earphone is further calculated based on the axial acceleration data.
  • the relative posture changes and the relative posture changes of the second earphone are calculated; finally, it is determined according to the relative posture changes of the first earphone and the second earphone whether the headphone device is currently in a wearing posture for normal use by the user.
  • the present invention directly detects and determines whether the headphone device is in the user's normal wearing posture through the respective axial acceleration data of the first earphone and the second earphone, which can not only simplify the use of the earphone device.
  • the implementation of the wearing detection solution will not cause the entire detection process of the headset device to be affected by the dirt or temperature changes caused by the user's use of the outside of the earphones, thus greatly improving the environmental interference during the wearing detection process of the earphones.
  • the resistance ability ensures the stable performance of headphone wearing detection.
  • the present invention can be realized only based on the earphone device itself integrating a sensor capable of detecting acceleration data, thereby not causing stacking restrictions on earphone products and effectively saving the overall production and manufacturing of the earphone device. cost.
  • Figure 1 is a schematic flow chart of the first embodiment of the earphone wearing detection method of the present invention
  • Figure 2 is a schematic diagram of an application scenario involved in an embodiment of the earphone wearing detection method of the present invention
  • Figure 3 is a schematic application flow diagram of an embodiment of the earphone wearing detection method of the present invention.
  • Figure 4 is a functional module schematic diagram of a preferred embodiment of the earphone wearing detection device of the present invention.
  • Figure 1 is a schematic flow chart of a first embodiment of a headphone wearing detection method of the present invention.
  • the embodiment of the present invention provides an embodiment of a headphone wearing detection method. It should be noted that although the logical sequence is shown in the flow chart, in some cases, the shown sequence can be performed in a different sequence than here. or describe the steps.
  • the earphone wearing detection method of the embodiment of the present invention is applied to the earphone device.
  • the earphone device may specifically include a first earphone and a second earphone.
  • the first earphone and the second earphone may specifically be an earphone worn in the user's left ear and a pair of earphones worn on the earphone.
  • the functional modules in the earphone device involved in the earphone wearing detection method of the present invention may include: a microprocessor with a Bluetooth module, as well as a pressure sensor and a wearing detection module that are independently electrically connected to the microprocessor. , battery, power management unit, audio player SPK, microphone MIC, motor vibration module, indicator lights, buttons and screen.
  • the functional modules included in the headphone device may of course be different in different feasible implementations.
  • the headphone wearing detection method of the present invention does not target the internal features of the headphone device.
  • the specific types of functional modules included are limited.
  • the earphone wearing detection method provided by the present invention includes:
  • Step S10 detect the respective axial acceleration data of the first earphone and the second earphone
  • the earphone device detects axial acceleration data of the first earphone and/or the second earphone worn by the user through an internally configured acceleration sensor.
  • the earphone device detects acceleration data in three axial directions of X, Y and Z through axial acceleration sensors pre-configured inside the first earphone and the second earphone.
  • axial acceleration sensors pre-configured inside the first earphone and the second earphone.
  • a three-axis acceleration sensor is configured and installed inside the first earphone and the second earphone of the earphone device in advance, so that the first earphone and the second earphone of the earphone device When the earphones are worn and used by the user, the three-axis acceleration sensor detects the axial acceleration data of the first earphone and the second earphone in three axial directions of X, Y and Z respectively.
  • step S10 may specifically include:
  • Step S101 detect the axial acceleration data of the X-axis, Y-axis and Z-axis of the first earphone and the second earphone, wherein the X-axis, Y-axis and Z-axis are perpendicular to each other.
  • the three-axis acceleration sensors inside the first earphone and the second earphone each detect the X-axis and Y-axis.
  • the gravity acceleration in all directions is 0, while the Z-axis is 1 negative gravity acceleration. That is, the axial acceleration data detected by the first earphone (assumed to be the earphone worn on the user's left ear) through the three-axis acceleration sensor is L: (0, 0, -1G).
  • the axial acceleration data detected by the second earphone (assumed to be the earphone worn on the user's right ear) through the three-axis acceleration sensor is R: (0, 0, -1G).
  • the headphone device can also be integrated in the third part of the headphone device.
  • Six-axis or nine-axis acceleration sensors are installed inside the first earphone and the second earphone to detect the axial acceleration data of the first earphone and the second earphone respectively in the three axial directions of X, Y and Z.
  • the earphone The device can pre-define the consistency of the three axial directions of the first earphone and the second earphone in the X, Y and Z directions, that is, invert the acceleration data in the X-axis direction in the scene as shown in Figure 2, so that, If the user is lying on his side while wearing the first earphone and the second earphone (also assuming that the first earphone is worn on the user's left ear and the second earphone is worn on the user's right ear), the first earphone and the second earphone
  • the axial acceleration data detected by the internal three-axis acceleration sensor will be consistent, that is, specifically L (-1G, 0, -0), R (-1G, 0, -0).
  • Step S20 Calculate the relative posture change of the first earphone and the second earphone according to the axial acceleration data
  • the earphone device after the earphone device detects the axial acceleration data of the first earphone and the second earphone worn by the user, it further calculates the respective axial acceleration data of the first earphone and the second earphone based on the respective axial acceleration data. Relative attitude change.
  • the earphone device directly determines that the current user is wearing only the first earphone. Or a second headset.
  • step S20 may specifically include:
  • Step S201 Subtract the axial acceleration data of the first earphone and the axial acceleration data of the second earphone to obtain the coordinates between the first earphone and the second earphone on the X-axis, the The relative attitude change in the corresponding directions of the Y-axis and the Z-axis.
  • the headphone device in the process of calculating the relative attitude change amount of the earphone device based on the detected axial acceleration data of the first earphone and the second earphone, the headphone device directly adjusts the first earphone and the second earphone by X After the three axial directions of , Y and Z are consistently defined, the respective axial acceleration data of the first earphone and the second earphone detected by the earphone device are subtracted to obtain the respective axial acceleration data of the first earphone and the second earphone. Relative attitude changes in the three axial directions of X, Y and Z.
  • the earphone device can specifically calculate the relative posture change of itself relative to the other party by the first earphone and the second earphone, that is, when worn on the user's left ear
  • the first earphone uses the axial acceleration data detected by its own internal three-axis acceleration sensor - L: (0, 0, -1G), while the second earphone worn on the user's right ear uses its own internal three-axis acceleration sensor.
  • Step S30 Determine whether the headphone device is in a wearing posture according to the relative posture change.
  • the headphone device calculates the relative attitude changes of the first earphone and the second earphone based on the respective axial acceleration data of the first earphone and the second earphone, it further detects the changes based on the relative attitude changes. Determine whether the first earphone and the second earphone are currently in a wearing posture for normal use by the user.
  • the earphone wearing detection method of the present invention can determine the first earphone and the second earphone by detecting that the calculated relative attitude changes of the first earphone and the second earphone are within a certain limit range.
  • Each of the second earphones is in the normal wearing state of the user.
  • step S30 may specifically include:
  • Step S301 obtain the relative attitude change threshold range of the first earphone and the second earphone, and detect whether the relative attitude change amount exceeds the relative attitude change threshold range;
  • the relative posture change threshold range of the first earphone and the second earphone in the earphone device can be determined by pre-collecting sample data of the user wearing and using the earphone device. It should be understood that based on different design needs of practical applications, in different feasible implementations, the earphone device can of course use different specific sizes of relative posture change threshold ranges for detection.
  • the earphone wearing detection method of the present invention does not target this relative attitude change threshold range. The specific size of the posture change threshold range is limited.
  • the first earphone and the second earphone of the earphone device when detecting whether the first earphone and the second earphone of the earphone device are in the normal wearing posture of the user, they first obtain the first earphone and the second earphone that are pre-configured by the earphone device and stored locally or in the cloud. After that, the first earphone and the second earphone each begin to detect whether the relative attitude change calculated by themselves exceeds the pair of attitude change threshold ranges.
  • Step S302 if yes, determine that the headphone device is in the wearing posture
  • Step S303 if not, determine that the headphone device is not in the wearing posture.
  • any one of the first earphones and/or the second earphones of the earphone device detects that its calculated relative attitude change is smaller than the first earphone and the second earphone.
  • the relative posture of the second earphone changes within the threshold range, it is immediately determined that the entire earphone device is in the user's normal wearing posture at the current moment.
  • the relative posture change is greater than or equal to the relative posture change threshold range, it is immediately determined that the first earphone and/or the second earphone in the earphone device at the current moment are being taken off by the user. of.
  • the headphone wearing detection method of the present invention may also include:
  • Step S40 determine the respective axial acceleration change rates of the first earphone and the second earphone
  • the headphone device detects that the relative posture change of the first headphone and the second headphone exceeds the relative posture change threshold range, thereby determining that the first headphone and/or the second headphone of the headphone device is used by the user at the current moment. After taking them off, the first earphone and the second earphone calculate and determine their respective axial acceleration change rates.
  • Step S50 Determine the removed target earphone among the first earphone and the second earphone according to the axial acceleration change rate.
  • each of the first earphone and the second earphone of the earphone device calculates its own axial acceleration change rate, it further determines the first earphone itself at the current moment based on the specific magnitude of the axial acceleration change rate. Is it the target earphone that is taken off by the user, or is it the target earphone that is taken off by the user when the second earphone is used.
  • the first earphone and the second earphone detect that the relative attitude change of the first earphone and the second earphone exceeds the relative attitude change threshold range, thereby determining whether After the first earphone and/or the second earphone in the earphone device are taken off by the user at the current moment, any mature algorithm is further used to calculate their own axial acceleration change rate, and then their own axial acceleration change rate is detected respectively. Whether the specific size exceeds the preset change rate threshold, and specifically when detecting that the change rate of its own axial acceleration exceeds the change rate threshold, it immediately determines that it is the target earphone taken off by the user at the current moment.
  • the above-mentioned change rate threshold is the minimum axial acceleration change rate of the headset that is preset by the headset device and is used to determine that the headset is in the user's removal action. It should be understood that based on different design needs of practical applications, in different feasible embodiments, the headphone device can of course choose to use change rate thresholds of different specific sizes.
  • the headphone wearing detection method of the present invention is not specific to the change rate threshold. Specific size is limited.
  • the earphone device detects axial acceleration data of the first earphone and/or the second earphone worn by the user through an internally configured acceleration sensor. After detecting the respective axial acceleration data of the first earphone and the second earphone worn by the user, the earphone device further calculates the relative posture changes of the first earphone and the second earphone based on the respective axial acceleration data. After the headphone device calculates the relative attitude changes of the first earphone and the second earphone based on the axial acceleration data of the first earphone and the second earphone, it further determines the first earphone and the second earphone based on the relative attitude change detection. Whether the second earphone is currently in the user's normal wearing posture.
  • the present invention directly detects and determines whether the headphone device is in the user's normal wearing posture through the respective axial acceleration data of the first earphone and the second earphone, which can not only simplify the use of the earphone device.
  • the implementation of the wearing detection solution will not cause the entire detection process of the headset device to be affected by the dirt or temperature changes caused by the user's use of the outside of the earphones, thus greatly improving the environmental interference during the wearing detection process of the earphones.
  • the resistance ability ensures the stable performance of headphone wearing detection.
  • the present invention can be realized only based on the earphone device itself integrating a sensor capable of detecting acceleration data, thereby not causing stacking restrictions on earphone products and effectively saving the overall production and manufacturing of the earphone device. cost.
  • a second embodiment of the earphone wearing detection method of the present invention is proposed.
  • the earphone wearing detection method of the present invention may also include:
  • Step A Obtain the usage data of the headset device, and determine the relative posture change threshold range of the first headset and the second headset based on the usage data.
  • the headphone device obtains the usage data of the same type of headphone device when it is worn and used by the user, and then calculates and determines the number of the first headphone and the second headphone in the headphone device by parsing the usage data.
  • the relative posture change threshold range is used for each of the first earphone and the second earphone to determine whether the first earphone and the second earphone are currently in a wearing posture normally used by the user based on their own relative posture change detection.
  • the usage data of the first earphone and the second earphone in the headphone device can be collected through the internal axial acceleration sensor, and the usage data of the first earphone and the second earphone can be collected.
  • the usage data is associated and stored in the cloud or locally.
  • the headset device subsequently determines the relative posture change threshold range of the first headset and the second headset, it can directly obtain the usage data of the headset device itself from the local, or directly from the cloud.
  • the usage data of the headphone device itself and/or the usage data of other headphone devices of the same type as the headphone device are obtained.
  • the usage data includes: multiple relative posture change data of the first earphone and the second earphone; in a feasible embodiment, the above step A may include:
  • Step A1 Analyze the usage data to extract the plurality of relative posture change data of the first earphone and the second earphone;
  • the usage data is further parsed to extract a plurality of first earphones of the earphone device included in the usage data.
  • Relative posture change data and extracting a plurality of relative posture change data of the second earphone in the earphone device included in the usage data.
  • Step A2 Calculate based on the plurality of relative posture change data to determine the relative posture change threshold range of the first earphone and the second earphone.
  • the headphone device after the headphone device further extracts multiple relative posture change data of the first earphone and the second earphone from the acquired usage data, it further performs a weighted average calculation on the multiple relative posture change data. , thereby determining the relative attitude change threshold range of the first earphone and the second earphone, and then using the relative attitude change threshold range, the calculated value can be calculated when the first earphone and/or the second earphone of the earphone device detects itself.
  • the relative posture change amount is less than the relative posture change threshold range of the first earphone and the second earphone, it is immediately determined that the entire headphone device is in the user's normal wearing posture at the current moment, or that the first earphone and/or the second earphone are in the user's normal wearing posture.
  • the relative posture change amount is greater than or equal to the relative posture change threshold range, it is immediately determined that the first earphone and/or the second earphone in the earphone device at the current moment are being taken off by the user.
  • the earphone device obtains the usage data of the same type of earphone device when it is worn and used by the user, and then analyzes the usage data to calculate and determine the first earphone and the second earphone in the earphone device.
  • the relative posture change threshold range is used for each of the first earphone and the second earphone to determine whether the first earphone and the second earphone are currently in the wearing posture for normal use by the user based on their own relative posture change detection.
  • the headset device can directly detect and determine whether the headset device is in the user's normal wearing posture through the respective axial acceleration data of the first earphone and the second earphone.
  • This can not only simplify the implementation of the wearing detection solution for the headset device, but also greatly improve To a certain extent, the resistance to environmental interference during the earphone wearing detection process is improved, and the performance of the earphone wearing detection is ensured to be stable.
  • the relative posture change threshold range used to determine the wearing posture can be determined through the usage data of the headset device when the user actually wears it. This can also avoid the unreasonableness of artificially setting the threshold range, thereby improving the stability of wearing detection.
  • an embodiment of the present invention also proposes an earphone wearing detection device, which is deployed on the earphone equipment involved in each of the above embodiments. Please refer to Figure 4.
  • the earphone wearing detection device of the present invention includes:
  • the detection module 10 is used to detect the respective axial acceleration data of the first earphone and the second earphone;
  • Calculation module 20 configured to calculate the relative posture change of the first earphone and the second earphone according to the axial acceleration data
  • the determination module 30 is configured to determine whether the headphone device is in a wearing posture according to the relative posture change.
  • the determining module 30 includes:
  • a detection unit configured to obtain a relative attitude change threshold range of the first earphone and the second earphone, and detect whether the relative attitude change amount exceeds the relative attitude change threshold range;
  • a first determination unit configured to determine that the headphone device is in the wearing posture if the detection unit detects yes;
  • the second determination unit is configured to determine that the headphone device is not in the wearing posture if the detection unit detects no.
  • the determination module 30 of the earphone wearing detection device of the present invention is also used to obtain the usage data of the earphone device, and determine the relative posture changes of the first earphone and the second earphone based on the usage data. threshold range.
  • the usage data includes: multiple relative posture change data of the first earphone and the second earphone; the determination module 30 further includes:
  • An analysis unit configured to analyze the usage data to extract the plurality of relative posture change data of the first earphone and the second earphone;
  • a third determination unit configured to perform calculations based on the plurality of relative posture change data to determine the relative posture change threshold range of the first earphone and the second earphone.
  • the determination module 30 of the earphone wearing detection device of the present invention is also used to determine the respective axial acceleration change rates of the first earphone and the second earphone; and, determine based on the axial acceleration change rate.
  • the detection module 10 is also used to detect the axial acceleration data of the X-axis, Y-axis and Z-axis of the first earphone and the second earphone, wherein the X-axis, Y-axis and Z-axis Perpendicular to each other.
  • the calculation module 20 is also used to perform subtraction calculations on the axial acceleration data of the first earphone and the axial acceleration data of the second earphone to obtain the first earphone and the second earphone.
  • the relative attitude changes in the corresponding directions of the X-axis, the Y-axis and the Z-axis.
  • the expanded content of the specific implementation of the earphone wearing detection device of the present invention is basically the same as the above embodiments of the earphone wearing detection method, and will not be described again here.
  • embodiments of the present invention also provide an earphone device, which includes a first earphone and a second earphone.
  • the first earphone and the second earphone of the earphone device of the present invention each include a structural housing, a communication module, and a main control module (such as micro control unit (MCU), speakers, microphones, memory, etc.
  • the main control module can include a microprocessor, audio decoding unit, power supply and power management unit, sensors required by the system and other active or passive components (which can be replaced, deleted or added according to the actual functions) to realize wireless audio reception and playback functions.
  • the earphone device of the present invention can establish a communication connection with the user's mobile terminal through the communication module.
  • the earphone wearing detection program can be stored in the memory of the earphone device.
  • the earphone wearing detection program can be called by the microprocessor in the earphone device and perform the following operations:
  • the step of determining whether the headphone device is in a wearing posture according to the relative posture change includes:
  • the method also includes:
  • Usage data of the earphone device is obtained, and a relative posture change threshold range of the first earphone and the second earphone is determined based on the usage data.
  • the usage data includes: multiple relative posture change data of the first earphone and the second earphone;
  • the step of determining the relative posture change threshold range of the first earphone and the second earphone according to the usage data includes:
  • Calculation is performed based on the plurality of relative posture change data to determine a relative posture change threshold range of the first earphone and the second earphone.
  • the method further includes:
  • the removed target earphone among the first earphone and the second earphone is determined according to the axial acceleration change rate.
  • the step of detecting the respective axial acceleration data of the first earphone and the second earphone includes:
  • Axial acceleration data of the X-axis, Y-axis and Z-axis of each of the first earphone and the second earphone are detected, wherein the X-axis, Y-axis and Z-axis are perpendicular to each other.
  • the step of calculating the relative posture change of the first earphone and the second earphone based on the axial acceleration data includes:
  • the axial acceleration data of the first earphone and the axial acceleration data of the second earphone are subtracted to obtain the relationship between the first earphone and the second earphone on the X axis, the Y axis and The Z-axis corresponds to the relative attitude change in the orientation.
  • the present invention also proposes a computer-readable storage medium.
  • the computer-readable storage medium stores an earphone wearing detection program.
  • the earphone wearing detection program is executed by the processor, the earphone wearing detection of the present invention is implemented as described above. Method steps.
  • the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation.
  • the technical solution of the present invention can be embodied in the form of a software product in essence or the part that contributes to the existing technology.
  • the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present invention.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Headphones And Earphones (AREA)

Abstract

Disclosed in the present invention are an earphone wearing detection method and apparatus, an earphone device, and a storage medium. The method is applied to an earphone device. The earphone device comprises a first earphone and a second earphone. The method comprises: detecting respective axial acceleration data of the first earphone and the second earphone; calculating a relative attitude variation of the first earphone and the second earphone according to the axial acceleration data; and according to the relative attitude variation, determining whether the earphone device is in a wearing attitude. According to the present invention, whether the earphone device is in a normal wearing posture of a user can be directly detected and determined by means of the respective axial acceleration data of the first earphone and the second earphone, such that the implementation of the solution of the wearing detection of the earphone device is simplified, the capability of resisting environmental interference in the wearing detection process of the earphones is also improved to a great extent, and the performance stability of the wearing detection of the earphones is ensured.

Description

耳机的佩戴检测方法、装置耳机设备以及存储介质Headphone wearing detection method, headphone installation device and storage medium
本申请要求于2022年3月30日提交中国专利局、申请号为202210325585.9、发明名称为“耳机的佩戴检测方法、装置耳机设备以及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on March 30, 2022, with application number 202210325585.9 and the invention title "Headphone Wearing Detection Method, Headphone Device Device and Storage Medium", the entire content of which is incorporated by reference. incorporated in this application.
技术领域Technical field
本发明涉及耳机技术领域,尤其涉及一种耳机的佩戴检测方法、装置、耳机设备以及计算机可读存储介质。The present invention relates to the technical field of earphones, and in particular, to an earphone wearing detection method, device, earphone equipment and a computer-readable storage medium.
背景技术Background technique
随着智能电子行业的发展,目前的耳机产品已经发展到了TWS(True Wireless Stereo,真正的无线立体声)耳机阶段,TWS耳机产品基于其方便佩戴、小巧且功能强大的特点已经得到的市场用户的认可与肯定。基于此市场背景,行业内各生产厂商已经越来越重视对于TWS耳机进行佩戴姿势的检测。With the development of the smart electronics industry, current headphone products have developed to the TWS (True Wireless Stereo) headset stage. TWS headphone products have been recognized by market users based on their easy-to-wear, compact and powerful features. with affirmation. Based on this market background, manufacturers in the industry have paid more and more attention to the detection of wearing posture of TWS headsets.
目前市面上普遍采用的TWS耳机佩戴检测方案主要有两种,即红外检测方案和电容感应方案。其中,红外检测方案是通过红外发射器和红外接收器来实现佩戴检测,尽管这种检测方案发展到目前已经比较成熟,但是此种方案需要针对TWS耳机做对应结构设计上的光学开窗处理,如此,不仅给耳机的防水设计带来了挑战,还会因为用户佩戴耳机一段时间后因为油渍耳垢等形成对红外视窗的污染从而导致透光率变差以严重影响耳机对佩戴姿态的检测识别。此外,电容感应方案虽然能够有效地解决上述红外方案视窗脏污问题带来的弊端,但是,因为电容对温湿度非常敏感,从而当温湿度有比较大的变化时同样会造成检测佩戴姿势时发生误判的现象,并且,在电容感应方案中,还需要专门在耳机上设计佩戴检测的感应区域,这不仅会给耳机产品的堆叠带来很多限制,还会增加产品自身的生产制造成本。Currently, there are two main TWS earphone wearing detection solutions commonly used on the market, namely infrared detection solution and capacitive sensing solution. Among them, the infrared detection solution uses an infrared transmitter and an infrared receiver to achieve wearing detection. Although this detection solution has developed to be relatively mature, this solution requires optical window processing corresponding to the structural design of the TWS headset. This not only brings challenges to the waterproof design of the earphones, but also causes the infrared window to be polluted by oily earwax after the user wears the earphones for a period of time, resulting in a deterioration in light transmittance and seriously affecting the detection and recognition of the wearing posture of the earphones. In addition, although the capacitive sensing solution can effectively solve the above-mentioned disadvantages caused by the dirty window of the infrared solution, because the capacitor is very sensitive to temperature and humidity, when there are relatively large changes in temperature and humidity, it will also cause problems when detecting the wearing posture. The phenomenon of misjudgment, and in the capacitive sensing solution, it is also necessary to specially design the sensing area for wearing detection on the earphones. This will not only bring many restrictions to the stacking of earphone products, but also increase the manufacturing cost of the product itself.
综上,现有对耳机的佩戴检测对于耳机产品结构设计具有较高要求,且容易受到使用过程中的脏污或者温度变化的负向影响,导致方案整体的实现复杂且对环境干扰的抵抗能力差。In summary, the existing earphone wearing detection has high requirements on the structural design of earphone products, and is easily affected by dirt or temperature changes during use, resulting in complex implementation of the overall solution and poor resistance to environmental interference. Difference.
发明内容Contents of the invention
本发明的主要目的在于提供一种耳机的佩戴检测方法、装置、耳机设备以及计算机可读存储介质,旨在简化佩戴检测的方案实现,提高对耳机进行佩戴检测过程中对环境干扰的抵抗能力,从而确保耳机佩戴检测的性能稳定。The main purpose of the present invention is to provide an earphone wearing detection method, device, earphone equipment and a computer-readable storage medium, aiming to simplify the implementation of the wearing detection solution and improve the resistance to environmental interference during the wearing detection process of the earphones. This ensures stable performance of headphone wearing detection.
为实现上述目的,本发明提供一种耳机的佩戴检测方法,所述方法应用于耳机设备,所述耳机设备包括第一耳机和第二耳机,所述方法包括:In order to achieve the above object, the present invention provides a method for wearing detection of earphones. The method is applied to an earphone device. The earphone device includes a first earphone and a second earphone. The method includes:
检测所述第一耳机和所述第二耳机各自的轴向加速度数据;Detecting respective axial acceleration data of the first earphone and the second earphone;
根据所述轴向加速度数据计算所述第一耳机和所述第二耳机的相对姿态变化量;Calculate the relative attitude change of the first earphone and the second earphone according to the axial acceleration data;
根据所述相对姿态变化量确定所述耳机设备是否处于佩戴姿态。Determine whether the headphone device is in a wearing posture according to the relative posture change amount.
可选地,所述根据所述相对姿态变化量确定所述耳机设备是否处于佩戴姿态的步骤包括:Optionally, the step of determining whether the headphone device is in a wearing posture according to the relative posture change includes:
获取所述第一耳机和所述第二耳机的相对姿态变化阈值范围,并检测所述相对姿态变化量是否超过所述相对姿态变化阈值范围;Obtain the relative attitude change threshold range of the first earphone and the second earphone, and detect whether the relative attitude change amount exceeds the relative attitude change threshold range;
若是,则确定所述耳机设备处于所述佩戴姿态;If so, it is determined that the headphone device is in the wearing posture;
若否,则确定所述耳机设备不处于所述佩戴姿态。If not, it is determined that the headphone device is not in the wearing posture.
可选地,所述方法还包括:Optionally, the method also includes:
获取所述耳机设备的使用数据,并根据所述使用数据确定所述第一耳机和所述第二耳机的相对姿态变化阈值范围。Usage data of the earphone device is obtained, and a relative posture change threshold range of the first earphone and the second earphone is determined based on the usage data.
可选地,所述使用数据包括:所述第一耳机和所述第二耳机的多个相对姿态变化数据;Optionally, the usage data includes: multiple relative posture change data of the first earphone and the second earphone;
所述根据所述使用数据确定所述第一耳机和所述第二耳机的相对姿态变化阈值范围的步骤,包括:The step of determining the relative posture change threshold range of the first earphone and the second earphone according to the usage data includes:
针对所述使用数据进行解析以提取出所述第一耳机和所述第二耳机的所述多个相对姿态变化数据;Analyze the usage data to extract the plurality of relative posture change data of the first earphone and the second earphone;
根据所述多个相对姿态变化数据进行计算以确定所述第一耳机和所述第二耳机的相对姿态变化阈值范围。Calculation is performed based on the plurality of relative posture change data to determine a relative posture change threshold range of the first earphone and the second earphone.
可选地,在确定所述耳机设备不处于所述佩戴姿态的步骤之后,所述方法还包括:Optionally, after determining that the headphone device is not in the wearing posture, the method further includes:
确定所述第一耳机和所述第二耳机各自的轴向加速度变化率;Determining the respective axial acceleration change rates of the first earphone and the second earphone;
根据所述轴向加速度变化率确定所述第一耳机和所述第二耳机中被摘下的目标耳机。The removed target earphone among the first earphone and the second earphone is determined according to the axial acceleration change rate.
可选地,所述检测所述第一耳机和所述第二耳机各自的轴向加速度数据的步骤包括:Optionally, the step of detecting the respective axial acceleration data of the first earphone and the second earphone includes:
检测所述第一耳机和所述第二耳机各自X轴、Y轴和Z轴的轴向加速度数据,其中,所述X轴、Y轴和Z轴互相垂直。Axial acceleration data of the X-axis, Y-axis and Z-axis of each of the first earphone and the second earphone are detected, wherein the X-axis, Y-axis and Z-axis are perpendicular to each other.
可选地,所述根据所述轴向加速度数据计算所述第一耳机和所述第二耳机的相对姿态变化量的步骤包括:Optionally, the step of calculating the relative posture change of the first earphone and the second earphone based on the axial acceleration data includes:
将所述第一耳机的轴向加速度数据与所述第二耳机的轴向加速度数据进行减法计算,以得到所述第一耳机和所述第二耳机在所述X轴、所述Y轴和所述Z轴对应方位上的相对姿态变化量。The axial acceleration data of the first earphone and the axial acceleration data of the second earphone are subtracted to obtain the relationship between the first earphone and the second earphone on the X axis, the Y axis and The Z-axis corresponds to the relative attitude change in the orientation.
为实现上述目的,本发明还提供一种耳机的佩戴检测装置,所述装置应用于耳机设备,所述耳机设备包括第一耳机和第二耳机,所述装置包括:To achieve the above object, the present invention also provides an earphone wearing detection device. The device is applied to an earphone device. The earphone device includes a first earphone and a second earphone. The device includes:
检测模块,用于检测所述第一耳机和所述第二耳机各自的轴向加速度数据;A detection module for detecting the respective axial acceleration data of the first earphone and the second earphone;
计算模块,用于根据所述轴向加速度数据计算所述第一耳机和所述第二耳机的相对姿态变化量;A calculation module configured to calculate the relative posture change of the first earphone and the second earphone according to the axial acceleration data;
确定模块,用于根据所述相对姿态变化量确定所述耳机设备是否处于佩戴姿态。Determining module, configured to determine whether the headphone device is in a wearing posture according to the relative posture change.
本发明耳机的佩戴检测装置的各个功能模块在运行时实现如上所述的耳机的佩戴检测方法的步骤。Each functional module of the earphone wearing detection device of the present invention implements the steps of the earphone wearing detection method as described above when running.
为实现上述目的,本发明还提供一种耳机设备,所述耳机设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的耳机的佩戴检测程序,所述耳机的佩戴检测程序被所述处理器执行时实现如上所述的耳机的佩戴检测方法的步骤。In order to achieve the above object, the present invention also provides an earphone device. The earphone device includes: a memory, a processor, and an earphone wearing detection program stored in the memory and executable on the processor. The earphone When the wearing detection program is executed by the processor, the steps of the earphone wearing detection method as described above are implemented.
此外,为实现上述目的,本发明还提出一种计算机可读存储介质,所述 计算机可读存储介质上存储有耳机的佩戴检测程序,所述耳机的佩戴检测程序被处理器执行时实现如上所述的耳机的佩戴检测方法的步骤。In addition, in order to achieve the above object, the present invention also proposes a computer-readable storage medium. The computer-readable storage medium stores an earphone wearing detection program. When the earphone wearing detection program is executed by the processor, the above-mentioned steps are implemented. The steps of the earphone wearing detection method described above.
本发明中,通过耳机设备在用户佩戴使用该耳机设备的过程当中,检测该耳机当中第一耳机和第二耳机各自的轴向加速度数据;然后,进一步根据该轴向加速度数据计算第一耳机的相对姿态变化量和计算第二耳机的相对姿态变化量;最后,根据该第一耳机和第二耳机各自的相对姿态变化量确定该耳机设备当前是否处于用户正常使用的佩戴姿态。In the present invention, when the user wears and uses the earphone device, the axial acceleration data of the first earphone and the second earphone of the earphones are detected; and then, the axial acceleration data of the first earphone is further calculated based on the axial acceleration data. The relative posture changes and the relative posture changes of the second earphone are calculated; finally, it is determined according to the relative posture changes of the first earphone and the second earphone whether the headphone device is currently in a wearing posture for normal use by the user.
相比于传统通过红外或者电容进行佩戴检测的方式,本发明直接通过第一耳机和第二耳机各自的轴向加速度数据来检测确定耳机设备是否处于用户正常的佩戴姿势,不仅能够简化耳机设备对于佩戴检测的方案实现,还不会令耳机设备的整个检测过程遭受到用户使用对于耳机外部形成的脏污或者温度变化的影响,从而极大程度上提高了对耳机进行佩戴检测过程中对环境干扰的抵抗能力,确保了耳机佩戴检测的性能稳定。Compared with the traditional wearing detection method through infrared or capacitance, the present invention directly detects and determines whether the headphone device is in the user's normal wearing posture through the respective axial acceleration data of the first earphone and the second earphone, which can not only simplify the use of the earphone device. The implementation of the wearing detection solution will not cause the entire detection process of the headset device to be affected by the dirt or temperature changes caused by the user's use of the outside of the earphones, thus greatly improving the environmental interference during the wearing detection process of the earphones. The resistance ability ensures the stable performance of headphone wearing detection.
此外,本发明相比于上述传统方式,本发明仅基于耳机设备自身集成能够探测加速度数据的传感器即可实现,从而不会造成对耳机产品的堆叠限制,有效地节省了耳机设备的整体生产制造成本。In addition, compared with the above-mentioned traditional methods, the present invention can be realized only based on the earphone device itself integrating a sensor capable of detecting acceleration data, thereby not causing stacking restrictions on earphone products and effectively saving the overall production and manufacturing of the earphone device. cost.
附图说明Description of drawings
图1为本发明耳机的佩戴检测方法第一实施例的流程示意图;Figure 1 is a schematic flow chart of the first embodiment of the earphone wearing detection method of the present invention;
图2为本发明耳机的佩戴检测方法一实施例涉及的应用场景示意图;Figure 2 is a schematic diagram of an application scenario involved in an embodiment of the earphone wearing detection method of the present invention;
图3为本发明耳机的佩戴检测方法一实施例涉及的应用流程示意图;Figure 3 is a schematic application flow diagram of an embodiment of the earphone wearing detection method of the present invention;
图4为本发明耳机的佩戴检测装置一较佳实施例的功能模块示意图。Figure 4 is a functional module schematic diagram of a preferred embodiment of the earphone wearing detection device of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose, functional features and advantages of the present invention will be further described with reference to the embodiments and the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention and are not intended to limit the present invention.
参照图1,图1为本发明耳机的佩戴检测方法第一实施例的流程示意图。Referring to Figure 1, Figure 1 is a schematic flow chart of a first embodiment of a headphone wearing detection method of the present invention.
本发明实施例提供了耳机的佩戴检测方法的实施例,需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The embodiment of the present invention provides an embodiment of a headphone wearing detection method. It should be noted that although the logical sequence is shown in the flow chart, in some cases, the shown sequence can be performed in a different sequence than here. or describe the steps.
本发明实施例耳机的佩戴检测方法应用于耳机设备,该耳机设备具体可以包括第一耳机和第二耳机,该第一耳机和第二耳机具体即可以为佩戴于用户左耳朵中的耳机和佩戴于用户右耳朵当中的耳机。The earphone wearing detection method of the embodiment of the present invention is applied to the earphone device. The earphone device may specifically include a first earphone and a second earphone. The first earphone and the second earphone may specifically be an earphone worn in the user's left ear and a pair of earphones worn on the earphone. The earphone in the user's right ear.
需要说明的是,本发明耳机的佩戴检测方法所涉及的耳机设备中的功能模块可以包括:带蓝牙模块的微处理器,以及均独立与该微处理器电性连接的压力传感器、佩戴检测模块、电池、电源管理单元、音频播放器SPK、麦克风MIC、马达振动模块、指示灯、按键以及屏幕。It should be noted that the functional modules in the earphone device involved in the earphone wearing detection method of the present invention may include: a microprocessor with a Bluetooth module, as well as a pressure sensor and a wearing detection module that are independently electrically connected to the microprocessor. , battery, power management unit, audio player SPK, microphone MIC, motor vibration module, indicator lights, buttons and screen.
此外,应当理解的是,基于实际应用的不同设计需要,在不同可行的实施方式当中,该耳机设备中所包含的功能模块当然可以不同,本发明耳机的佩戴检测方法并不针对耳机设备内部所包含的功能模块的具体种类进行限定。In addition, it should be understood that based on different design needs of practical applications, the functional modules included in the headphone device may of course be different in different feasible implementations. The headphone wearing detection method of the present invention does not target the internal features of the headphone device. The specific types of functional modules included are limited.
在本实施例中,本发明提供的耳机的佩戴检测方法包括:In this embodiment, the earphone wearing detection method provided by the present invention includes:
步骤S10,检测所述第一耳机和所述第二耳机各自的轴向加速度数据;Step S10, detect the respective axial acceleration data of the first earphone and the second earphone;
在本实施例中,耳机设备通过内部配置的加速度传感器来检测用户所佩戴的第一耳机和/或者第二耳机的轴向加速度数据。In this embodiment, the earphone device detects axial acceleration data of the first earphone and/or the second earphone worn by the user through an internally configured acceleration sensor.
需要说明的是,在本实施例中,耳机设备通过预先配置在第一耳机和第二耳机内部的轴向加速度传感器,分别对X、Y和Z三个轴向方位的加速度数据进行检测。其中,需要注意的是,如图2所示的应用场景,上述的X、Y和Z三个轴向方位互相之间均是垂直的。It should be noted that in this embodiment, the earphone device detects acceleration data in three axial directions of X, Y and Z through axial acceleration sensors pre-configured inside the first earphone and the second earphone. Among them, it should be noted that in the application scenario shown in Figure 2, the above three axial directions of X, Y and Z are all perpendicular to each other.
示例性地,例如,在一种可行的实施例中,预先在耳机设备的第一耳机和第二耳机内部分别配置安装一个三轴加速度传感器,从而,由耳机设备的该第一耳机和第二耳机各自在用户佩戴使用的过程中,通过该三轴加速度传感器检测第一耳机和第二耳机各自在X、Y和Z三个轴向方位的轴向加速度数据。For example, in a feasible embodiment, a three-axis acceleration sensor is configured and installed inside the first earphone and the second earphone of the earphone device in advance, so that the first earphone and the second earphone of the earphone device When the earphones are worn and used by the user, the three-axis acceleration sensor detects the axial acceleration data of the first earphone and the second earphone in three axial directions of X, Y and Z respectively.
进一步地,在一些可行的实施例中,上述的步骤S10,具体可以包括:Further, in some feasible embodiments, the above step S10 may specifically include:
步骤S101,检测所述第一耳机和所述第二耳机各自X轴、Y轴和Z轴的 轴向加速度数据,其中,所述X轴、Y轴和Z轴互相垂直。Step S101, detect the axial acceleration data of the X-axis, Y-axis and Z-axis of the first earphone and the second earphone, wherein the X-axis, Y-axis and Z-axis are perpendicular to each other.
示例性地,例如,如图2所示场景下,用户正常佩戴第一耳机和第二耳机时,第一耳机和第二耳机内部的三轴加速度传感器各自检测到的X轴与Y轴两个方位的重力加速度均为0,而Z轴则为1个负重力加速度,即,第一耳机(假定为佩戴在用户左耳朵的耳机)通过三轴加速度传感器所检测到的轴向加速度数据即为L:(0,0,-1G),同理,第二耳机(假定为佩戴在用户右耳朵的耳机)通过三轴加速度传感器所检测到的轴向加速度数据即为R:(0,0,-1G)。For example, in the scenario shown in Figure 2, when the user wears the first earphone and the second earphone normally, the three-axis acceleration sensors inside the first earphone and the second earphone each detect the X-axis and Y-axis. The gravity acceleration in all directions is 0, while the Z-axis is 1 negative gravity acceleration. That is, the axial acceleration data detected by the first earphone (assumed to be the earphone worn on the user's left ear) through the three-axis acceleration sensor is L: (0, 0, -1G). Similarly, the axial acceleration data detected by the second earphone (assumed to be the earphone worn on the user's right ear) through the three-axis acceleration sensor is R: (0, 0, -1G).
应当理解的是,在本实施例中,考虑到实际耳机设备可能需要集成其它功能用途,因此,基于实际应用的不同设计需要,在其它可行的实施例当中,当然也可以在该耳机设备的第一耳机和第二耳机内部配置安装六轴或九轴的加速度传感器,来检测得到上述第一耳机和第二耳机各自在X、Y和Z三个轴向方位的轴向加速度数据。It should be understood that in this embodiment, considering that the actual headphone device may need to integrate other functional uses, therefore, based on different design needs of actual applications, in other feasible embodiments, of course, the headphone device can also be integrated in the third part of the headphone device. Six-axis or nine-axis acceleration sensors are installed inside the first earphone and the second earphone to detect the axial acceleration data of the first earphone and the second earphone respectively in the three axial directions of X, Y and Z.
此外,需要说明的是,在本实施例中,为方便耳机设备在后续根据第一耳机和第二耳机各自轴向加速度传感器来计算该第一耳机和该第二耳机的相对姿态变化量,耳机设备可预先针对第一耳机和第二耳机各自X、Y和Z三个轴向方位进行一致性定义,即,针对如图2所示场景中X轴方向的加速度数据进行取反计算,如此,若用户在佩戴第一耳机和第二耳机(同样假定第一耳机佩戴在用户左耳朵,而第二耳机佩戴在用户右耳朵)呈侧卧躺下的状态时,该第一耳机和第二耳机各自通过内部的三轴加速度传感器所检测到的轴向加速度数据将一致,即具体为L(-1G,0,-0),R(-1G,0,-0)。In addition, it should be noted that in this embodiment, in order to facilitate the earphone device to subsequently calculate the relative posture changes of the first earphone and the second earphone based on the respective axial acceleration sensors of the first earphone and the second earphone, the earphone The device can pre-define the consistency of the three axial directions of the first earphone and the second earphone in the X, Y and Z directions, that is, invert the acceleration data in the X-axis direction in the scene as shown in Figure 2, so that, If the user is lying on his side while wearing the first earphone and the second earphone (also assuming that the first earphone is worn on the user's left ear and the second earphone is worn on the user's right ear), the first earphone and the second earphone The axial acceleration data detected by the internal three-axis acceleration sensor will be consistent, that is, specifically L (-1G, 0, -0), R (-1G, 0, -0).
步骤S20,根据所述轴向加速度数据计算所述第一耳机和所述第二耳机的相对姿态变化量;Step S20: Calculate the relative posture change of the first earphone and the second earphone according to the axial acceleration data;
在本实施例中,耳机设备在检测到用户佩戴的第一耳机和第二耳机各自的轴向加速度数据之后,进一步根据各自该轴向加速度数据来计算得到该第一耳机和第二耳机各自的相对姿态变化量。In this embodiment, after the earphone device detects the axial acceleration data of the first earphone and the second earphone worn by the user, it further calculates the respective axial acceleration data of the first earphone and the second earphone based on the respective axial acceleration data. Relative attitude change.
需要说明的是,在本实施例中,若仅有耳机设备的第一耳机或者第二耳机通过内部的加速度传感器检测得到轴向加速度数据,则耳机设备即直接确定当前用户仅佩戴了第一耳机或者第二耳机。It should be noted that in this embodiment, if only the first earphone or the second earphone of the earphone device detects the axial acceleration data through the internal acceleration sensor, the earphone device directly determines that the current user is wearing only the first earphone. Or a second headset.
进一步地,在一种可行的实施例中,上述的步骤S20,具体可以包括:Further, in a feasible embodiment, the above step S20 may specifically include:
步骤S201,将所述第一耳机的轴向加速度数据与所述第二耳机的轴向加速度数据进行减法计算,以得到所述第一耳机和所述第二耳机在所述X轴、所述Y轴和所述Z轴对应方位上的相对姿态变化量。Step S201: Subtract the axial acceleration data of the first earphone and the axial acceleration data of the second earphone to obtain the coordinates between the first earphone and the second earphone on the X-axis, the The relative attitude change in the corresponding directions of the Y-axis and the Z-axis.
在本实施例中,耳机设备在根据检测到的第一耳机和第二耳机各自的轴向加速度数据进行相对姿态变化量计算的过程中,直接针对在通过将第一耳机和第二耳机各自X、Y和Z三个轴向方位进行一致性定义后,耳机设备所检测到的该第一耳机和第二耳机各自的轴向加速度数据进行减法计算,从而得到该第一耳机和第二耳机各自在X、Y和Z三个轴向方位上的相对姿态变化量。In this embodiment, in the process of calculating the relative attitude change amount of the earphone device based on the detected axial acceleration data of the first earphone and the second earphone, the headphone device directly adjusts the first earphone and the second earphone by X After the three axial directions of , Y and Z are consistently defined, the respective axial acceleration data of the first earphone and the second earphone detected by the earphone device are subtracted to obtain the respective axial acceleration data of the first earphone and the second earphone. Relative attitude changes in the three axial directions of X, Y and Z.
示例性地,例如,请参照如图3所示的应用流程,耳机设备具体可以分别由第一耳机和第二耳机各自分别计算自己相对于对方的相对姿态变化量,即,佩戴于用户左耳朵的第一耳机使用通过自身内部的三轴加速度传感器所检测到的轴向加速度数据——L:(0,0,-1G),而佩戴于用户右耳朵的第二耳机使用通过自身内部的三轴加速度传感器所检测到的轴向加速度数据——R:(0,0,-1G)。Illustratively, for example, please refer to the application process shown in Figure 3. The earphone device can specifically calculate the relative posture change of itself relative to the other party by the first earphone and the second earphone, that is, when worn on the user's left ear The first earphone uses the axial acceleration data detected by its own internal three-axis acceleration sensor - L: (0, 0, -1G), while the second earphone worn on the user's right ear uses its own internal three-axis acceleration sensor. Axial acceleration data detected by the axis acceleration sensor - R: (0, 0, -1G).
然后,第一耳机通过将自己本身的轴向加速度数据L:(0,0,-1G)与第二耳机通过蓝牙透传功能传递的该第二耳机自己本身的轴向加速度数据R:(0,0,-1G)进行减法计算,从而计算得到第一耳机本身相对于第二耳机之间的在X轴、Y轴和Z轴对应方位上的相对姿态变化量=L-R=(0,0,0)。Then, the first earphone combines its own axial acceleration data L: (0, 0, -1G) with the second earphone’s own axial acceleration data R: (0) transmitted by the second earphone through the Bluetooth transparent transmission function. , 0, -1G) for subtraction calculation, thereby calculating the relative attitude change of the first earphone itself relative to the second earphone in the corresponding directions of the X-axis, Y-axis and Z-axis = L-R = (0, 0, 0).
同理,第二耳机可通过将自己本身的轴向加速度数据R:(0,0,-1G)与第一耳机通过蓝牙透传功能传递的该第一耳机自己本身的轴向加速度数据L:(0,0,-1G)进行减法计算,从而计算得到第二耳机本身相对于第一耳机之间的在X轴、Y轴和Z轴对应方位上的相对姿态变化量=R-L=(0,0,0)。In the same way, the second earphone can combine its own axial acceleration data R: (0, 0, -1G) with the first earphone's own axial acceleration data L transmitted by the first earphone through the Bluetooth transparent transmission function: (0, 0, -1G) is subtracted to calculate the relative attitude change of the second earphone itself relative to the first earphone in the corresponding directions of the X-axis, Y-axis and Z-axis = R-L = (0, 0,0).
步骤S30,根据所述相对姿态变化量确定所述耳机设备是否处于佩戴姿态。Step S30: Determine whether the headphone device is in a wearing posture according to the relative posture change.
在本实施例中,耳机设备在根据第一耳机和第二耳机各自的轴向加速度数据来计算得到该第一耳机和第二耳机各自的相对姿态变化量之后,进一步基于该相对姿态变化量检测确定该第一耳机和第二耳机当前是否处于用户正常使用的佩戴姿态。In this embodiment, after the headphone device calculates the relative attitude changes of the first earphone and the second earphone based on the respective axial acceleration data of the first earphone and the second earphone, it further detects the changes based on the relative attitude changes. Determine whether the first earphone and the second earphone are currently in a wearing posture for normal use by the user.
需要说明的是,在本实施例中,考虑到耳机设备内部所配置安装传感器 件本身的数据采集存在一定范围的波动,以及用户在使用该耳机设备中第一耳机和第二耳机本身可能存在佩戴姿态的相对位移,因此,本发明耳机的佩戴检测方法即通过检测到已经计算的第一耳机和第二耳机各自的相对姿态变化量在一定的界限范围内,即可判定该第一耳机和该第二耳机各自是处于用户正常的佩戴状态,反之,若检测到该相对姿态变化量超出了一定的界限范围则判定该第一耳机和/或者第二耳机不处于用户正常的佩戴状态,而是处于摘下状态。It should be noted that in this embodiment, considering that the data collection of the sensor device installed inside the earphone device itself has a certain range of fluctuations, and the user may wear the first earphone and the second earphone when using the earphone device. Therefore, the earphone wearing detection method of the present invention can determine the first earphone and the second earphone by detecting that the calculated relative attitude changes of the first earphone and the second earphone are within a certain limit range. Each of the second earphones is in the normal wearing state of the user. On the contrary, if it is detected that the relative posture change exceeds a certain limit range, it is determined that the first earphone and/or the second earphone are not in the normal wearing state of the user, but are in the normal wearing state of the user. In the removed state.
进一步地,在一些可行的实施例中,步骤S30,具体可以包括:Further, in some feasible embodiments, step S30 may specifically include:
步骤S301,获取所述第一耳机和所述第二耳机的相对姿态变化阈值范围,并检测所述相对姿态变化量是否超过所述相对姿态变化阈值范围;Step S301, obtain the relative attitude change threshold range of the first earphone and the second earphone, and detect whether the relative attitude change amount exceeds the relative attitude change threshold range;
需要说明的是,在本实施例中,耳机设备中第一耳机和第二耳机的相对姿态变化阈值范围可以由预先采集用户佩戴使用耳机设备的样本数据来进行确定。应当理解的是,基于实际应用的不同设计需要,在不同可行的实施方式当中,耳机设备当然可以采用不同具体大小的相对姿态变化阈值范围进行检测,本发明耳机的佩戴检测方法并不针对该相对姿态变化阈值范围的具体大小进行限定。It should be noted that in this embodiment, the relative posture change threshold range of the first earphone and the second earphone in the earphone device can be determined by pre-collecting sample data of the user wearing and using the earphone device. It should be understood that based on different design needs of practical applications, in different feasible implementations, the earphone device can of course use different specific sizes of relative posture change threshold ranges for detection. The earphone wearing detection method of the present invention does not target this relative attitude change threshold range. The specific size of the posture change threshold range is limited.
在本实施例中,耳机设备的第一耳机和第二耳机各自在检测是否处于用户正常的佩戴姿态时,首先获取耳机设备预先配置好存储在本地或者存储在云端的第一耳机和第二耳机的相对姿态变化阈值范围,之后,该第一耳机和第二耳机各自即开始检测自身进行计算得到的相对姿态变化量是否超过该对姿态变化阈值范围。In this embodiment, when detecting whether the first earphone and the second earphone of the earphone device are in the normal wearing posture of the user, they first obtain the first earphone and the second earphone that are pre-configured by the earphone device and stored locally or in the cloud. After that, the first earphone and the second earphone each begin to detect whether the relative attitude change calculated by themselves exceeds the pair of attitude change threshold ranges.
步骤S302,若是,则确定所述耳机设备处于所述佩戴姿态;Step S302, if yes, determine that the headphone device is in the wearing posture;
步骤S303,若否,则确定所述耳机设备不处于所述佩戴姿态。Step S303, if not, determine that the headphone device is not in the wearing posture.
在本实施例中,如图3所示的应用流程,耳机设备的第一耳机和/或者第二耳机中,任意一个耳机在检测到自身计算得到的相对姿态变化量是小于该第一耳机和第二耳机的相对姿态变化阈值范围时,立即确定在当前时刻耳机设备整体是处于用户正常的佩戴姿态。反之,若检测到该相对姿态变化量是大于或者等于该相对姿态变化阈值范围时,则立即确定在当前时刻耳机设备中第一耳机和/或者第二耳机是存在被用户进行摘下的动作中的。In this embodiment, as shown in the application process of Figure 3, any one of the first earphones and/or the second earphones of the earphone device detects that its calculated relative attitude change is smaller than the first earphone and the second earphone. When the relative posture of the second earphone changes within the threshold range, it is immediately determined that the entire earphone device is in the user's normal wearing posture at the current moment. On the contrary, if it is detected that the relative posture change is greater than or equal to the relative posture change threshold range, it is immediately determined that the first earphone and/or the second earphone in the earphone device at the current moment are being taken off by the user. of.
进一步地,在另一些可行的实施方式当中,在上述的步骤S303,确定所 述耳机设备不处于所述佩戴姿态之后,本发明耳机的佩戴检测方法还可以包括:Further, in other possible implementations, after determining that the headphone device is not in the wearing posture in the above step S303, the headphone wearing detection method of the present invention may also include:
步骤S40,确定所述第一耳机和所述第二耳机各自的轴向加速度变化率;Step S40, determine the respective axial acceleration change rates of the first earphone and the second earphone;
在本实施例中,耳机设备在通过检测第一耳机和第二耳机的相对姿态变化量超过了相对姿态变化阈值范围,从而确定在当前时刻耳机设备中第一耳机和/或者第二耳机被用户摘下之后,由该第一耳机和第二耳机分别计算确定各自的轴向加速度变化率。In this embodiment, the headphone device detects that the relative posture change of the first headphone and the second headphone exceeds the relative posture change threshold range, thereby determining that the first headphone and/or the second headphone of the headphone device is used by the user at the current moment. After taking them off, the first earphone and the second earphone calculate and determine their respective axial acceleration change rates.
步骤S50,根据所述轴向加速度变化率确定所述第一耳机和所述第二耳机中被摘下的目标耳机。Step S50: Determine the removed target earphone among the first earphone and the second earphone according to the axial acceleration change rate.
在本实施例中,耳机设备的第一耳机和第二耳机各自在计算得到自己本身的轴向加速度变化率之后,进一步通过该轴向加速度变化率的具体大小确定在当前时刻该第一耳机自身是被用户摘下的目标耳机,还是该第二耳机时被用户摘下的目标耳机。In this embodiment, after each of the first earphone and the second earphone of the earphone device calculates its own axial acceleration change rate, it further determines the first earphone itself at the current moment based on the specific magnitude of the axial acceleration change rate. Is it the target earphone that is taken off by the user, or is it the target earphone that is taken off by the user when the second earphone is used.
示例性地,例如,请参照如图3所示的应用流程,第一耳机和第二耳机在通过检测第一耳机和第二耳机的相对姿态变化量超过了相对姿态变化阈值范围,从而确定在当前时刻耳机设备中第一耳机和/或者第二耳机被用户摘下之后,进一步通过任意成熟的算法来分别计算各自本身的轴向加速度变化率,然后,分别检测各自本身的轴向加速变化率的具体大小是否超过预先设定的变化率阈值,并具体在检测到自身的轴向加速度变化率超过该变化率阈值时,立即确定自身为当前时刻用户摘下的目标耳机。Illustratively, for example, please refer to the application process shown in Figure 3. The first earphone and the second earphone detect that the relative attitude change of the first earphone and the second earphone exceeds the relative attitude change threshold range, thereby determining whether After the first earphone and/or the second earphone in the earphone device are taken off by the user at the current moment, any mature algorithm is further used to calculate their own axial acceleration change rate, and then their own axial acceleration change rate is detected respectively. Whether the specific size exceeds the preset change rate threshold, and specifically when detecting that the change rate of its own axial acceleration exceeds the change rate threshold, it immediately determines that it is the target earphone taken off by the user at the current moment.
需要说明的是,在本实施例中,上述的变化率阈值为耳机设备预先设定的用于判定耳机处于用户摘下动作中耳机最小的轴向加速度变化率。应当理解的是,基于实际应用的不同设计需要,在不同可行的实施例中,耳机设备当然可以选择使用不同具体大小的变化率阈值,本发明耳机的佩戴检测方法并不针对该变化率阈值的具体大小进行限定。It should be noted that, in this embodiment, the above-mentioned change rate threshold is the minimum axial acceleration change rate of the headset that is preset by the headset device and is used to determine that the headset is in the user's removal action. It should be understood that based on different design needs of practical applications, in different feasible embodiments, the headphone device can of course choose to use change rate thresholds of different specific sizes. The headphone wearing detection method of the present invention is not specific to the change rate threshold. Specific size is limited.
在本实施例中,耳机设备通过内部配置的加速度传感器来检测用户所佩戴的第一耳机和/或者第二耳机的轴向加速度数据。耳机设备在检测到用户佩戴的第一耳机和第二耳机各自的轴向加速度数据之后,进一步根据各自该轴向加速度数据来计算得到该第一耳机和第二耳机各自的相对姿态变化量。耳 机设备在根据第一耳机和第二耳机各自的轴向加速度数据来计算得到该第一耳机和第二耳机各自的相对姿态变化量之后,进一步基于该相对姿态变化量检测确定该第一耳机和第二耳机当前是否处于用户正常使用的佩戴姿态。In this embodiment, the earphone device detects axial acceleration data of the first earphone and/or the second earphone worn by the user through an internally configured acceleration sensor. After detecting the respective axial acceleration data of the first earphone and the second earphone worn by the user, the earphone device further calculates the relative posture changes of the first earphone and the second earphone based on the respective axial acceleration data. After the headphone device calculates the relative attitude changes of the first earphone and the second earphone based on the axial acceleration data of the first earphone and the second earphone, it further determines the first earphone and the second earphone based on the relative attitude change detection. Whether the second earphone is currently in the user's normal wearing posture.
相比于传统通过红外或者电容进行佩戴检测的方式,本发明直接通过第一耳机和第二耳机各自的轴向加速度数据来检测确定耳机设备是否处于用户正常的佩戴姿势,不仅能够简化耳机设备对于佩戴检测的方案实现,还不会令耳机设备的整个检测过程遭受到用户使用对于耳机外部形成的脏污或者温度变化的影响,从而极大程度上提高了对耳机进行佩戴检测过程中对环境干扰的抵抗能力,确保了耳机佩戴检测的性能稳定。Compared with the traditional wearing detection method through infrared or capacitance, the present invention directly detects and determines whether the headphone device is in the user's normal wearing posture through the respective axial acceleration data of the first earphone and the second earphone, which can not only simplify the use of the earphone device. The implementation of the wearing detection solution will not cause the entire detection process of the headset device to be affected by the dirt or temperature changes caused by the user's use of the outside of the earphones, thus greatly improving the environmental interference during the wearing detection process of the earphones. The resistance ability ensures the stable performance of headphone wearing detection.
此外,本发明相比于上述传统方式,本发明仅基于耳机设备自身集成能够探测加速度数据的传感器即可实现,从而不会造成对耳机产品的堆叠限制,有效地节省了耳机设备的整体生产制造成本。In addition, compared with the above-mentioned traditional methods, the present invention can be realized only based on the earphone device itself integrating a sensor capable of detecting acceleration data, thereby not causing stacking restrictions on earphone products and effectively saving the overall production and manufacturing of the earphone device. cost.
进一步地,基于上述本发明耳机的佩戴检测方法的第一实施例,提出本发明耳机的佩戴检测方法的第二实施例。Furthermore, based on the first embodiment of the earphone wearing detection method of the present invention, a second embodiment of the earphone wearing detection method of the present invention is proposed.
在本实施例中,本发明耳机的佩戴检测方法,还可以包括:In this embodiment, the earphone wearing detection method of the present invention may also include:
步骤A,获取所述耳机设备的使用数据,并根据所述使用数据确定所述第一耳机和所述第二耳机的相对姿态变化阈值范围。Step A: Obtain the usage data of the headset device, and determine the relative posture change threshold range of the first headset and the second headset based on the usage data.
在本实施例中,耳机设备通过获取相同类型的耳机设备在被用户进行佩戴使用过程中的使用数据,然后,通过解析该使用数据来计算确定出该耳机设备中第一耳机和第二耳机的相对姿态变化阈值范围,以用于该第一耳机和第二耳机各自基于自身的相对姿态变化量检测确定该第一耳机和第二耳机当前是否处于用户正常使用的佩戴姿态。In this embodiment, the headphone device obtains the usage data of the same type of headphone device when it is worn and used by the user, and then calculates and determines the number of the first headphone and the second headphone in the headphone device by parsing the usage data. The relative posture change threshold range is used for each of the first earphone and the second earphone to determine whether the first earphone and the second earphone are currently in a wearing posture normally used by the user based on their own relative posture change detection.
需要说明的是,在本实施例中,耳机设备可以在被用户佩戴使用的过程中,通过内部的轴向加速度传感器采集该耳机设备中第一耳机和第二耳机各自的使用数据,并将该使用数据关联存储在云端或者本地,如此,耳机设备在后续确定第一耳机和第二耳机的相对姿态变化阈值范围时,即可从本地直接获取到该耳机设备自身的使用数据,或者从云端直接获取到该耳机设备自身的使用数据和/或者该耳机设备相同类型的其它耳机设备的使用数据。It should be noted that in this embodiment, when the headphone device is worn and used by the user, the usage data of the first earphone and the second earphone in the headphone device can be collected through the internal axial acceleration sensor, and the usage data of the first earphone and the second earphone can be collected. The usage data is associated and stored in the cloud or locally. In this way, when the headset device subsequently determines the relative posture change threshold range of the first headset and the second headset, it can directly obtain the usage data of the headset device itself from the local, or directly from the cloud. The usage data of the headphone device itself and/or the usage data of other headphone devices of the same type as the headphone device are obtained.
进一步地,所述使用数据包括:所述第一耳机和所述第二耳机的多个相 对姿态变化数据;在一种可行的实施例中,上述的步骤A,可以包括:Further, the usage data includes: multiple relative posture change data of the first earphone and the second earphone; in a feasible embodiment, the above step A may include:
步骤A1,针对所述使用数据进行解析以提取出所述第一耳机和所述第二耳机的所述多个相对姿态变化数据;Step A1: Analyze the usage data to extract the plurality of relative posture change data of the first earphone and the second earphone;
在本实施例中,耳机设备在获取得到被用户进行佩戴使用过程中的使用数据之后,进一步针对该使用数据进行解析以提取得到该使用数据当中所包含的该耳机设备当中第一耳机的多个相对姿态变化数据,和提取得到该使用数据当中所包含的该耳机设备当中第二耳机的多个相对姿态变化数据。In this embodiment, after the earphone device obtains the usage data during wearing and use by the user, the usage data is further parsed to extract a plurality of first earphones of the earphone device included in the usage data. Relative posture change data, and extracting a plurality of relative posture change data of the second earphone in the earphone device included in the usage data.
步骤A2,根据所述多个相对姿态变化数据进行计算以确定所述第一耳机和所述第二耳机的相对姿态变化阈值范围。Step A2: Calculate based on the plurality of relative posture change data to determine the relative posture change threshold range of the first earphone and the second earphone.
在本实施例中,耳机设备在进一步从获取到的使用数据当中提取到第一耳机和第二耳机各自的多个相对姿态变化数据之后,进一步针对该多个相对姿态变化数据进行加权平均的计算,从而确定出该第一耳机和第二耳机的相对姿态变化阈值范围,进而在后续可通过该相对姿态变化阈值范围,在耳机设备的第一耳机和/或者第二耳机检测到自身计算得到的相对姿态变化量是小于该第一耳机和第二耳机的相对姿态变化阈值范围时,立即确定在当前时刻耳机设备整体是处于用户正常的佩戴姿态,或者,在第一耳机和/或者第二耳机检测到该相对姿态变化量是大于或者等于该相对姿态变化阈值范围时,则立即确定在当前时刻耳机设备中第一耳机和/或者第二耳机是存在被用户进行摘下的动作中的。In this embodiment, after the headphone device further extracts multiple relative posture change data of the first earphone and the second earphone from the acquired usage data, it further performs a weighted average calculation on the multiple relative posture change data. , thereby determining the relative attitude change threshold range of the first earphone and the second earphone, and then using the relative attitude change threshold range, the calculated value can be calculated when the first earphone and/or the second earphone of the earphone device detects itself. When the relative posture change amount is less than the relative posture change threshold range of the first earphone and the second earphone, it is immediately determined that the entire headphone device is in the user's normal wearing posture at the current moment, or that the first earphone and/or the second earphone are in the user's normal wearing posture. When it is detected that the relative posture change amount is greater than or equal to the relative posture change threshold range, it is immediately determined that the first earphone and/or the second earphone in the earphone device at the current moment are being taken off by the user.
在本实施例中,通过耳机设备通过获取相同类型的耳机设备在被用户进行佩戴使用过程中的使用数据,然后,通过解析该使用数据来计算确定出该耳机设备中第一耳机和第二耳机的相对姿态变化阈值范围,以用于该第一耳机和第二耳机各自基于自身的相对姿态变化量检测确定该第一耳机和第二耳机当前是否处于用户正常使用的佩戴姿态。In this embodiment, the earphone device obtains the usage data of the same type of earphone device when it is worn and used by the user, and then analyzes the usage data to calculate and determine the first earphone and the second earphone in the earphone device. The relative posture change threshold range is used for each of the first earphone and the second earphone to determine whether the first earphone and the second earphone are currently in the wearing posture for normal use by the user based on their own relative posture change detection.
如此实现了耳机设备直接通过第一耳机和第二耳机各自的轴向加速度数据来检测确定耳机设备是否处于用户正常的佩戴姿势,不仅能够简化耳机设备对于佩戴检测的方案实现,还能够在极大程度上提高对耳机进行佩戴检测过程中对环境干扰的抵抗能力,确保耳机佩戴检测的性能稳定。In this way, the headset device can directly detect and determine whether the headset device is in the user's normal wearing posture through the respective axial acceleration data of the first earphone and the second earphone. This can not only simplify the implementation of the wearing detection solution for the headset device, but also greatly improve To a certain extent, the resistance to environmental interference during the earphone wearing detection process is improved, and the performance of the earphone wearing detection is ensured to be stable.
此外,通过耳机设备在用户实际佩戴使用中的使用数据来确定用于确定 佩戴姿态的相对姿态变化阈值范围,还能够避免人为设定阈值范围的不合理性,从而提升了佩戴检测的稳定性。In addition, the relative posture change threshold range used to determine the wearing posture can be determined through the usage data of the headset device when the user actually wears it. This can also avoid the unreasonableness of artificially setting the threshold range, thereby improving the stability of wearing detection.
此外,本发明实施例还提出一种耳机的佩戴检测装置,所述装置部署于上述各个实施例所涉及到的耳机设备,请参照图4,本发明耳机的佩戴检测装置包括:In addition, an embodiment of the present invention also proposes an earphone wearing detection device, which is deployed on the earphone equipment involved in each of the above embodiments. Please refer to Figure 4. The earphone wearing detection device of the present invention includes:
检测模块10,用于检测所述第一耳机和所述第二耳机各自的轴向加速度数据;The detection module 10 is used to detect the respective axial acceleration data of the first earphone and the second earphone;
计算模块20,用于根据所述轴向加速度数据计算所述第一耳机和所述第二耳机的相对姿态变化量; Calculation module 20, configured to calculate the relative posture change of the first earphone and the second earphone according to the axial acceleration data;
确定模块30,用于根据所述相对姿态变化量确定所述耳机设备是否处于佩戴姿态。The determination module 30 is configured to determine whether the headphone device is in a wearing posture according to the relative posture change.
可选地,确定模块30,包括:Optionally, the determining module 30 includes:
检测单元,用于获取所述第一耳机和所述第二耳机的相对姿态变化阈值范围,并检测所述相对姿态变化量是否超过所述相对姿态变化阈值范围;A detection unit configured to obtain a relative attitude change threshold range of the first earphone and the second earphone, and detect whether the relative attitude change amount exceeds the relative attitude change threshold range;
第一确定单元,用于若所述检测单元检测到是,则确定所述耳机设备处于所述佩戴姿态;A first determination unit, configured to determine that the headphone device is in the wearing posture if the detection unit detects yes;
第二确定单元,用于若所述检测单元检测到否,则确定所述耳机设备不处于所述佩戴姿态。The second determination unit is configured to determine that the headphone device is not in the wearing posture if the detection unit detects no.
可选地,本发明耳机的佩戴检测装置的确定模块30,还用于获取所述耳机设备的使用数据,并根据所述使用数据确定所述第一耳机和所述第二耳机的相对姿态变化阈值范围。Optionally, the determination module 30 of the earphone wearing detection device of the present invention is also used to obtain the usage data of the earphone device, and determine the relative posture changes of the first earphone and the second earphone based on the usage data. threshold range.
可选地,所述使用数据包括:所述第一耳机和所述第二耳机的多个相对姿态变化数据;确定模块30还包括:Optionally, the usage data includes: multiple relative posture change data of the first earphone and the second earphone; the determination module 30 further includes:
解析单元,用于针对所述使用数据进行解析以提取出所述第一耳机和所述第二耳机的所述多个相对姿态变化数据;An analysis unit configured to analyze the usage data to extract the plurality of relative posture change data of the first earphone and the second earphone;
第三确定单元,用于根据所述多个相对姿态变化数据进行计算以确定所述第一耳机和所述第二耳机的相对姿态变化阈值范围。A third determination unit configured to perform calculations based on the plurality of relative posture change data to determine the relative posture change threshold range of the first earphone and the second earphone.
可选地,本发明耳机的佩戴检测装置的确定模块30,还用于确定所述第一耳机和所述第二耳机各自的轴向加速度变化率;以及,根据所述轴向加速 度变化率确定所述第一耳机和所述第二耳机中被摘下的目标耳机。Optionally, the determination module 30 of the earphone wearing detection device of the present invention is also used to determine the respective axial acceleration change rates of the first earphone and the second earphone; and, determine based on the axial acceleration change rate. The target earphone that is removed from the first earphone and the second earphone.
可选地,检测模块10,还用于检测所述第一耳机和所述第二耳机各自X轴、Y轴和Z轴的轴向加速度数据,其中,所述X轴、Y轴和Z轴互相垂直。Optionally, the detection module 10 is also used to detect the axial acceleration data of the X-axis, Y-axis and Z-axis of the first earphone and the second earphone, wherein the X-axis, Y-axis and Z-axis Perpendicular to each other.
可选地,计算模块20,还用于将所述第一耳机的轴向加速度数据与所述第二耳机的轴向加速度数据进行减法计算,以得到所述第一耳机和所述第二耳机在所述X轴、所述Y轴和所述Z轴对应方位上的相对姿态变化量。Optionally, the calculation module 20 is also used to perform subtraction calculations on the axial acceleration data of the first earphone and the axial acceleration data of the second earphone to obtain the first earphone and the second earphone. The relative attitude changes in the corresponding directions of the X-axis, the Y-axis and the Z-axis.
本发明耳机的佩戴检测装置的具体实施方式的拓展内容与上述耳机的佩戴检测方法各实施例基本相同,在此不做赘述。The expanded content of the specific implementation of the earphone wearing detection device of the present invention is basically the same as the above embodiments of the earphone wearing detection method, and will not be described again here.
此外,本发明实施例还提出一种耳机设备,该耳机设备包括第一耳机和第二耳机,本发明耳机设备的第一耳机和第二耳机各自包括结构壳体、通信模块、主控模块(例如微控制单元MCU)、扬声器、麦克风、存储器等。主控模块可包含微处理器、音频解码单元、电源及电源管理单元、***所需的传感器和其他有源或无源器件等(可以根据实际功能进行更换、删减或增加),实现无线音频的接收与播放功能。In addition, embodiments of the present invention also provide an earphone device, which includes a first earphone and a second earphone. The first earphone and the second earphone of the earphone device of the present invention each include a structural housing, a communication module, and a main control module ( Such as micro control unit (MCU), speakers, microphones, memory, etc. The main control module can include a microprocessor, audio decoding unit, power supply and power management unit, sensors required by the system and other active or passive components (which can be replaced, deleted or added according to the actual functions) to realize wireless audio reception and playback functions.
本发明耳机设备可以通过通信模块与用户的移动终端建立通信连接。耳机设备的存储器中可以存储有耳机的佩戴检测程序,该耳机的佩戴检测程序可以被耳机设备中的微处理器调用并执行以下操作:The earphone device of the present invention can establish a communication connection with the user's mobile terminal through the communication module. The earphone wearing detection program can be stored in the memory of the earphone device. The earphone wearing detection program can be called by the microprocessor in the earphone device and perform the following operations:
检测所述第一耳机和所述第二耳机各自的轴向加速度数据;Detecting respective axial acceleration data of the first earphone and the second earphone;
根据所述轴向加速度数据计算所述第一耳机和所述第二耳机的相对姿态变化量;Calculate the relative attitude change of the first earphone and the second earphone according to the axial acceleration data;
根据所述相对姿态变化量确定所述耳机设备是否处于佩戴姿态。Determine whether the headphone device is in a wearing posture according to the relative posture change amount.
可选地,所述根据所述相对姿态变化量确定所述耳机设备是否处于佩戴姿态的步骤包括:Optionally, the step of determining whether the headphone device is in a wearing posture according to the relative posture change includes:
获取所述第一耳机和所述第二耳机的相对姿态变化阈值范围,并检测所述相对姿态变化量是否超过所述相对姿态变化阈值范围;Obtain the relative attitude change threshold range of the first earphone and the second earphone, and detect whether the relative attitude change amount exceeds the relative attitude change threshold range;
若是,则确定所述耳机设备处于所述佩戴姿态;If so, it is determined that the headphone device is in the wearing posture;
若否,则确定所述耳机设备不处于所述佩戴姿态。If not, it is determined that the headphone device is not in the wearing posture.
可选地,所述方法还包括:Optionally, the method also includes:
获取所述耳机设备的使用数据,并根据所述使用数据确定所述第一耳机 和所述第二耳机的相对姿态变化阈值范围。Usage data of the earphone device is obtained, and a relative posture change threshold range of the first earphone and the second earphone is determined based on the usage data.
可选地,所述使用数据包括:所述第一耳机和所述第二耳机的多个相对姿态变化数据;Optionally, the usage data includes: multiple relative posture change data of the first earphone and the second earphone;
所述根据所述使用数据确定所述第一耳机和所述第二耳机的相对姿态变化阈值范围的步骤,包括:The step of determining the relative posture change threshold range of the first earphone and the second earphone according to the usage data includes:
针对所述使用数据进行解析以提取出所述第一耳机和所述第二耳机的所述多个相对姿态变化数据;Analyze the usage data to extract the plurality of relative posture change data of the first earphone and the second earphone;
根据所述多个相对姿态变化数据进行计算以确定所述第一耳机和所述第二耳机的相对姿态变化阈值范围。Calculation is performed based on the plurality of relative posture change data to determine a relative posture change threshold range of the first earphone and the second earphone.
可选地,在确定所述耳机设备不处于所述佩戴姿态的步骤之后,所述方法还包括:Optionally, after determining that the headphone device is not in the wearing posture, the method further includes:
确定所述第一耳机和所述第二耳机各自的轴向加速度变化率;Determining the respective axial acceleration change rates of the first earphone and the second earphone;
根据所述轴向加速度变化率确定所述第一耳机和所述第二耳机中被摘下的目标耳机。The removed target earphone among the first earphone and the second earphone is determined according to the axial acceleration change rate.
可选地,所述检测所述第一耳机和所述第二耳机各自的轴向加速度数据的步骤包括:Optionally, the step of detecting the respective axial acceleration data of the first earphone and the second earphone includes:
检测所述第一耳机和所述第二耳机各自X轴、Y轴和Z轴的轴向加速度数据,其中,所述X轴、Y轴和Z轴互相垂直。Axial acceleration data of the X-axis, Y-axis and Z-axis of each of the first earphone and the second earphone are detected, wherein the X-axis, Y-axis and Z-axis are perpendicular to each other.
可选地,所述根据所述轴向加速度数据计算所述第一耳机和所述第二耳机的相对姿态变化量的步骤包括:Optionally, the step of calculating the relative posture change of the first earphone and the second earphone based on the axial acceleration data includes:
将所述第一耳机的轴向加速度数据与所述第二耳机的轴向加速度数据进行减法计算,以得到所述第一耳机和所述第二耳机在所述X轴、所述Y轴和所述Z轴对应方位上的相对姿态变化量。The axial acceleration data of the first earphone and the axial acceleration data of the second earphone are subtracted to obtain the relationship between the first earphone and the second earphone on the X axis, the Y axis and The Z-axis corresponds to the relative attitude change in the orientation.
此外,本发明还提出一种计算机可读存储介质,该计算机可读存储介质上存储有耳机的佩戴检测程序,该耳机的佩戴检测程序被处理器执行时实现如上所述本发明耳机的佩戴检测方法的步骤。In addition, the present invention also proposes a computer-readable storage medium. The computer-readable storage medium stores an earphone wearing detection program. When the earphone wearing detection program is executed by the processor, the earphone wearing detection of the present invention is implemented as described above. Method steps.
本发明耳机设备和计算机可读存储介质的各实施例,均可参照本发明耳机的佩戴检测方法各个实施例,此处不再赘述。For various embodiments of the earphone device and the computer-readable storage medium of the present invention, reference can be made to the various embodiments of the earphone wearing detection method of the present invention, which will not be described again here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above serial numbers of the embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or the part that contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and do not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the description and drawings of the present invention may be directly or indirectly used in other related technical fields. , are all similarly included in the scope of patent protection of the present invention.

Claims (10)

  1. 一种耳机的佩戴检测方法,其特征在于,所述方法应用于耳机设备,所述耳机设备包括第一耳机和第二耳机,所述方法包括:A method for detecting wearing of earphones, characterized in that the method is applied to an earphone device, the earphone device includes a first earphone and a second earphone, and the method includes:
    检测所述第一耳机和所述第二耳机各自的轴向加速度数据;Detecting respective axial acceleration data of the first earphone and the second earphone;
    根据所述轴向加速度数据计算所述第一耳机和所述第二耳机的相对姿态变化量;Calculate the relative attitude change of the first earphone and the second earphone according to the axial acceleration data;
    根据所述相对姿态变化量确定所述耳机设备是否处于佩戴姿态。Determine whether the headphone device is in a wearing posture according to the relative posture change amount.
  2. 如权利要求1所述的耳机的佩戴检测方法,其特征在于,所述根据所述相对姿态变化量确定所述耳机设备是否处于佩戴姿态的步骤包括:The earphone wearing detection method according to claim 1, wherein the step of determining whether the earphone device is in a wearing posture according to the relative posture change includes:
    获取所述第一耳机和所述第二耳机的相对姿态变化阈值范围,并检测所述相对姿态变化量是否超过所述相对姿态变化阈值范围;Obtain the relative attitude change threshold range of the first earphone and the second earphone, and detect whether the relative attitude change amount exceeds the relative attitude change threshold range;
    若是,则确定所述耳机设备处于所述佩戴姿态;If so, it is determined that the headphone device is in the wearing posture;
    若否,则确定所述耳机设备不处于所述佩戴姿态。If not, it is determined that the headphone device is not in the wearing posture.
  3. 如权利要求1或者2任一项所述的耳机的佩戴检测方法,其特征在于,所述方法还包括:The earphone wearing detection method according to any one of claims 1 or 2, characterized in that the method further includes:
    获取所述耳机设备的使用数据,并根据所述使用数据确定所述第一耳机和所述第二耳机的相对姿态变化阈值范围。Usage data of the earphone device is obtained, and a relative posture change threshold range of the first earphone and the second earphone is determined based on the usage data.
  4. 如权利要求3所述的耳机的佩戴检测方法,其特征在于,所述使用数据包括:所述第一耳机和所述第二耳机的多个相对姿态变化数据;The earphone wearing detection method according to claim 3, wherein the usage data includes: a plurality of relative posture change data of the first earphone and the second earphone;
    所述根据所述使用数据确定所述第一耳机和所述第二耳机的相对姿态变化阈值范围的步骤,包括:The step of determining the relative posture change threshold range of the first earphone and the second earphone according to the usage data includes:
    针对所述使用数据进行解析以提取出所述第一耳机和所述第二耳机的所述多个相对姿态变化数据;Analyze the usage data to extract the plurality of relative posture change data of the first earphone and the second earphone;
    根据所述多个相对姿态变化数据进行计算以确定所述第一耳机和所述第二耳机的相对姿态变化阈值范围。Calculation is performed based on the plurality of relative posture change data to determine a relative posture change threshold range of the first earphone and the second earphone.
  5. 如权利要求2所述的耳机的佩戴检测方法,其特征在于,在确定所述耳机设备不处于所述佩戴姿态的步骤之后,所述方法还包括:The earphone wearing detection method according to claim 2, characterized in that, after the step of determining that the earphone device is not in the wearing posture, the method further includes:
    确定所述第一耳机和所述第二耳机各自的轴向加速度变化率;Determining the respective axial acceleration change rates of the first earphone and the second earphone;
    根据所述轴向加速度变化率确定所述第一耳机和所述第二耳机中被摘下的目标耳机。The removed target earphone among the first earphone and the second earphone is determined according to the axial acceleration change rate.
  6. 如权利要求1所述的耳机的佩戴检测方法,其特征在于,所述检测所述第一耳机和所述第二耳机各自的轴向加速度数据的步骤包括:The earphone wearing detection method according to claim 1, wherein the step of detecting the respective axial acceleration data of the first earphone and the second earphone includes:
    检测所述第一耳机和所述第二耳机各自X轴、Y轴和Z轴的轴向加速度数据,其中,所述X轴、Y轴和Z轴互相垂直。Axial acceleration data of the X-axis, Y-axis and Z-axis of each of the first earphone and the second earphone are detected, wherein the X-axis, Y-axis and Z-axis are perpendicular to each other.
  7. 如权利要求6所述的耳机的佩戴检测方法,其特征在于,所述根据所述轴向加速度数据计算所述第一耳机和所述第二耳机的相对姿态变化量的步骤包括:The earphone wearing detection method according to claim 6, wherein the step of calculating the relative posture change of the first earphone and the second earphone according to the axial acceleration data includes:
    将所述第一耳机的轴向加速度数据与所述第二耳机的轴向加速度数据进行减法计算,以得到所述第一耳机和所述第二耳机在所述X轴、所述Y轴和所述Z轴对应方位上的相对姿态变化量。The axial acceleration data of the first earphone and the axial acceleration data of the second earphone are subtracted to obtain the relationship between the first earphone and the second earphone on the X axis, the Y axis and The Z-axis corresponds to the relative attitude change in the orientation.
  8. 一种耳机的佩戴检测装置,其特征在于,所述装置应用于耳机设备,所述耳机设备包括第一耳机和第二耳机,所述装置包括:An earphone wearing detection device, characterized in that the device is applied to an earphone device, the earphone device includes a first earphone and a second earphone, and the device includes:
    检测模块,用于检测所述第一耳机和所述第二耳机各自的轴向加速度数据;A detection module for detecting the respective axial acceleration data of the first earphone and the second earphone;
    计算模块,用于根据所述轴向加速度数据计算所述第一耳机和所述第二耳机的相对姿态变化量;A calculation module configured to calculate the relative posture change of the first earphone and the second earphone according to the axial acceleration data;
    确定模块,用于根据所述相对姿态变化量确定所述耳机设备是否处于佩戴姿态。Determining module, configured to determine whether the headphone device is in a wearing posture according to the relative posture change.
  9. 一种耳机设备,其特征在于,所述耳机设备包括:存储器、处理器及 存储在所述存储器上并可在所述处理器上运行的耳机的佩戴检测程序,所述耳机的佩戴检测程序被所述处理器执行时实现如权利要求1至7中任一项所述的耳机的佩戴检测方法的步骤。An earphone device, characterized in that the earphone device includes: a memory, a processor, and an earphone wearing detection program stored in the memory and executable on the processor, and the earphone wearing detection program is When executed by the processor, the steps of implementing the earphone wearing detection method according to any one of claims 1 to 7 are implemented.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有耳机的佩戴检测程序,所述耳机的佩戴检测程序被处理器执行时实现如权利要求1至7中任一项所述的耳机的佩戴检测方法的步骤。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a headphone wearing detection program, and when the headphone wearing detection program is executed by a processor, it implements any one of claims 1 to 7 The steps of the earphone wearing detection method described in the item.
PCT/CN2022/102552 2022-03-30 2022-06-29 Earphone wearing detection method and apparatus, earphone device, and storage medium WO2023184761A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210325585.9A CN114513722A (en) 2022-03-30 2022-03-30 Wearing detection method and device for earphone, earphone equipment and storage medium
CN202210325585.9 2022-03-30

Publications (1)

Publication Number Publication Date
WO2023184761A1 true WO2023184761A1 (en) 2023-10-05

Family

ID=81554893

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/102552 WO2023184761A1 (en) 2022-03-30 2022-06-29 Earphone wearing detection method and apparatus, earphone device, and storage medium

Country Status (2)

Country Link
CN (1) CN114513722A (en)
WO (1) WO2023184761A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114513722A (en) * 2022-03-30 2022-05-17 歌尔股份有限公司 Wearing detection method and device for earphone, earphone equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070103938A (en) * 2006-04-20 2007-10-25 삼성전자주식회사 Headset device capable of vital-sign measurement and method of measuring vital sign using the headset device
CN104507004A (en) * 2014-11-28 2015-04-08 上海斐讯数据通信技术有限公司 Player control method, player and earphones
CN108966087A (en) * 2018-07-26 2018-12-07 歌尔科技有限公司 A kind of wear condition detection method, device and the wireless headset of wireless headset
CN109151694A (en) * 2017-06-15 2019-01-04 上海真曦通信技术有限公司 A kind of electronic system for test earphone produce agaric
CN114513722A (en) * 2022-03-30 2022-05-17 歌尔股份有限公司 Wearing detection method and device for earphone, earphone equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361985B (en) * 2018-12-07 2020-07-21 潍坊歌尔电子有限公司 TWS earphone wearing detection method and system, electronic device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070103938A (en) * 2006-04-20 2007-10-25 삼성전자주식회사 Headset device capable of vital-sign measurement and method of measuring vital sign using the headset device
CN104507004A (en) * 2014-11-28 2015-04-08 上海斐讯数据通信技术有限公司 Player control method, player and earphones
CN109151694A (en) * 2017-06-15 2019-01-04 上海真曦通信技术有限公司 A kind of electronic system for test earphone produce agaric
CN108966087A (en) * 2018-07-26 2018-12-07 歌尔科技有限公司 A kind of wear condition detection method, device and the wireless headset of wireless headset
CN114513722A (en) * 2022-03-30 2022-05-17 歌尔股份有限公司 Wearing detection method and device for earphone, earphone equipment and storage medium

Also Published As

Publication number Publication date
CN114513722A (en) 2022-05-17

Similar Documents

Publication Publication Date Title
WO2021013137A1 (en) Voice wake-up method and electronic device
US9374647B2 (en) Method and apparatus using head movement for user interface
US11019421B2 (en) Method for detecting wearing of acoustic device and acoustic device supporting the same
CN109511037B (en) Earphone volume adjusting method and device and computer readable storage medium
CN109040887A (en) Principal and subordinate's earphone method for handover control and Related product
US11736851B2 (en) Wireless playback device, and playback control method and apparatus thereof
CN107231473B (en) Audio output regulation and control method, equipment and computer readable storage medium
EP3067782B1 (en) Information processing apparatus, control method, and program
US11811586B2 (en) Method and apparatus for configuring alarm rule of IoT device, device, and storage
CN109195058B (en) Earphone sound channel switching method, earphone sound channel switching device, terminal and storage medium
CN110059590B (en) Face living experience authentication method and device, mobile terminal and readable storage medium
CN107360318B (en) Voice noise reduction method and device, mobile terminal and computer readable storage medium
US10681451B1 (en) On-body detection of wearable devices
WO2021109931A1 (en) Touch control method and wearable device
WO2023184761A1 (en) Earphone wearing detection method and apparatus, earphone device, and storage medium
WO2020025034A1 (en) Master/slave switching method for wearable apparatus and related product
US11265639B2 (en) Method for earbud switching, wearable device, and storage medium
WO2021103261A1 (en) Method for detecting retrieval or replacement of headphones in case, electronic device, and headphone assembly
CN113596657A (en) Earphone in-ear detection method, terminal and computer readable storage medium
WO2017031647A1 (en) Method and apparatus for detecting touch mode
CN109039355B (en) Voice prompt method and related product
CN105812585A (en) Method for switching conversation modes and mobile terminal
WO2022057365A1 (en) Noise reduction method, terminal device, and computer readable storage medium
CN108827338B (en) Voice navigation method and related product
CN113099347A (en) Earphone control method, earphone control device, wireless earphone and storage medium

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: 22934584

Country of ref document: EP

Kind code of ref document: A1