Earphone Wearing Detection Method, Device, Headset, and Readable Storage Medium
By setting a head circumference detection unit in the headset, we can determine whether the wearer is an infant or a child, and perform audio adjustment operations when judging it as an infant, the problem of difficulty in detecting and protecting the hearing of infant or a child in the prior art is solved, and safe detection and protection of infant or a child’s headset wearing is realized.
Patent Information
- Application Number
- CN202211170795.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-26
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2042-09-26
AI Technical Summary
The existing headphone wear detection methods are difficult to detect the headphone wear of infants and young children, and cannot effectively prevent infants and young children from wearing high-volume earphones.
By setting a head circumference detection unit in the headset, the head circumference information of the wearer is obtained, and the information is determined whether it is an infant or a child. If so, a preset audio adjustment operation is performed, such as reducing the volume or turning off audio playback.
The headphone wear detection of infants and young children is realized. The preset audio adjustment operation avoids the hearing loss caused by wearing earphones, and ensures the hearing safety of infants and young children.
Smart Images

Figure CN115426577B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of headphones, and particularly to a method and device for detecting headphone wearing, a head-mounted headphone, and a readable storage medium. Background Art
[0002] With the development of the consumer electronics industry, various consumer electronic products emerge in an endless stream, and head-mounted headphones, as a commonly used electronic product, are used more and more widely in users' lives. Infants and young children have a strong curiosity and imitation ability for unknown things, and in families with infants and young children, there will be situations where infants and young children wear head-mounted headphones on their heads. However, the hearing system of infants and young children has not yet developed completely and is relatively fragile compared to adults. If the volume of the headphones is too large, it will cause hearing damage after infants and young children wear them. The existing headphone wearing detection methods only consider whether someone is wearing the headphones, and it is difficult to detect whether infants and young children are wearing the headphones. Summary of the Invention
[0003] The main purpose of the present invention is to provide a method for detecting headphone wearing, aiming to solve the technical problem that it is difficult for the existing headphone wearing detection methods to detect whether infants and young children are wearing the headphones.
[0004] To achieve the above object, the present invention provides a method for detecting headphone wearing, and the method for detecting headphone wearing includes the following steps:
[0005] Applied to a head-mounted headphone, the method for detecting headphone wearing includes the following steps:
[0006] Obtain the first head circumference information of the wearing user;
[0007] According to the first head circumference information, determine whether the wearing user is an infant or young child;
[0008] If the wearing user is an infant or young child, perform a preset audio adjustment operation.
[0009] Optionally, a head circumference detection unit is provided on the head-mounted headphone, and the step of obtaining the first head circumference information of the wearing user includes:
[0010] When there is a wearing user on the head-mounted headphone, detect the opening degree of the head-mounted headphone through the head circumference detection unit to obtain a first detection value;
[0011] Take the first detection value as the first head circumference information of the wearing user.
[0012] Optionally, the step of determining whether the wearing user is an infant or young child according to the first head circumference information includes:
[0013] Determine whether the first absolute value of the difference between the first detected value and the preset reference value is less than the preset detection threshold;
[0014] If the first absolute value is less than the preset detection threshold, determine that the wearing user is an infant;
[0015] If the first absolute value is not less than the preset detection threshold, determine that the wearing user is not an infant.
[0016] Optionally, the head circumference detection unit is a capacitive sensor, a resistive sensor or a pressure sensor.
[0017] Optionally, before the step of performing the preset audio adjustment operation, the wearing detection method further includes:
[0018] Obtain a first user image of the wearing user, and perform feature extraction on the first user image to obtain first user features;
[0019] When the first user features match the pre-stored infant features, perform the step: perform the preset audio adjustment operation.
[0020] Optionally, after the step of obtaining the first user image of the wearing user and performing feature extraction on the first user image to obtain first user features, it includes:
[0021] When the first user features do not match the pre-stored infant features, reduce the audio volume of the head-mounted earphone;
[0022] Obtain second head circumference information of the wearing user, and determine a second absolute value of the difference between a second detected value in the second head circumference information and the preset reference value;
[0023] Obtain a second user image of the wearing user, and perform feature extraction on the second user image to obtain second user features;
[0024] If the second absolute value is less than the preset detection threshold, and / or the second user features match the pre-stored infant features, perform the step: perform the preset audio adjustment operation;
[0025] If the second absolute value is not less than the preset detection threshold, and the second user features do not match the pre-stored infant features, restore the audio volume of the head-mounted earphone.
[0026] Optionally, the preset audio adjustment operation includes turning off audio playback, enabling audio mute or reducing the audio volume.
[0027] In addition, to achieve the above object, the present invention also provides a headphone wearing detection device, and the headphone wearing detection device includes:
[0028] An acquisition module, configured to acquire first head circumference information of a wearing user;
[0029] A judgment module, configured to judge whether the wearing user is an infant according to the first head circumference information;
[0030] An execution module, configured to perform a preset audio adjustment operation if the wearing user is an infant.
[0031] In addition, to achieve the above object, the present invention further provides a head-mounted earphone, where the head-mounted earphone includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the earphone wearing detection method as described above are implemented.
[0032] In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, where a earphone wearing detection program is stored on the computer-readable storage medium, and when the earphone wearing detection program is executed by a processor, the steps of the earphone wearing detection method as described in any one of the above are implemented.
[0033] A earphone wearing detection method, device, head-mounted earphone and computer-readable storage medium provided by the present invention can acquire first head circumference information of a wearing user. Since there are obvious differences between the head circumferences of adults and infants, it is possible to judge whether the wearing user is an infant according to the first head circumference information. If the wearing user is an infant, a preset audio adjustment operation is performed. Thus, damage to the hearing of infants caused by excessive volume is avoided. In this embodiment, whether the wearing user is an infant is determined through the first head circumference information of the wearing user, so as to realize the earphone wearing detection of infants, and the hearing damage to infants is avoided through the preset audio adjustment operation. Description of the Drawings
[0034] Figure 1 It is a schematic diagram of the device structure of the hardware operating environment related to the solution of the embodiment of the present invention;
[0035] Figure 2 It is a schematic flowchart of the first embodiment of the earphone wearing detection method of the present invention;
[0036] Figure 3 It is a schematic flowchart of the second embodiment of the earphone wearing detection method of the present invention;
[0037] Figure 4 It is a schematic flowchart of the third embodiment of the earphone wearing detection method of the present invention;
[0038] Figure 5 It is a schematic diagram of the structure of the earphone wearing detection device of the present invention.
[0039] The implementation, functional features and advantages of the present invention will be further described with reference to the embodiments and the accompanying drawings. Detailed implementation manners
[0040] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0041] It should be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention.
[0042] As Figure 1 shown, Figure 1 is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment solution of the present invention.
[0043] As Figure 1 shown, the head-mounted earphone may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a touch screen or a keyboard (Keyboard). Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (Non-Volatile Memory), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the foregoing processor 1001.
[0044] Those skilled in the art can understand that Figure 1 the structure shown in
[0045] As Figure 1 shown, the memory 1005, as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an earphone wearing detection application program.
[0046] In Figure 1In the device shown, the processor 1001 can be used to call the headphone wearing detection application program stored in the memory 1005 and perform the following operations:
[0047] Obtain the first head circumference information of the wearing user;
[0048] Based on the first head circumference information, determine whether the wearing user is an infant;
[0049] If the wearing user is an infant, perform a preset audio adjustment operation.
[0050] Furthermore, the processor 1001 can also be used to call the headphone wearing detection application program stored in the memory 1005 and perform the following operations:
[0051] When there is a wearing user on the head-mounted headphones, detect the opening degree of the head-mounted headphones through the head circumference detection unit to obtain a first detection value;
[0052] Take the first detection value as the first head circumference information of the wearing user.
[0053] Furthermore, the processor 1001 can also be used to call the headphone wearing detection application program stored in the memory 1005 and perform the following operations:
[0054] Judge whether the first absolute value of the difference between the first detection value and a preset reference value is less than a preset detection threshold;
[0055] If the first absolute value is less than the preset detection threshold, determine that the wearing user is an infant;
[0056] If the first absolute value is not less than the preset detection threshold, determine that the wearing user is not an infant.
[0057] Optionally, the head circumference detection unit is a capacitive sensor, a resistive sensor or a pressure sensor.
[0058] Furthermore, the processor 1001 can also be used to call the headphone wearing detection application program stored in the memory 1005 and perform the following operations:
[0059] Obtain the first user image of the wearing user and perform feature extraction on the first user image to obtain the first user feature;
[0060] When the first user feature matches the pre-stored infant features, perform the steps: perform a preset audio adjustment operation.
[0061] Furthermore, the processor 1001 can also be used to call the headphone wearing detection application program stored in the memory 1005 and perform the following operations:
[0062] When the first user feature does not match the pre-stored infant feature, reduce the audio volume of the head-mounted earphone;
[0063] Obtain the second head circumference information of the wearing user, and determine the second absolute value of the difference between the second detection value and the preset reference value in the second head circumference information;
[0064] Obtain the second user image of the wearing user, and perform feature extraction on the second user image to obtain the second user feature;
[0065] If the second absolute value is less than the preset detection threshold, and / or the second user feature matches the pre-stored infant feature, perform the steps: perform a preset audio adjustment operation;
[0066] If the second absolute value is not less than the preset detection threshold, and the second user feature does not match the pre-stored infant feature, restore the audio volume of the head-mounted earphone.
[0067] Optionally, the preset audio adjustment operation includes turning off audio playback, enabling audio muting, or reducing the audio volume.
[0068] Refer to Figure 2 , Figure 2 is a schematic flowchart of the first embodiment of the earphone wearing detection method of the present invention.
[0069] The first embodiment of the present invention provides an earphone wearing detection method, which is applied to a head-mounted earphone. The earphone wearing detection method includes the following steps:
[0070] Step S100, obtain the first head circumference information of the wearing user;
[0071] Specifically, the first head circumference information includes a first detected value obtained by detecting the head circumference of the wearing user. Of course, it may also include a head circumference value calculated based on the first detected value. In this embodiment, the degree of opening of the head-mounted earphone can be detected by a sensor, and the detected value can be used as the first head circumference information of the wearing user to represent the head circumference of the wearing user. Of course, the detected value can also be converted to obtain the head circumference value of the wearing user. The head curve of the wearing user can also be detected by a sensor, and then the head circumference value of the wearing user can be determined based on the head curve. Exemplarily, the degree of opening of the head-mounted earphone can be detected by a sensor such as a capacitive sensor, a resistive sensor, or a pressure sensor, so that the head circumference of the wearing user can be directly represented by detecting the capacitance value, the resistance value, or the pressure value. In another example, a plurality of infrared sensors can be arranged on the side of the head-mounted earphone in contact with the skin, and the head curve of the wearing user can be fitted according to the distance information detected by the infrared sensors, and then the first head circumference information of the wearing user can be determined.
[0072] Further, a head circumference detection unit is provided on the head-mounted earphone. The step S100 of obtaining the first head circumference information of the wearing user includes:
[0073] Step S110, when there is a wearing user on the head-mounted earphone, detect the degree of opening of the head-mounted earphone through the head circumference detection unit to obtain a first detected value;
[0074] Step S120, use the first detected value as the first head circumference information of the wearing user.
[0075] In this embodiment, it should be noted that since the head-mounted earphone will open to a degree suitable for the user's head circumference when the user wears it. Therefore, the user's head circumference can be determined by detecting the degree of opening of the head-mounted earphone.
[0076] In addition, it should also be noted that in this embodiment, an infrared detection sensor can be arranged on the inner side of the ear cup of the head-mounted earphone, and whether there is a wearing user on the head-mounted earphone can be determined by the intensity of the infrared light radiated by the human body received by the infrared detection sensor. Or a pressure sensor can be arranged on the inner side of the ear cup of the head-mounted earphone, and whether there is a wearing user on the head-mounted earphone can be determined by the earphone pressure value received by the pressure sensor. In addition, whether there is a wearing user on the head-mounted earphone can also be determined by the capacitance difference between the real-time capacitance value of the capacitive sensor inside the head-mounted earphone and the reference capacitance value in the non-wearing state. In this embodiment, there is no limitation on the method for determining whether there is a wearing user on the head-mounted earphone.
[0077] Specifically, the head circumference detection unit is a capacitive sensor, a resistive sensor, or a pressure sensor. In this embodiment, when there is a user wearing the head-mounted earphone, the head circumference detection unit detects the opening degree of the head-mounted earphone to obtain a first detection value. Since there are obvious differences in the head circumferences between adults and infants, the first detection value when an infant wears the head-mounted earphone is significantly different from the first detection value when an adult wears the head-mounted earphone. Taking the capacitive sensor as an example of the head circumference detection unit, the capacitive sensor can be arranged on the U-shaped head-mounted body of the head-mounted earphone. When the opening degree of the U-shaped head-mounted body of the head-mounted earphone is different, the capacitance value of the capacitive sensor (i.e., the first detection value) also changes accordingly. Taking the capacitance value and the opening degree as being positively correlated as an example, the capacitance value detected by the capacitive sensor when an infant wears the head-mounted earphone will be lower than the capacitance value detected by the capacitive sensor when an adult wears the head-mounted earphone. Then, the first detection value can be used as the first head circumference information of the wearing user.
[0078] Step S200: According to the first head circumference information, determine whether the wearing user is an infant;
[0079] Specifically, the first head circumference information includes a first detection value. After obtaining the first head circumference information, the first absolute value of the difference between the first detection value and a preset reference value can be determined according to the first detection value. When the first absolute value is less than a preset detection threshold, it indicates that the opening degree of the head-mounted earphone changes less relative to the reference state (i.e., the state where the head-mounted earphone is not worn), and it can be determined that the wearing user is an infant. When the first absolute value is not less than the preset detection threshold, it indicates that the opening degree of the head-mounted earphone changes more relative to the reference state, and it can be determined that the wearing user is not an infant. Exemplarily, if the first detection value is positively correlated with the opening degree of the head-mounted earphone, it can be determined whether the first detection value is less than a preset head circumference threshold. If the first detection value is less than the preset head circumference threshold, it can be determined that the wearing user is an infant. If the first detection value is not less than the preset head circumference threshold, it can be determined that the wearing user is not an infant.
[0080] Among them, the step of step S200 of determining whether the wearing user is an infant according to the first head circumference information includes:
[0081] Step S210: Determine whether the first absolute value of the difference between the first detection value and the preset reference value is less than the preset detection threshold;
[0082] Step S211: If the first absolute value is less than the preset detection threshold, determine that the wearing user is an infant;
[0083] Step S212, if the first absolute value is not less than the preset detection threshold, it is determined that the wearing user is not an infant.
[0084] Specifically, the preset reference value is the detection value when the head-mounted earphone is in the reference state (i.e., the state where the head-mounted earphone is not worn). In this embodiment, it is determined whether the first absolute value of the difference between the first detection value and the preset reference value is less than the preset detection threshold. If the first absolute value is less than the preset detection threshold, it indicates that the opening degree of the head-mounted earphone changes less relative to the reference state, and it can be determined that the wearing user is an infant. If the first absolute value is not less than the preset detection threshold, it indicates that the opening degree of the head-mounted earphone changes more relative to the reference state, and it can be determined that the wearing user is not an infant.
[0085] Step S300, if the wearing user is an infant, perform a preset audio adjustment operation.
[0086] Specifically, the preset audio adjustment operation includes turning off audio playback, enabling audio muting, or reducing the audio volume.
[0087] Since the hearing system of infants is relatively fragile compared to that of adults, the volume that is relatively suitable for adults may be too loud for infants. And there may also be a situation where the volume becomes very large due to the accidental touch of the infant on the head-mounted earphone. Therefore, when the wearing user is an infant, preset audio adjustment operations such as turning off audio playback, enabling audio muting, or reducing the audio volume can be performed to avoid damage to the hearing of infants caused by excessive volume. Among them, the audio adjustment operation of turning off audio playback can be pausing the playback of the current audio of the head-mounted earphone or exiting the playback of the current audio of the head-mounted earphone; the audio adjustment operation of enabling audio muting can be lowering the audio volume of the current audio of the head-mounted earphone to zero; the audio adjustment operation of reducing the audio volume can be lowering the audio volume of the current audio of the head-mounted earphone to a preset low volume.
[0088] In the first embodiment of the present invention, a headphone wearing detection method is provided and applied to a head-mounted earphone. The first head circumference information of the wearing user can be obtained. Since there are obvious differences between the head circumferences of adults and infants, it can be determined whether the wearing user is an infant according to the first head circumference information. If the wearing user is an infant, perform a preset audio adjustment operation. Thus, damage to the hearing of infants caused by excessive volume is avoided. In this embodiment, whether the wearing user is an infant is determined through the first head circumference information of the wearing user, so as to realize the headphone wearing detection of infants, and the hearing damage to infants is avoided through the preset audio adjustment operation.
[0089] Further, referring to Figure 3 , a second embodiment of the present invention provides a method for detecting headphone wearing. Based on the above Figure 2 shown embodiment, in step S300, before the step of performing a preset audio adjustment operation, the headphone wearing detection method includes:
[0090] Step A10, obtaining a first user image of the wearing user, and performing feature extraction on the first user image to obtain a first user feature;
[0091] Step A20, when the first user feature matches the pre-stored infant feature, perform the steps: perform a preset audio adjustment operation.
[0092] In this embodiment, it should be noted that the pre-stored infant feature is the feature information of a pre-selected stored infant, such as facial feature information, body feature information, behavior feature information, etc. The pre-stored infant feature can be stored in the feature library of the head-mounted earphone.
[0093] The head-mounted earphone may be provided with a camera, and the wearing user is photographed through the camera to obtain a first user image of the wearing user. Exemplarily, the camera may be provided at the top or both sides of the U-shaped headband of the head-mounted earphone. Of course, it can be understood that for this embodiment, neither the setting position nor the number of cameras is limited. After obtaining the first user image of the wearing user, feature extraction can be performed through the first user image to obtain a first user feature, where the first user feature may include at least one of the facial features, body features, and behavior features of the wearing user. Then the first user feature is matched with the pre-stored infant feature. When the first user feature matches the pre-stored infant feature, the steps: perform a preset audio adjustment operation are executed. When the first user feature does not match the pre-stored infant feature, the steps: perform a preset audio adjustment operation may not be executed.
[0094] In this embodiment, on the basis of determining that the wearing user is an infant through the first head circumference information of the wearing user, a first user image of the wearing user is obtained, and feature extraction is performed on the first user image to obtain a first user feature. When the first user feature matches the pre-stored infant feature, the steps: perform a preset audio adjustment operation are further executed. Thereby, the accuracy of determining whether the wearing user is an infant can be effectively improved.
[0095] Further, referring to Figure 4 , a third embodiment of the present invention provides a method for detecting headphone wearing. Based on the above Figure 3In the illustrated embodiment, after the step of obtaining a first user image of the wearing user in step A10 and extracting features from the first user image to obtain first user features, the method includes:
[0096] Step B10, when the first user features do not match the pre-stored infant features, reducing the audio volume of the head-mounted earphone;
[0097] Step B20, obtaining second head circumference information of the wearing user and determining a second absolute value of a difference between a second detected value and a preset reference value in the second head circumference information;
[0098] Step B30, obtaining a second user image of the wearing user and extracting features from the second user image to obtain second user features;
[0099] Step B40, if the second absolute value is less than a preset detection threshold and / or the second user features match the pre-stored infant features, perform the step of performing a preset audio adjustment operation;
[0100] Step B50, if the second absolute value is not less than the preset detection threshold and the second user features do not match the pre-stored infant features, restoring the audio volume of the head-mounted earphone.
[0101] In this embodiment, when it is determined that the wearing user is an infant or toddler based on the first head circumference information of the wearing user, if the first user feature does not match the pre-stored infant or toddler feature, it indicates that the judgment results based on the first head circumference information and the first user feature are inconsistent at this time. Since the wearing user may be an infant or toddler at this time, the audio volume of the head-mounted earphone can be reduced to avoid damaging the hearing of the infant or toddler in the case where the wearing user is an infant or toddler. Then, detection is performed again. By obtaining the second head circumference information of the wearing user, and determining the second absolute value of the difference between the second detection value in the second head circumference information and the preset reference value. Obtain the second user image of the wearing user, and perform feature extraction on the second user image to obtain the second user feature. If the second absolute value is less than the preset detection threshold, and / or the second user feature matches the pre-stored infant or toddler feature, thus, in the second detection, based on at least one of the second absolute value and the second user feature, the judgment result is that the wearing user is an infant or toddler, indicating that the possibility that the wearing user is an infant or toddler is relatively high, then execute the steps: perform the preset audio adjustment operation. If the second absolute value is not less than the preset detection threshold, and the second user feature does not match the pre-stored infant or toddler feature, thus, in the second detection, based on the second absolute value and the second user feature, the judgment result is that the wearing user is not an infant or toddler, indicating that the determination that the first user feature does not match the pre-stored infant or toddler feature may be a misjudgment, then the audio volume of the head-mounted earphone can be restored to avoid affecting the normal use of adult users.
[0102] In this embodiment, when the first user feature does not match the pre-stored infant or toddler feature, the audio volume of the head-mounted earphone is reduced to avoid damaging the hearing of the infant or toddler in the case where the wearing user is an infant or toddler. Furthermore, through the second detection, the second absolute value of the difference between the second detection value in the second head circumference information and the preset reference value and the second user feature are determined. If the second absolute value is less than the preset detection threshold, and / or the second user feature matches the pre-stored infant or toddler feature, then execute the steps: perform the preset audio adjustment operation; if the second absolute value is not less than the preset detection threshold, and the second user feature does not match the pre-stored infant or toddler feature, then restore the audio volume of the head-mounted earphone. Thus, on the one hand, this embodiment avoids damaging the hearing of the wearing user who may be an infant or toddler, and on the other hand, it also improves the accuracy of determining whether the wearing user is an infant or toddler.
[0103] Further, referring to Figure 5 , Figure 5 is a schematic structural diagram of the earphone wearing detection device of the present invention.
[0104] The present invention also provides an earphone wearing detection device, and the earphone wearing detection device includes:
[0105] An acquisition module 10, configured to acquire first head circumference information of a wearing user;
[0106] A judgment module 20, configured to judge whether the wearing user is an infant according to the first head circumference information;
[0107] An execution module 30, configured to execute a preset audio adjustment operation if the wearing user is an infant.
[0108] Optionally, the acquisition module 10 is further configured to:
[0109] When there is a wearing user on the head-mounted earphone, detect the opening degree of the head-mounted earphone through the head circumference detection unit to obtain a first detection value;
[0110] Use the first detection value as the first head circumference information of the wearing user.
[0111] Optionally, the judgment module 20 is further configured to:
[0112] Judge whether a first absolute value of a difference between the first detection value and a preset reference value is less than a preset detection threshold;
[0113] If the first absolute value is less than the preset detection threshold, determine that the wearing user is an infant;
[0114] If the first absolute value is not less than the preset detection threshold, determine that the wearing user is not an infant.
[0115] Optionally, the head circumference detection unit is a capacitive sensor, a resistive sensor or a pressure sensor.
[0116] Furthermore, the earphone wearing detection device is further configured to:
[0117] Acquire a first user image of the wearing user, and perform feature extraction on the first user image to obtain a first user feature;
[0118] When the first user feature matches a pre-stored infant feature, perform the step of: executing a preset audio adjustment operation.
[0119] Furthermore, the earphone wearing detection device is further configured to:
[0120] When the first user feature does not match the pre-stored infant feature, reduce the audio volume of the head-mounted earphone;
[0121] Acquire second head circumference information of the wearing user, and determine a second absolute value of a difference between a second detection value in the second head circumference information and a preset reference value;
[0122] Obtain a second user image of the wearing user, and perform feature extraction on the second user image to obtain second user features;
[0123] If the second absolute value is less than a preset detection threshold, and / or the second user features match the pre-stored infant features, then perform the steps: perform a preset audio adjustment operation;
[0124] If the second absolute value is not less than the preset detection threshold, and the second user features do not match the pre-stored infant features, then restore the audio volume of the head-mounted earphone.
[0125] Further, the preset audio adjustment operation includes turning off audio playback, enabling audio muting, or reducing the audio volume.
[0126] In addition, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the operations in the headphone wearing detection method provided in the above embodiment. The specific steps are not elaborated here too much.
[0127] It should be noted that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. These three situations.
[0128] The terms "first" and "second" in the description and claims of the embodiments of the present invention are used to distinguish different objects, rather than to describe a specific order of the objects. For example, the first target object and the second target object are used to distinguish different target objects, rather than to describe the specific order of the target objects. The terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or system. Without further limitations, the element defined by the statement "including one..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0129] In the embodiments of the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present invention should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner.
[0130] In this text, relational terms such as first and second are only used to distinguish one entity / operation / object from another entity / operation / object, and do not necessarily require or imply any actual relationship or order between these entities / operation / objects. For apparatus embodiments, since they are basically similar to method embodiments, they are described relatively simply. For the relevant parts, refer to the partial description of the method embodiments. The apparatus embodiments described above are only illustrative. The units described as separate components may or may not be physically separated. Some or all of the modules in the [description] can be selected according to actual needs to achieve the purpose of the solution of the present invention. A person of ordinary skill in the art can understand and implement it without creative work.
[0131] The serial numbers of the above embodiments of the present invention are only for description and do not represent the superiority or inferiority of the embodiments.
[0132] Through the description of the above embodiments, those skilled in the art can clearly understand that the above method embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above and includes several instructions to enable a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0133] The above is only the preferred embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present invention.
Claims
1. A method for detecting earphone wearing, characterized in that, Applied to a head-mounted earphone, the earphone wearing detection method includes the following steps: Obtain the first head circumference information of the wearing user; Judge whether the wearing user is an infant according to the first head circumference information; If the wearing user is an infant, perform a preset audio adjustment operation, where the preset audio adjustment operation includes turning off audio playback, enabling audio mute, or reducing the audio volume; A head circumference detection unit is provided on the head-mounted earphone, and the step of obtaining the first head circumference information of the wearing user includes: When there is a wearing user on the head-mounted earphone, detect the opening degree of the head-mounted earphone through the head circumference detection unit to obtain a first detection value; Take the first detection value as the first head circumference information of the wearing user; Before the step of performing the preset audio adjustment operation, the wearing detection method further includes: Obtain the first user image of the wearing user, and perform feature extraction on the first user image to obtain a first user feature; If the wearing user is an infant, when the first user feature does not match the pre-stored infant feature, reduce the audio volume of the head-mounted earphone; Perform a second detection to determine the second absolute value of the difference between the second detection value in the second user feature and the second head circumference information and a preset reference value; If the second absolute value is not less than a preset detection threshold and the second user feature does not match the pre-stored infant feature, restore the audio volume of the head-mounted earphone.
2. The headphone wearing detection method according to claim 1, wherein, The step of judging whether the wearing user is an infant according to the first head circumference information includes: Judge whether the first absolute value of the difference between the first detection value and a preset reference value is less than a preset detection threshold; If the first absolute value is less than a preset detection threshold, determine that the wearing user is an infant; If the first absolute value is not less than a preset detection threshold, determine that the wearing user is not an infant.
3. The earphone wearing detection method according to claim 1, characterized in that, The head circumference detection unit is a capacitive sensor, a resistive sensor, or a pressure sensor.
4. The earphone wearing detection method according to claim 1, wherein, Before the step of obtaining the first user image of the wearing user and performing feature extraction on the first user image to obtain a first user feature, the wearing detection method further includes: When the first user feature matches the pre-stored infant feature, perform the step: perform a preset audio adjustment operation.
5. The headphone wearing detection method according to claim 4, wherein After the step of performing the second detection to determine the second absolute value of the difference between the second detection value in the second user feature and the second head circumference information and a preset reference value, it includes: Obtain the second head circumference information of the wearing user, and determine the second absolute value of the difference between the second detection value in the second head circumference information and a preset reference value; Obtain the second user image of the wearing user, and perform feature extraction on the second user image to obtain a second user feature; After the step of performing the second detection to determine the second absolute value of the difference between the second detection value in the second user feature and the second head circumference information and a preset reference value, it further includes: If the second absolute value is less than a preset detection threshold, and / or the second user feature matches the pre-stored infant feature, perform the step: perform a preset audio adjustment operation.
6. An earphone wearing detection device, characterized in that, The headphone wearing detection device includes: An acquisition module, configured to acquire first head circumference information of a wearing user; A judgment module, configured to judge whether the wearing user is an infant according to the first head circumference information; An execution module, configured to perform a preset audio adjustment operation if the wearing user is an infant, where the preset audio adjustment operation includes turning off audio playback, enabling audio mute, or reducing audio volume; A head circumference detection unit is provided on the head-mounted headphone, and the acquisition module is further configured to: When there is a wearing user on the head-mounted headphone, detect the opening degree of the head-mounted headphone through the head circumference detection unit to obtain a first detection value; Use the first detection value as the first head circumference information of the wearing user; The headphone wearing detection device is further configured to: Acquire a first user image of the wearing user, and perform feature extraction on the first user image to obtain a first user feature; If the wearing user is an infant, when the first user feature does not match the pre-stored infant feature, reduce the audio volume of the head-mounted headphone; Perform a second detection to determine a second absolute value of the difference between the second detection value in the second user feature and the second head circumference information and a preset reference value; If the second absolute value is not less than a preset detection threshold and the second user feature does not match the pre-stored infant feature, restore the audio volume of the head-mounted headphone.
7. A head-mounted earphone, characterized in that, The head-mounted headphone includes: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, the steps of the headphone wearing detection method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium, characterized in that, A headphone wearing detection program is stored on the computer-readable storage medium. When the headphone wearing detection program is executed by a processor, the steps of the headphone wearing detection method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Hearing protection method and device, terminal equipment and storage medium
CN114900767A