Wearing identification method and device, terminal equipment and storage medium
By determining the reference capacitance value when the wireless headset is placed in the charging box and comparing the real-time capacitance value when taken out, the problem of poor accuracy in wearing recognition of wireless headsets is solved, and more accurate judgment of wearing status is achieved and user experience is improved.
Patent Information
- Application Number
- CN202310779459.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2024-12-31
AI Technical Summary
When the wireless headphones are removed from the charging box for the first time, the capacitive sensor does not generate a relative change in real-time capacitance value or the change value is too small, resulting in poor wear recognition accuracy.
When the wireless headset is placed in the charging box, the reference capacitance value is determined based on the internal environment of the charging box, and the wearing state is determined by the relationship between the real-time capacitance value and the reference capacitance value when taken out for the first time.
Improves the accuracy of wearing recognition of wireless headphones when they are removed and used for the first time, and optimizes the user experience.
Smart Images

Figure CN119233141A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of wireless headsets, and in particular, relates to a wearing identification method, apparatus, terminal device and storage medium. Background Art
[0002] At present, wireless headphones usually use capacitive sensors to identify wearing actions. After the wireless headphones are turned on, the capacitive sensor samples in real time. If the headphones are worn, the real-time capacitance value at the current moment will have a certain change relative to the real-time capacitance value at the previous moment. The relative change value can be used to determine whether there is a wearing action. However, when the wireless headphones are taken out of the charging box and used for the first time, the capacitive sensor does not generate a relative change value of the real-time capacitance value or the relative change value is too small due to the human finger touching the capacitance detection part, resulting in poor accuracy in wireless headphones wearing recognition. Summary of the invention
[0003] The embodiments of the present application provide a wearing identification method, apparatus, terminal device and storage medium, which can solve the problem in the prior art that when a wireless headset is taken out of a charging box and used for the first time, the capacitive sensor does not generate a real-time relative change value of the capacitance value or the relative change value is too small due to the human finger touching the capacitance detection part, resulting in poor accuracy of the wireless headset wearing identification.
[0004] A first aspect of an embodiment of the present application provides a wearing recognition method, which is applied to a wireless headset, comprising:
[0005] When the wireless headset is placed in a charging box, determining a reference capacitance value based on an internal environment of the charging box;
[0006] When the wireless headset is taken out of the charging box for the first time, obtaining a real-time capacitance value collected by a capacitive sensor of the wireless headset;
[0007] Based on the magnitude relationship between the real-time capacitance value and the reference capacitance value, the wearing state of the wireless headset after being taken out for the first time is determined.
[0008] Optionally, when the wireless headset is placed in a charging box, determining a reference capacitance value based on an internal environment of the charging box includes:
[0009] When the wireless headset is placed in the charging box, based on the internal environment of the charging box, the capacitive sensor of the wireless headset performs multiple acquisitions to obtain a capacitance value array;
[0010] A reference capacitance value is determined based on the capacitance value array.
[0011] Optionally, when the wireless headset is placed in the charging box, based on the internal environment of the charging box, a capacitive sensor of the wireless headset performs multiple acquisitions to obtain a capacitance value array, including:
[0012] When the wireless headset is placed in the charging box, after the lid of the charging box is closed for a preset time each time, based on the internal environment of the charging box, a capacitive sensor of the wireless headset collects data to obtain an environmental capacitance value;
[0013] Based on multiple environmental capacitance values acquired multiple times by the capacitive sensor, a capacitance value array is obtained.
[0014] Optionally, obtaining a capacitance value array based on a plurality of environmental capacitance values acquired multiple times by the capacitive sensor includes:
[0015] When the number of the multiple environmental capacitance values acquired by the capacitive sensor multiple times is less than or equal to a preset number, obtaining a capacitance value array based on the multiple environmental capacitance values;
[0016] When the number of the multiple environmental capacitance values acquired by the capacitive sensor multiple times is greater than a preset number, a capacitance value array is obtained based on the last preset number of environmental capacitance values.
[0017] Optionally, determining a reference capacitance value based on the capacitance value array includes:
[0018] Based on the capacitance value array, an average value of the environmental capacitance values in the capacitance value array is determined as a reference capacitance value.
[0019] Optionally, determining the wearing state of the wireless headset based on the magnitude relationship between the real-time capacitance value and the reference capacitance value includes:
[0020] When the real-time capacitance value is less than or greater than the reference capacitance value, it is determined that the wireless headset is worn.
[0021] Optionally, after determining the wearing state of the wireless headset after being taken out for the first time based on the magnitude relationship between the real-time capacitance value and the reference capacitance value, the method further includes:
[0022] After determining that the wireless headset has been worn after being taken out for the first time, obtaining a real-time capacitance value collected by a capacitive sensor of the wireless headset;
[0023] Based on the relative change value of the real-time capacitance value, the wearing state of the wireless headset after being taken out and worn for the first time is determined.
[0024] A second aspect of an embodiment of the present application provides a wearing identification device, which is applied to a wireless headset, comprising:
[0025] A reference determination module, configured to determine a reference capacitance value based on an internal environment of the charging box when the wireless headset is placed in the charging box;
[0026] A capacitance acquisition module, used to acquire a real-time capacitance value collected by a capacitive sensor of the wireless headset when the wireless headset is taken out of the charging box for the first time;
[0027] The wearing determination module is used to determine the wearing state of the wireless headset after being taken out for the first time based on the magnitude relationship between the real-time capacitance value and the reference capacitance value.
[0028] Optionally, the benchmark determination module includes:
[0029] A capacitance acquisition unit, configured to acquire capacitance values by using a capacitive sensor of the wireless headset for multiple acquisitions based on the internal environment of the charging box when the wireless headset is placed in the charging box;
[0030] A reference determination unit is used to determine a reference capacitance value based on the capacitance value array.
[0031] Optionally, the capacitance acquisition unit includes:
[0032] A single acquisition unit, configured to acquire an environmental capacitance value by using a capacitive sensor of the wireless headset based on the internal environment of the charging box each time the charging box is closed for a preset period of time when the wireless headset is placed in the charging box;
[0033] The array acquisition unit is used to obtain a capacitance value array based on multiple environmental capacitance values acquired multiple times by the capacitive sensor.
[0034] Optionally, the array acquisition unit includes:
[0035] A first acquisition unit, configured to obtain a capacitance value array based on the multiple environmental capacitance values acquired by the capacitive sensor for multiple times when the number of the multiple environmental capacitance values is less than or equal to a preset number;
[0036] The second acquisition unit is configured to obtain a capacitance value array based on a last preset number of environmental capacitance values when the number of the multiple environmental capacitance values acquired by the capacitive sensor for multiple times is greater than a preset number.
[0037] Optionally, the reference determination unit is specifically configured to determine, based on the capacitance value array, an average value of environmental capacitance values in the capacitance value array as a reference capacitance value.
[0038] Optionally, the wearing determination module is specifically used to determine that the wireless headset has been worn after being taken out for the first time when the difference between the real-time capacitance value and the reference capacitance value is greater than a preset threshold.
[0039] Optionally, the wearing identification device further includes:
[0040] A real-time acquisition module, configured to obtain a real-time capacitance value acquired by a capacitive sensor of the wireless headset after determining that the wireless headset has been worn after being taken out for the first time;
[0041] The relative judgment module is used to determine the wearing state of the wireless headset after it is taken out and worn for the first time based on the relative change value of the real-time capacitance value.
[0042] A third aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the wearing recognition method as described above when executing the computer program.
[0043] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the wearing identification method as described above is implemented.
[0044] The first aspect of the embodiment of the present application provides a wearing identification method, which determines a reference capacitance value based on the internal environment of the charging box when the wireless headset is placed in the charging box. Since the reference capacitance value may not be affected by user contact, the reference effect of the reference capacitance value is more accurate. When the wireless headset is taken out of the charging box for the first time, the real-time capacitance value collected by the capacitive sensor of the wireless headset is obtained, and the wearing state of the wireless headset after the first taking out is determined based on the size relationship between the real-time capacitance value and the reference capacitance value. This can make the wearing identification of the wireless headset when it is taken out for the first time more accurate, thereby optimizing the user experience.
[0045] It can be understood that the beneficial effects of the second, third and fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0047] Figure 1A first flow chart of the wearing identification method provided in an embodiment of the present application;
[0048] Figure 2 A second flow chart of the wearing identification method provided in an embodiment of the present application;
[0049] Figure 3 A third flow chart of the wearing identification method provided in an embodiment of the present application;
[0050] Figure 4 A fourth flow chart of the wearing identification method provided in an embodiment of the present application;
[0051] Figure 5 A fifth flow chart of the wearing identification method provided in the embodiment of the present application;
[0052] Figure 6 A schematic diagram of the structure of a wearing identification device provided in an embodiment of the present application;
[0053] Figure 7 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0055] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0056] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0057] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0058] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. "Multiple" means "two or more".
[0059] At present, wireless headphones usually use capacitive sensors to identify wearing actions. After the wireless headphones are turned on, the capacitive sensors sample in real time. If the headset is worn, the real-time capacitance value at the current moment will change relative to the real-time capacitance value at the previous moment. The relative change value can be used to determine whether the headset is worn.
[0060] However, when the wireless headset is taken out of the charging box and used for the first time, due to the human finger touching the capacitance detection part, the capacitive sensor has not generated a real-time relative change value of the capacitance value or the relative change value is too small, resulting in poor accuracy of wireless headset wearing recognition.
[0061] In response to the above problems, an embodiment of the present application provides a wearing identification method applied to wireless headphones. When the wireless headphones are placed in a charging box, the method determines a reference capacitance value based on the internal environment of the charging box. Since the reference capacitance value may not be affected by user contact, the reference effect of the reference capacitance value is more accurate. When the wireless headphones are taken out of the charging box for the first time, the real-time capacitance value collected by the capacitive sensor of the wireless headphones is obtained. Based on the relationship between the real-time capacitance value and the reference capacitance value, the wearing state of the wireless headphones after being taken out for the first time is determined. This can make the wearing identification of the wireless headphones when they are taken out for the first time more accurate, thereby optimizing the user experience.
[0062] The wearing identification method provided in this application is exemplarily described below in conjunction with specific embodiments.
[0063] like Figure 1 As shown, the wearing identification method provided in this embodiment is applied to a wireless headset, and includes:
[0064] S100: When the wireless headset is placed in a charging box, determine a reference capacitance value based on an internal environment of the charging box.
[0065] In application, the wireless headset is placed in the charging box, which may be the case where the wireless headset is placed in the charging box before being taken out for the first time, including the case where the wireless headset is always placed in the charging box and the charging box is not opened, or the wireless headset is always placed in the charging box, but the charging box is opened and closed multiple times. The reference capacitance value is determined based on the internal environment of the charging box, which may be determined by using the capacitive sensor of the wireless headset to collect the reference capacitance value by taking the stable environment inside the charging box as a reference when the charging box is closed.
[0066] In one embodiment, Figure 2 As shown, when the wireless headset is placed in the charging box, the reference capacitance value is determined based on the internal environment of the charging box, including:
[0067] S110: When the wireless headset is placed in the charging box, based on the internal environment of the charging box, the capacitive sensor of the wireless headset performs multiple acquisitions to obtain a capacitance value array.
[0068] S120 , determining a reference capacitance value based on the capacitance value array.
[0069] In application, since the above-mentioned wireless earphones are placed in the charging box before being taken out for the first use, the user may open and close the above-mentioned charging box many times, resulting in changes in the internal environment of the charging box each time it is opened. Therefore, it is necessary to re-collect the ambient capacitance value through the capacitive sensor of the wireless earphones based on the internal environment of the charging box after each closing of the above-mentioned charging box.
[0070] In the application, an array storage space can be opened in the flash area of the above-mentioned wireless headset. After each collection by the capacitive sensor of the above-mentioned wireless headset, the collected environmental capacitance value can be limit processed and saved in the array, thereby obtaining the above-mentioned capacitance value array. Finally, the above-mentioned reference capacitance value is determined according to the environmental capacitance value saved in the above-mentioned capacitance value array.
[0071] In one embodiment, Figure 3 As shown, when the wireless headset is placed in the charging box, based on the internal environment of the charging box, the capacitive sensor of the wireless headset performs multiple acquisitions to obtain a capacitance value array, including:
[0072] S111. When the wireless headset is placed in the charging box, each time the lid of the charging box is closed for a preset period of time, based on the internal environment of the charging box, a capacitive sensor of the wireless headset collects data to obtain an environmental capacitance value.
[0073] S112, obtaining a capacitance value array based on multiple environmental capacitance values acquired multiple times by the capacitive sensor.
[0074] In application, since the internal environment of the charging box does not become stable immediately after each closing of the lid, the capacitive sensor of the wireless headset can collect and obtain an environmental capacitance value based on the internal environment of the charging box after each closing of the lid for a preset period of time, such as 10 seconds. At this time, the internal environment of the charging box is already stable, which can make the collected environmental capacitance value more accurate, thereby making the reference effect of the benchmark capacitance value more accurate. The capacitive sensor of the wireless headset collects as many times as the charging box is closed, and then the capacitance value array is obtained based on the multiple environmental capacitance values collected multiple times by the capacitive sensor.
[0075] In one embodiment, Figure 4 As shown, based on multiple environmental capacitance values collected multiple times by the capacitive sensor, a capacitance value array is obtained, including:
[0076] S1121. When the number of the multiple environmental capacitance values acquired by the capacitive sensor multiple times is less than or equal to a preset number, obtain a capacitance value array based on the multiple environmental capacitance values.
[0077] S1122: When the number of the multiple environmental capacitance values acquired by the capacitive sensor multiple times is greater than a preset number, obtain a capacitance value array based on the last preset number of environmental capacitance values.
[0078] In the application, since the length of the array stored in the flash memory area of the wireless headset may be limited, the length of the capacitance value array may also be limited. The length of the capacitance value array may be set to a preset number, such as 10. When the number of multiple environmental capacitance values collected by the capacitive sensor is less than or equal to 10, the capacitance value array can be obtained based on the multiple environmental capacitance values. For example, if the number of environmental capacitance values collected is 5, then the capacitance value array is obtained based on the 5 environmental capacitance values. When the number of multiple environmental capacitance values collected by the capacitive sensor is greater than 10, the capacitance value array can be obtained based on the last 10 environmental capacitance values. For example, if the number of environmental capacitance values collected is 11, then the 11th environmental capacitance value replaces the oldest, i.e., the 1st environmental capacitance value, and the capacitance value array is obtained based on the 2nd to 11th environmental capacitance values.
[0079] In one embodiment, determining the reference capacitance value based on the capacitance value array includes: based on the capacitance value array, determining an average value of the environmental capacitance values in the capacitance value array as the reference capacitance value.
[0080] In the application, after obtaining the capacitance value array, the average value of the environmental capacitance value in the capacitance value array can be determined as the reference capacitance value. Since the internal environment of the charging box changes each time the lid is opened and closed, the environmental capacitance value obtained by the capacitive sensor based on the internal environment of the charging box may be different each time. Therefore, by determining the average value of the environmental capacitance value in the capacitance value array as the reference capacitance value, the reference effect of the reference capacitance value can be made more accurate.
[0081] S200: When the wireless headset is taken out of the charging box for the first time, obtain a real-time capacitance value collected by a capacitive sensor of the wireless headset.
[0082] In the application, the real-time capacitance value collected by the capacitive sensor of the wireless headset is obtained when the wireless headset is taken out of the charging box for the first time. This can be when the user takes the wireless headset out of the charging box for the first time and uses it, the real-time capacitance value collected by the capacitive sensor of the wireless headset is obtained.
[0083] S300: Determine a wearing state of the wireless headset after it is taken out for the first time based on a relationship between the real-time capacitance value and the reference capacitance value.
[0084] In the application, the wearing state of the wireless headset after being taken out for the first time is determined based on the size relationship between the real-time capacitance value and the reference capacitance value. The wearing state of the wireless headset after being taken out for the first time can be determined by comparing the size relationship between the real-time capacitance value and the reference capacitance value.
[0085] In one embodiment, based on the size relationship between the real-time capacitance value and the reference capacitance value, the wearing state of the wireless headset after being taken out for the first time is determined, including: when the difference between the real-time capacitance value and the reference capacitance value is greater than a preset threshold, it is determined that the wireless headset has been worn after being taken out for the first time.
[0086] In the application, when the difference between the real-time capacitance value and the reference capacitance value is greater than a preset threshold, it is determined that the wireless headset has been worn after being taken out for the first time. When the absolute value of the difference between the real-time capacitance value and the reference capacitance value is greater than a preset threshold, it is determined that the wireless headset has been worn by the user after being taken out for the first time, so that the wireless headset can be used normally by the user.
[0087] In one embodiment, Figure 5 As shown, after determining the wearing state of the wireless headset after being taken out for the first time based on the magnitude relationship between the real-time capacitance value and the reference capacitance value, the method further includes:
[0088] S400, after determining that the wireless headset has been worn after being taken out for the first time, obtaining a real-time capacitance value collected by a capacitive sensor of the wireless headset;
[0089] S500: Determine a wearing state of the wireless headset after the headset is taken out and worn for the first time based on a relative change value of the real-time capacitance value.
[0090] In the application, since the wireless headset enters a normal working state after being taken out and worn for the first time, if the wireless headset does not enter sleep mode in the charging box, it can be switched back to a mode in which the relative change in the real-time capacitance value is used to determine whether the wireless headset is worn again. The above-mentioned determination of the wearing state of the wireless headset after being taken out and worn for the first time based on the relative change in the real-time capacitance value can be based on the relative change between the real-time capacitance value of the wireless headset at a certain moment and the real-time capacitance value at the previous moment to determine whether the wireless headset is worn again by the user after being taken out and worn for the first time, thereby making the wearing identification of the wireless headset more accurate during the working process after being taken out and worn for the first time.
[0091] The wearing identification method provided in the embodiment of the present application determines a reference capacitance value based on the internal environment of the charging box when the wireless headset is placed in the charging box. Since the reference capacitance value may not be affected by user contact, the reference effect of the reference capacitance value is more accurate. When the wireless headset is taken out of the charging box for the first time, the real-time capacitance value collected by the capacitive sensor of the wireless headset is obtained, and the wearing state of the wireless headset after the first taking out is determined based on the size relationship between the real-time capacitance value and the reference capacitance value. This can make the wearing identification of the wireless headset when it is taken out for the first time more accurate, thereby optimizing the user experience. After determining that the wireless headset has been worn after being taken out for the first time, the real-time capacitance value collected by the capacitive sensor of the wireless headset is obtained, and the wearing state of the wireless headset after being taken out and worn for the first time is determined based on the relative change value of the real-time capacitance value. This can make the wearing identification of the wireless headset more accurate during the working process after it is taken out, worn and used for the first time.
[0092] The wearing identification device provided in the present application is exemplarily described below with reference to the accompanying drawings.
[0093] Corresponding to the wearing identification method described in the above embodiment, as Figure 6 As shown, this embodiment provides a wearing identification device, which is applied to a wireless headset. The wearing identification device 600 includes:
[0094] A reference determination module 610, configured to determine a reference capacitance value based on an internal environment of the charging box when the wireless headset is placed in the charging box;
[0095] A capacitance acquisition module 620, configured to acquire a real-time capacitance value collected by a capacitive sensor of the wireless headset when the wireless headset is taken out of the charging box for the first time;
[0096] The wearing determination module 630 is used to determine the wearing state of the wireless headset after being taken out for the first time based on the magnitude relationship between the real-time capacitance value and the reference capacitance value.
[0097] In one embodiment, the benchmark determination module includes:
[0098] A capacitance acquisition unit, configured to acquire capacitance values by using a capacitive sensor of the wireless headset for multiple acquisitions based on the internal environment of the charging box when the wireless headset is placed in the charging box;
[0099] A reference determination unit is used to determine a reference capacitance value based on the capacitance value array.
[0100] In one embodiment, the capacitance acquisition unit includes:
[0101] A single acquisition unit, configured to acquire an environmental capacitance value by using a capacitive sensor of the wireless headset based on the internal environment of the charging box each time the charging box is closed for a preset period of time when the wireless headset is placed in the charging box;
[0102] The array acquisition unit is used to obtain a capacitance value array based on multiple environmental capacitance values acquired multiple times by the capacitive sensor.
[0103] In one embodiment, the array acquisition unit includes:
[0104] A first acquisition unit, configured to obtain a capacitance value array based on the multiple environmental capacitance values acquired by the capacitive sensor for multiple times when the number of the multiple environmental capacitance values is less than or equal to a preset number;
[0105] The second acquisition unit is configured to obtain a capacitance value array based on a last preset number of environmental capacitance values when the number of the multiple environmental capacitance values acquired by the capacitive sensor for multiple times is greater than a preset number.
[0106] In one embodiment, the reference determination unit is specifically configured to determine, based on the capacitance value array, an average value of the environmental capacitance values in the capacitance value array as the reference capacitance value.
[0107] In one embodiment, the wearing determination module is specifically configured to determine that the wireless headset has been worn after being taken out for the first time when the difference between the real-time capacitance value and the reference capacitance value is greater than a preset threshold.
[0108] In one embodiment, the wearing identification device further includes:
[0109] A real-time acquisition module, configured to obtain a real-time capacitance value acquired by a capacitive sensor of the wireless headset after determining that the wireless headset has been worn after being taken out for the first time;
[0110] The relative judgment module is used to determine the wearing state of the wireless headset after it is taken out and worn for the first time based on the relative change value of the real-time capacitance value.
[0111] It should be noted that the information interaction, execution process, etc. between the above-mentioned modules / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0112] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0113] The present application embodiment also provides a terminal device 700, such as Figure 7 As shown, it includes a memory 710, a processor 720, and a computer program 730 stored in the memory 710 and executable on the processor 720. When the processor 720 executes the computer program 730, the steps of the wearing identification method provided in the first aspect are implemented.
[0114] In the application, the terminal device may include, but is not limited to, a processor and a memory. Figure 7 It is only an example of a terminal device and does not constitute a limitation on the terminal device. It may include more or fewer components than shown in the figure, or combine certain components, or different components, such as input and output devices, network access devices, etc. Input and output devices may include cameras, audio acquisition / playback devices, display screens, etc. The network access device may include a network module for wirelessly communicating with external devices.
[0115] In applications, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0116] In applications, the memory may be an internal storage unit of a terminal device in some embodiments, such as a hard disk or memory of the terminal device. In other embodiments, the memory may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device. The memory may also include both an internal storage unit and an external storage device of the terminal device. The memory is used to store operating systems, applications, boot loaders, data, and other programs, such as program codes of computer programs. The memory may also be used to temporarily store data that has been output or is to be output.
[0117] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0118] The present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to a terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.
[0119] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0120] Those of ordinary skill in the art will appreciate that the devices and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0121] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interface, indirect coupling or communication connection of devices, which can be electrical, mechanical or other forms.
[0122] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A wearing identification method, characterized in that: Applied to wireless headphones, including: When the wireless headset is placed in a charging box, determining a reference capacitance value based on an internal environment of the charging box; When the wireless headset is taken out of the charging box for the first time, obtaining a real-time capacitance value collected by a capacitive sensor of the wireless headset; Based on the magnitude relationship between the real-time capacitance value and the reference capacitance value, the wearing state of the wireless headset after being taken out for the first time is determined.
2. The wearing identification method according to claim 1, characterized in that: When the wireless headset is placed in the charging box, determining the reference capacitance value based on the internal environment of the charging box includes: When the wireless headset is placed in the charging box, based on the internal environment of the charging box, the capacitive sensor of the wireless headset performs multiple acquisitions to obtain a capacitance value array; A reference capacitance value is determined based on the capacitance value array.
3. The wearing identification method according to claim 2, characterized in that: When the wireless headset is placed in the charging box, based on the internal environment of the charging box, the capacitive sensor of the wireless headset performs multiple acquisitions to obtain a capacitance value array, including: When the wireless headset is placed in the charging box, after the lid of the charging box is closed for a preset time each time, based on the internal environment of the charging box, a capacitive sensor of the wireless headset collects data to obtain an environmental capacitance value; Based on multiple environmental capacitance values acquired multiple times by the capacitive sensor, a capacitance value array is obtained.
4. The wearing identification method according to claim 3, characterized in that: The method of obtaining a capacitance value array based on multiple environmental capacitance values acquired multiple times by the capacitive sensor includes: When the number of the multiple environmental capacitance values acquired by the capacitive sensor multiple times is less than or equal to a preset number, obtaining a capacitance value array based on the multiple environmental capacitance values; When the number of the multiple environmental capacitance values acquired by the capacitive sensor multiple times is greater than a preset number, a capacitance value array is obtained based on the last preset number of environmental capacitance values.
5. The wearing identification method according to claim 2, characterized in that: The determining of a reference capacitance value based on the capacitance value array comprises: Based on the capacitance value array, an average value of the environmental capacitance values in the capacitance value array is determined as a reference capacitance value.
6. The wearing identification method according to claim 1, characterized in that: The determining, based on the magnitude relationship between the real-time capacitance value and the reference capacitance value, the wearing state of the wireless headset after being taken out for the first time includes: When the difference between the real-time capacitance value and the reference capacitance value is greater than a preset threshold, it is determined that the wireless headset has been worn after being taken out for the first time.
7. The wearing identification method according to claim 1, characterized in that: After determining the wearing state of the wireless headset after being taken out for the first time based on the magnitude relationship between the real-time capacitance value and the reference capacitance value, the method further includes: After determining that the wireless headset has been worn after being taken out for the first time, obtaining a real-time capacitance value collected by a capacitive sensor of the wireless headset; Based on the relative change value of the real-time capacitance value, the wearing state of the wireless headset after being taken out and worn for the first time is determined.
8. A wearing identification device, characterized in that: Applied to wireless headphones, including: A reference determination module, configured to determine a reference capacitance value based on an internal environment of the charging box when the wireless headset is placed in the charging box; A capacitance acquisition module, used to acquire a real-time capacitance value collected by a capacitive sensor of the wireless headset when the wireless headset is taken out of the charging box for the first time; The wearing determination module is used to determine the wearing state of the wireless headset after being taken out for the first time based on the magnitude relationship between the real-time capacitance value and the reference capacitance value.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the wearing identification method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the wearing identification method according to any one of claims 1 to 7 is implemented.
