Glasses wearing detection method, device, electronic device and computer-readable storage medium

By adaptively determining the target channel and reference channel, dynamically adjusting the determination threshold, solving the problem of inaccurate detection results of glasses in the prior art, achieving adaptation to different head shapes and clamping forces, and improving the accuracy of the detection results.

CN119471823BActive Publication Date: 2025-04-08FALCON INNOVATIONS TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411979136.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-08
Estimated Expiration
2044-12-31

AI Technical Summary

Technical Problem

Existing glasses wear detection technology is difficult to adapt to different head shapes and clamping forces, resulting in inaccurate wear detection results.

Method used

By obtaining the capacitance change of multiple channels in the glasses sensing area, the target channel and the reference channel are adaptively determined, and the determination threshold is dynamically adjusted to accurately determine the wearing status of the glasses.

Benefits of technology

It realizes adaptation to different head shapes and clamping forces, improves the accurate determination of the wearing status of glasses, and ensures the reliability of the test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119471823B_ABST
    Figure CN119471823B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a method, device, electronic device and computer-readable storage medium for detecting the wearing of glasses, and relate to the field of wearing detection technology. The method comprises: obtaining the first capacitance of multiple channels of the sensing area of ​​the glasses; obtaining the second capacitance of multiple channels of the sensing area when the glasses are not worn; determining the change amount of each channel according to the first capacitance and the second capacitance of each channel; determining the adaptive target channel according to the change amount of each channel; obtaining the change amount of the reference channel; determining the adaptive judgment threshold according to the relationship between the change amount of the adaptive target channel and the change amount of the reference channel; determining whether the glasses are currently in the wearing state according to the change amount of the adaptive target channel, the change amount of the reference channel and the adaptive judgment threshold. In this way, the present scheme can adapt to different head shapes and clamping forces to achieve accurate judgment of whether the glasses are in the wearing state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of wearing detection technology, and specifically to a method, device, electronic device and computer-readable storage medium for detecting wearing of glasses. Background Art

[0002] Glasses wearing detection is of great significance in terms of safe use of glasses and energy saving of smart glasses. Related technologies determine whether glasses are worn by checking whether the capacitance difference between the current capacitance and the capacitance to ground is greater than a fixed judgment threshold. However, due to different head shapes of wearers and different clamping forces when wearing glasses, the fixed judgment threshold is difficult to apply to all people, which leads to inaccurate wearing detection results. Summary of the invention

[0003] The embodiments of the present application provide a method, device, electronic device and computer-readable storage medium for detecting the wearing of glasses, which can adapt to different head shapes and clamping forces to accurately determine the wearing status of glasses.

[0004] In a first aspect, an embodiment of the present application provides a method for detecting wearing of glasses, comprising:

[0005] Obtaining current first capacitances of multiple channels in the sensing area of ​​the glasses relative to changes in second capacitances of the multiple channels when the glasses are not worn;

[0006] Determining an adaptive target channel according to the amount of change of each of the channels;

[0007] Obtaining a change amount of a reference channel; the reference channel is one of the multiple channels;

[0008] Determining an adaptive decision threshold according to a magnitude relationship between a change amount of the adaptive target channel and a change amount of the reference channel;

[0009] Whether the glasses are currently in a wearing state is determined according to the change amount of the adaptive target channel, the change amount of the reference channel and the adaptive determination threshold.

[0010] In one embodiment, determining the adaptive decision threshold according to the magnitude relationship between the change amount of the adaptive target channel and the change amount of the reference channel includes:

[0011] When the change amount of the adaptive target channel is greater than the change amount of the reference channel, acquiring a target threshold of the adaptive target channel and a preset threshold of the reference channel;

[0012] Determining the target threshold of the adaptive target channel as a first adaptive decision threshold compared with the change amount of the adaptive target channel;

[0013] Determine the preset threshold of the reference channel as a second adaptive decision threshold to be compared with the variation of the reference channel;

[0014] When the change amount of the target channel is not greater than the change amount of the reference channel, obtaining a preset threshold value of the reference channel;

[0015] The preset threshold of the reference channel is determined as the second adaptive decision threshold.

[0016] In one of the embodiments, obtaining the target threshold of the adaptive target channel includes:

[0017] Get the threshold determination coefficient;

[0018] A target threshold of the adaptive target channel is determined according to the threshold determination coefficient, the change amount of the adaptive target channel, and the second capacitance of the adaptive target channel.

[0019] In one embodiment, determining whether the glasses are currently in a wearing state according to the change amount of the adaptive target channel, the change amount of the reference channel and the adaptive determination threshold comprises:

[0020] When the change amount of the adaptive target channel is greater than the change amount of the reference channel, determining whether the change amount of the adaptive target channel is greater than the first adaptive decision threshold, and / or determining whether the change amount of the reference channel is greater than the second adaptive decision threshold;

[0021] When the change amount of the adaptive target channel is greater than the first adaptive determination threshold, and / or the change amount of the reference channel is greater than the second adaptive determination threshold, determining that the glasses are currently in a wearing state;

[0022] When the change amount of the adaptive target channel is not greater than the first adaptive determination threshold, and the change amount of the reference channel is not greater than the second adaptive determination threshold, determining that the glasses are currently in a non-worn state;

[0023] When the change amount of the adaptive target channel is not greater than the change amount of the reference channel, determining whether the change amount of the reference channel is greater than the second adaptive determination threshold;

[0024] When the variation of the reference channel is greater than the second adaptive determination threshold, determining that the glasses are currently in a wearing state;

[0025] When the variation of the reference channel is not greater than the second adaptive determination threshold, it is determined that the glasses are currently in a not-worn state.

[0026] In one embodiment, determining the adaptive target channel according to the change amount of each of the channels includes:

[0027] Sorting the plurality of channels in descending order of the amount of change;

[0028] Obtaining the number of the adaptive target channels;

[0029] According to the quantity, at least one of the channels ranked at the top is determined as the adaptive target channel.

[0030] In one of the embodiments, the number of the adaptive target channels is multiple;

[0031] The step of determining the adaptive decision threshold according to the magnitude relationship between the change amount of the adaptive target channel and the change amount of the reference channel includes:

[0032] Determining an adaptive decision threshold corresponding to each adaptive target channel according to a magnitude relationship between a change amount of each adaptive target channel and a change amount of the reference channel;

[0033] The determining whether the glasses are currently in a wearing state according to the change amount of the adaptive target channel, the change amount of the reference channel and the adaptive determination threshold comprises:

[0034] Determine a decision result corresponding to each of the adaptive target channels according to the change amount of each of the adaptive target channels, the change amount of the reference channel, and the adaptive decision threshold corresponding to each of the adaptive target channels;

[0035] When the determination result corresponding to any of the adaptive target channels indicates that the glasses are currently in a wearing state, it is determined that the glasses are currently in a wearing state.

[0036] In one embodiment, the step of obtaining the current first capacitance of multiple channels in the sensing area of ​​the glasses relative to the change in the second capacitance of the multiple channels when the glasses are not worn comprises:

[0037] Acquire first capacitances of a plurality of channels in a sensing area of ​​the glasses;

[0038] Acquire second capacitances of a plurality of channels in the sensing area when the glasses are not worn;

[0039] The change amount of each channel is determined according to the first capacitance and the second capacitance of each channel.

[0040] In one embodiment, obtaining first capacitances of multiple channels of a sensing area of ​​the glasses includes:

[0041] Acquire the upper capacitance values ​​of the plurality of channels in the sensing area when the glasses are in a wearing state;

[0042] Acquire the lower limit values ​​of capacitance of multiple channels in the sensing area when the glasses are not worn;

[0043] Collecting the initial first capacitance of multiple channels of the sensing area of ​​the glasses multiple times;

[0044] When the initial first capacitance of any of the channels collected at any time is greater than the capacitance upper limit value or less than the capacitance lower limit value, removing the initial first capacitances of the multiple channels collected at that time;

[0045] An average value of the initial first capacitance of each channel of the sensing area of ​​the glasses collected for the remaining multiple times is determined as the first capacitance of each channel.

[0046] In a second aspect, an embodiment of the present application provides a glasses wearing detection device, comprising:

[0047] A change acquisition module, used for acquiring a change in a current first capacitance of a plurality of channels in a sensing area of ​​the glasses relative to a second capacitance of the plurality of channels when the glasses are not worn;

[0048] A channel determination module, used for determining an adaptive target channel according to the variation of each of the channels;

[0049] A reference acquisition module, used to acquire a variation of a reference channel; the reference channel is one of the multiple channels;

[0050] A threshold determination module, used to determine an adaptive decision threshold according to the magnitude relationship between the change amount of the adaptive target channel and the change amount of the reference channel;

[0051] The state determination module is used to determine whether the glasses are currently in a wearing state according to the change amount of the adaptive target channel, the change amount of the reference channel and the adaptive determination threshold.

[0052] In one embodiment, the threshold determination module includes:

[0053] A first threshold value acquisition unit, configured to acquire a target threshold value of the adaptive target channel and a preset threshold value of the reference channel when the change amount of the adaptive target channel is greater than the change amount of the reference channel;

[0054] A first threshold determination unit, configured to determine the target threshold of the adaptive target channel as a first adaptive decision threshold to be compared with the variation of the adaptive target channel;

[0055] A second threshold determination unit, configured to determine a preset threshold of the reference channel as a second adaptive determination threshold to be compared with the variation of the reference channel;

[0056] A second threshold value acquisition unit, configured to acquire a preset threshold value of the reference channel when the change amount of the target channel is not greater than the change amount of the reference channel;

[0057] The third threshold determination unit is used to determine the preset threshold of the reference channel as the second adaptive decision threshold.

[0058] In one embodiment, the first threshold value obtaining unit includes:

[0059] A coefficient acquisition subunit, used to acquire a threshold determination coefficient;

[0060] The threshold determination subunit is used to determine the target threshold of the adaptive target channel according to the threshold determination coefficient, the change amount of the adaptive target channel and the second capacitance of the adaptive target channel.

[0061] In one embodiment, the state determination module includes:

[0062] A first size determination unit, configured to determine whether the change amount of the adaptive target channel is greater than the first adaptive decision threshold when the change amount of the adaptive target channel is greater than the change amount of the reference channel, and / or determine whether the change amount of the reference channel is greater than the second adaptive decision threshold;

[0063] A first state determination unit, configured to determine that the glasses are currently in a wearing state when the change amount of the adaptive target channel is greater than the first adaptive determination threshold, and / or the change amount of the reference channel is greater than the second adaptive determination threshold;

[0064] A second state determination unit, configured to determine that the glasses are currently in a non-worn state when the change amount of the adaptive target channel is not greater than the first adaptive determination threshold and the change amount of the reference channel is not greater than the second adaptive determination threshold;

[0065] A second size determination unit, configured to determine whether the change amount of the reference channel is greater than the second adaptive determination threshold when the change amount of the adaptive target channel is not greater than the change amount of the reference channel;

[0066] a third state determination unit, configured to determine that the glasses are currently in a wearing state when the variation of the reference channel is greater than the second adaptive determination threshold;

[0067] The fourth state determination unit is used to determine that the glasses are currently in a not-worn state when the change amount of the reference channel is not greater than the second adaptive determination threshold.

[0068] In one embodiment, the channel determination module includes:

[0069] A sorting unit, used for sorting the plurality of channels in descending order of the amount of change;

[0070] A quantity acquisition unit, used to acquire the quantity of the adaptive target channels;

[0071] The channel determination unit is used to determine at least one of the channels in the front row as the adaptive target channel according to the quantity.

[0072] In one embodiment, the number of the adaptive target channels is multiple; the threshold determination module includes:

[0073] A threshold determination unit, used to determine an adaptive decision threshold corresponding to each of the adaptive target channels according to a magnitude relationship between a change amount of each of the adaptive target channels and a change amount of the reference channel;

[0074] The state determination module comprises:

[0075] A determination result determining unit, configured to determine a determination result corresponding to each of the adaptive target channels according to a change amount of each of the adaptive target channels, a change amount of the reference channel, and an adaptive determination threshold corresponding to each of the adaptive target channels;

[0076] The state determination unit is used to determine that the glasses are currently in a wearing state when the determination result corresponding to any of the adaptive target channels indicates that the glasses are currently in a wearing state.

[0077] In one embodiment, the variation acquisition module includes:

[0078] A first capacitance acquisition unit, used to acquire first capacitances of multiple channels in the sensing area of ​​the glasses;

[0079] A second capacitance acquisition unit, used to acquire second capacitances of a plurality of channels in the sensing area when the glasses are not worn;

[0080] The change amount determining unit is used to determine the change amount of each channel according to the first capacitance and the second capacitance of each channel.

[0081] In one embodiment, the first capacitance acquisition unit includes:

[0082] An upper limit acquisition subunit, used to acquire the upper limit values ​​of capacitance of multiple channels in the sensing area when the glasses are in a wearing state;

[0083] A lower limit acquisition subunit, used to acquire the lower limit values ​​of capacitance of multiple channels in the sensing area when the glasses are not worn;

[0084] A collection subunit, used for collecting the initial first capacitance of multiple channels of the sensing area of ​​the glasses for multiple times;

[0085] a removal subunit, configured to remove the initial first capacitances of the plurality of channels collected at any time when the initial first capacitance of any channel collected at any time is greater than the capacitance upper limit value or less than the capacitance lower limit value;

[0086] The first capacitance determination subunit is used to determine the average value of the initial first capacitance of each channel of the sensing area of ​​the glasses collected for multiple times as the first capacitance of each channel.

[0087] In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps in the above-mentioned glasses wearing detection method when executed by the processor.

[0088] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned glasses wearing detection method are implemented.

[0089] In a fifth aspect, the embodiments of the present application further provide a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations described in the embodiments of the present application.

[0090] In summary, in the embodiment of the present application, the adaptive target channel used to determine the wearing state of the glasses is adaptively determined based on the change amount of each channel, rather than using a fixed channel for determination. Considering that the change amount of the same channel of users with different head shapes may also be different, the selected adaptive target channel is a channel suitable for the current user; considering the different clamping forces, the adaptive determination threshold is adaptively determined based on the relationship between the change amount of the adaptive target channel and the change amount of the reference channel. Therefore, the wearing state of the glasses is determined based on the adaptive determination threshold, which can adapt to different clamping forces. In this way, the technical solution of the embodiment of the present application can adapt to different head shapes and clamping forces to achieve accurate determination of the wearing state of the glasses. BRIEF DESCRIPTION OF THE DRAWINGS

[0091] In order to more clearly illustrate the technical solutions in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0092] Figure 1 It is a schematic diagram of the steps of a method for detecting the wearing of glasses provided in one embodiment of the present application;

[0093] Figure 2 is a schematic diagram of a sensing area provided by an embodiment of the present application;

[0094] Figure 3 is a structural schematic diagram of a glasses wearing detection device provided in one embodiment of the present application;

[0095] Figure 4 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0096] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0097] In one embodiment, Figure 1As shown, a method for detecting the wearing of glasses is provided. Although a logical order is shown in the step diagram, in some cases, the steps shown or described may be performed in an order different from that shown in the figure. Specifically, the method for detecting the wearing of glasses may be applied to a terminal, wherein the terminal may include but is not limited to one or more of smart glasses, extended reality (Extended Reality, XR) glasses, smart phones, tablet computers, portable computers, desktop computers, and vehicle-mounted computers.

[0098] In particular, extended reality glasses refer to wearable optical see-through smart glasses. Extended reality glasses may include but are not limited to: augmented reality (AR) glasses, virtual reality (VR) glasses and mixed reality (MR) glasses.

[0099] When the glasses wearing detection method of an embodiment of the present application is applied to smart glasses or extended reality glasses, the smart glasses or extended reality glasses can collect the capacitance of multiple channels in the sensing area of ​​the glasses and directly determine whether the glasses are currently in a wearing state based on the capacitance of the multiple channels.

[0100] When the glasses wearing detection method of an embodiment of the present application is applied to a smart phone, a tablet computer, a portable computer, a desktop computer and / or a vehicle-mounted computer, the glasses can collect the capacitance of multiple channels in the sensing area, and the glasses transmit the collected capacitance to the smart phone, the tablet computer, the portable computer, the desktop computer and / or the vehicle-mounted computer. The smart phone, the tablet computer, the portable computer, the desktop computer and / or the vehicle-mounted computer determines whether the glasses are currently being worn based on the capacitance transmitted by the glasses.

[0101] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.

[0102] according to Figure 1 The method for detecting the wearing of glasses shown in the figure comprises at least steps S110 to S150, which are described in detail as follows:

[0103] In step S110, the current first capacitances of the multiple channels in the sensing area of ​​the glasses are obtained relative to the changes in the second capacitances of the multiple channels when the glasses are not worn.

[0104] When it is currently necessary to determine the wearing state of the glasses, the current first capacitances of the multiple channels of the sensing area of ​​the glasses are obtained. It may be determined that the wearing state of the glasses needs to be determined when the application of the glasses is started. For example, when it is detected that the glasses are making a call or the music playing application of the glasses is playing music, it is determined that the wearing state of the glasses needs to be determined.

[0105] The sensing area of ​​the glasses can be set in the area where the glasses will come into contact with the human body when the glasses are worn, such as Figure 2 As shown, it can be set in the area where the temple contacts the wearer. The sensing area includes multiple channels, and the detection areas of the multiple channels are equal in area. A capacitive inductive flexible printed circuit (FPC) is set in each channel, and the capacitive inductive flexible printed circuit can collect the capacitance of the channel.

[0106] In one embodiment, step S110 may include: obtaining first capacitances of multiple channels in a sensing area of ​​the glasses; obtaining second capacitances of multiple channels in the sensing area when the glasses are not worn; and determining a change amount of each channel based on the first capacitance and the second capacitance of each channel.

[0107] When the glasses are worn, they are in contact with the human skin, but when they are not worn, they are not in contact with the human skin. Therefore, there will be a difference between the first capacitance and the second capacitance. Therefore, the change in the first capacitance and the second capacitance can be determined.

[0108] When it is necessary to determine the wearing state of the glasses, the current first capacitance of each channel is collected, and the second capacitance of each channel when the glasses are not worn is obtained. The difference between the current first capacitance and the second capacitance of each channel is used to determine the change amount of the channel.

[0109] Optionally, the initial first capacitance corresponding to each channel can be collected multiple times in a preset time range (for example, 10 seconds) in a cycle, and the initial first capacitance of each channel collected multiple times is averaged to obtain the first capacitance. Each time the capacitance is collected, the capacitance of multiple channels in the sensing area is collected.

[0110] Optionally, when the glasses are not worn, the initial second capacitance corresponding to each channel can be collected multiple times in a preset time range (for example, 10 seconds) in a cycle, and the average of the multiple collected initial second capacitances of each channel is calculated to obtain the second capacitance.

[0111] Optionally, the second capacitance of each channel when the glasses are not worn may be pre-collected and stored, and when it is necessary to determine the wearing state of the glasses, the stored second capacitance of each channel is obtained.

[0112] Optionally, the second capacitance of each channel when the glasses are not worn may be capacitance collected by guiding the user to take off the glasses while the user is wearing the glasses.

[0113] In this way, the change amount of each channel is determined according to the first capacitance and the second capacitance of each channel, which is conducive to subsequently determining the adaptive target channel and the adaptive decision threshold according to the change amount of each channel, and then determining the wearing state of the glasses.

[0114] On the basis of the above technical solution, the obtaining of the first capacitances of the multiple channels of the sensing area of ​​the glasses may include: obtaining an upper capacitance limit value of the multiple channels of the sensing area when the glasses are in a worn state; obtaining a lower capacitance limit value of the multiple channels of the sensing area when the glasses are not in a worn state; acquiring the initial first capacitances of the multiple channels of the sensing area of ​​the glasses for multiple times; when the initial first capacitance of any channel acquired at any time is greater than the upper capacitance limit value or less than the lower capacitance limit value, removing the initial first capacitances of the multiple channels acquired at that time; and determining the average value of the initial first capacitances of the channels of the sensing area of ​​the glasses acquired for the remaining multiple times as the first capacitance of the channels.

[0115] Because of the interference of user behavior, for example, when taking off glasses, the sensing area touches foreign objects such as hair, or fingers touch the sensing area unconsciously, etc., the collected first capacitance may be inaccurate. Therefore, the abnormal data is filtered out.

[0116] The upper capacitance limit values ​​of the multiple channels in the sensing area and the lower capacitance limit values ​​of the multiple channels in the sensing area can be predetermined; wherein the upper capacitance limit values ​​of the multiple channels in the sensing area are the capacitance values ​​of the multiple channels collected when the glasses are determined to be in a worn state, and the lower capacitance limit values ​​of the multiple channels in the sensing area are the capacitance values ​​of the multiple channels collected when the glasses are determined to be in a not-worn state. Each channel corresponds to an upper capacitance limit value and a lower capacitance limit value.

[0117] When the initial first capacitance of any channel collected at any time is greater than the upper capacitance limit of the channel or less than the lower capacitance limit of the channel, it can be considered that the collection behavior is interfered. Therefore, the initial first capacitance of each channel collected at this time can be removed. The average value of the initial first capacitance of each channel of the sensing area of ​​the glasses collected for the remaining multiple times is determined as the first capacitance of each channel.

[0118] Based on a similar principle, when determining the second capacitance, when the initial second capacitance of any channel is greater than the upper capacitance limit of the channel or less than the lower capacitance limit of the channel, the initial second capacitance of each channel collected this time may be removed, and the average value of the initial second capacitance of each channel in the sensing area of ​​the glasses collected multiple times may be determined as the second capacitance of each channel.

[0119] In this way, the disturbed abnormal data can be removed to obtain an accurate first capacitance, thereby ensuring the accuracy of the wearing state of the glasses subsequently determined based on the first capacitance.

[0120] In step S120, an adaptive target channel is determined according to the change amount of each channel.

[0121] Each time the wearing state of the glasses needs to be determined, the change amount of each channel may change because the head shape of different users may be different and the clamping force may be different each time they are worn. Therefore, each time the wearing state of the glasses is determined, the adaptive target channel may also change.

[0122] When wearing glasses, some channels have a smaller contact area with the human body, which will result in a smaller change in the channel. In order to accurately judge the wearing state of the glasses, the judgment can be made based on the adaptive target channel with a larger change.

[0123] In one embodiment, if the wearing state of the glasses only needs to be determined based on one adaptive target channel, the channel with the largest change amount among the multiple channels can be directly determined as the adaptive target channel.

[0124] In another embodiment, if it is necessary to determine the wearing state of the glasses according to a plurality of adaptive target channels, the first plurality of channels with the largest amount of change among the plurality of channels may be determined as the adaptive target channels.

[0125] In one embodiment, step S120 may include: sorting the plurality of channels in descending order of the change amount; obtaining the number of the adaptive target channels; and determining at least one of the channels in the front row as the adaptive target channel according to the number.

[0126] The number of adaptive target channels may be system-configured or provided to a user as a parameter to be set by the user. The number N of adaptive target channels is an integer greater than 1 and less than the total number of the multiple channels.

[0127] The multiple channels are sorted in descending order according to the variation, and according to the determined number N of adaptive target channels, the N channels in the front row are determined as adaptive target channels.

[0128] In this way, because the channel with a larger change can better reflect the wearing status, at least one channel with the largest change is determined as the adaptive target channel, which helps to accurately judge the wearing status of the glasses according to the adaptive target channel later.

[0129] In step S130, the variation of a reference channel is obtained; the reference channel is one of the multiple channels.

[0130] The reference channel is a preset channel, and the reference channel is one of multiple channels. The threshold corresponding to the reference channel is preset. The reference channel is the default channel for judging the wearing state of the glasses. When judging the wearing state of the glasses based on the reference channel, if the change amount of the reference channel is greater than the preset threshold value of the reference channel, it is considered that the glasses are in the wearing state; if the change amount of the reference channel is not greater than the preset threshold value of the reference channel, it is considered that the glasses are not in the wearing state.

[0131] The larger the sensing area, the smaller the sensing distance, the larger the capacitance. For people with smaller heads, the capacitance of each channel will be smaller. For people with larger heads, a smaller preset threshold can detect the wearing of glasses, but it is more susceptible to temperature drift. After temperature drift, it will not be detected when the glasses are taken off. Therefore, in order to be compatible with more people, the preset threshold of the reference channel can be set as small as possible.

[0132] In step S140, an adaptive decision threshold is determined according to the magnitude relationship between the variation of the adaptive target channel and the variation of the reference channel.

[0133] When the magnitude relationship between the change amount of the adaptive target channel and the change amount of the reference channel is different, the judgment condition for judging whether the glasses are in the wearing state is different, and thus the corresponding adaptive judgment threshold is also different.

[0134] When the change in the adaptive target channel is greater than the change in the reference channel, as long as the change in the adaptive target channel is greater than the target threshold of the adaptive target channel, or the change in the reference channel is greater than the preset threshold of the reference channel, the glasses can be considered to be in a wearing state.

[0135] When the change amount of the adaptive target channel is not greater than the change amount of the reference channel, and the change amount of the reference channel is greater than a preset threshold value of the reference channel, the glasses are considered to be in a wearing state.

[0136] Therefore, the adaptive decision threshold may be a target threshold of the adaptive target channel and a preset threshold of a reference channel, or may be a preset threshold of a reference channel.

[0137] In step S150, it is determined whether the glasses are currently in a wearing state according to the change amount of the adaptive target channel, the change amount of the reference channel and the adaptive determination threshold.

[0138] When the adaptive determination threshold is different, the magnitude relationship between the change amount of the adaptive target channel and the change amount of the reference channel is also different, and the judgment condition for determining whether the glasses are currently in a wearing state is also different.

[0139] When the adaptive determination threshold is the target threshold of the adaptive target channel and the preset threshold of the reference channel, if the change of the adaptive target channel is greater than the target threshold of the adaptive target channel, or the change of the reference channel is greater than the preset threshold of the reference channel, it can be determined that the glasses are currently in a worn state; if the change of the adaptive target channel is not greater than the target threshold of the adaptive target channel, and the change of the reference channel is not greater than the preset threshold of the reference channel, it can be determined that the glasses are currently in a not-worn state.

[0140] When the adaptive judgment threshold is the preset threshold of the reference channel, if the change of the reference channel is greater than the preset threshold of the reference channel, it can be determined that the glasses are currently in a worn state; if the change of the reference channel is not greater than the preset threshold of the reference channel, it can be determined that the glasses are currently in a not-worn state.

[0141] By adopting the technical solution of the embodiment of the present application, the adaptive target channel used for judging the wearing state of the glasses is adaptively determined according to the change amount of each channel, rather than using a fixed channel for judgment. Considering that the change amount of the same channel of users with different head shapes may also be different, the selected adaptive target channel is a channel suitable for the current user; considering the different clamping forces, the adaptive judgment threshold is adaptively determined according to the relationship between the change amount of the adaptive target channel and the change amount of the reference channel. Therefore, the wearing state of the glasses is determined according to the adaptive judgment threshold, which can adapt to different clamping forces. In this way, the technical solution of the embodiment of the present application can adapt to different head shapes and clamping forces to achieve accurate judgment of the wearing state of the glasses.

[0142] On the basis of the above technical solution, as an embodiment, the step S140 may include: when the change of the adaptive target channel is greater than the change of the reference channel, obtaining the target threshold of the adaptive target channel and the preset threshold of the reference channel; determining the target threshold of the adaptive target channel as a first adaptive decision threshold compared with the change of the adaptive target channel; determining the preset threshold of the reference channel as a second adaptive decision threshold compared with the change of the reference channel; when the change of the target channel is not greater than the change of the reference channel, obtaining the preset threshold of the reference channel; determining the preset threshold of the reference channel as the second adaptive decision threshold.

[0143] The target threshold of the adaptive target channel refers to the threshold of the adaptive target channel, wherein the target threshold of the adaptive target channel can be determined according to the following method: obtaining a threshold determination coefficient; determining the target threshold of the adaptive target channel according to the threshold determination coefficient, the change amount of the adaptive target channel and the second capacitance of the adaptive target channel.

[0144] In one embodiment, the target threshold of the adaptive target channel can be determined according to the following formula: PRE-THDH=rawdata-AHX+rawdata-HX*β; wherein PRE-THDH represents the target threshold of the adaptive target channel, rawdata-AHX represents the second capacitance of the adaptive target channel, rawdata-HX represents the change amount of the adaptive target channel, and β represents the threshold determination coefficient, wherein β can be set according to actual needs and can be 0.7.

[0145] When the change in the adaptive target channel is greater than the change in the reference channel, as long as the change corresponding to any one of the adaptive target channel or the reference channel is greater than the threshold of the channel, it can be determined that the glasses are in a wearing state. Therefore, it is necessary to obtain the target threshold of the adaptive target channel and the preset threshold of the reference channel, and determine the target threshold of the adaptive target channel as the first adaptive decision threshold compared with the change in the adaptive target channel; and determine the preset threshold of the reference channel as the second adaptive decision threshold compared with the change in the reference channel.

[0146] When the change in the adaptive target channel is greater than the change in the reference channel, the wearing state of the glasses is determined only based on the relationship between the change in the reference channel and the threshold. Therefore, it is only necessary to obtain the preset threshold of the reference channel and determine the preset threshold of the reference channel as the second adaptive judgment threshold.

[0147] By adopting the technical solution of the embodiment of the present application, when the magnitude relationship between the change amount of the adaptive target channel and the change amount of the reference channel is different, different adaptive judgment thresholds are determined, thereby realizing adaptive change of the adaptive judgment threshold, which can adapt to different clamping forces and further realize accurate judgment of the wearing state of the glasses.

[0148] On the basis of the above technical solution, as an embodiment, the step S150 may include: when the change amount of the adaptive target channel is greater than the change amount of the reference channel, determining whether the change amount of the adaptive target channel is greater than the first adaptive decision threshold, and / or determining whether the change amount of the reference channel is greater than the second adaptive decision threshold; when the change amount of the adaptive target channel is greater than the first adaptive decision threshold, and / or the change amount of the reference channel is greater than the second adaptive decision threshold, determining that the glasses are currently in a worn state; when the change amount of the adaptive target channel is not greater than the first adaptive decision threshold, and the change amount of the reference channel is not greater than the second adaptive decision threshold, determining that the glasses are currently in a not-worn state; when the change amount of the adaptive target channel is not greater than the change amount of the reference channel, determining whether the change amount of the reference channel is greater than the second adaptive decision threshold; when the change amount of the reference channel is greater than the second adaptive decision threshold, determining that the glasses are currently in a worn state; when the change amount of the reference channel is not greater than the second adaptive decision threshold, determining that the glasses are currently in a not-worn state.

[0149] When the change in the adaptive target channel is greater than the change in the reference channel, it is detected that the change in the adaptive target channel is greater than the first adaptive decision threshold, and / or the change in the reference channel is greater than the second adaptive decision threshold, then it is determined that the glasses are currently in a wearing state.

[0150] When the change in the adaptive target channel is greater than the change in the reference channel, it is detected that the change in the adaptive target channel is not greater than the first adaptive decision threshold, and the change in the reference channel is not greater than the second adaptive decision threshold, then it is determined that the glasses are currently in a not-worn state.

[0151] When the change amount of the adaptive target channel is not greater than the change amount of the reference channel, it is detected that the change amount of the reference channel is greater than the second adaptive determination threshold, and it is determined that the glasses are currently in a wearing state.

[0152] When the change amount of the adaptive target channel is not greater than the change amount of the reference channel, it is detected that the change amount of the reference channel is not greater than the second adaptive determination threshold, and it is determined that the glasses are currently in a not-worn state.

[0153] By adopting the technical solution of the embodiment of the present application, when the relationship between the change amount of the adaptive target channel and the change amount of the reference channel is different, the adaptive judgment threshold for determining the current wearing state of the glasses is also different, and the corresponding judgment conditions are also different. Different judgment conditions are determined according to different adaptive judgment thresholds, which can adapt to different clamping force situations, thereby realizing accurate judgment of the wearing state of the glasses.

[0154] Based on the above technical solution, as an embodiment, the number of the adaptive target channels may be multiple. When the number of the adaptive target channels is multiple, determining the adaptive decision threshold according to the magnitude relationship between the change amount of the adaptive target channel and the change amount of the reference channel may include: determining the adaptive decision threshold corresponding to each adaptive target channel according to the magnitude relationship between the change amount of each adaptive target channel and the change amount of the reference channel.

[0155] The determining whether the glasses are currently in a wearing state according to the amount of change of the adaptive target channel, the amount of change of the reference channel and the adaptive determination threshold may include: determining a determination result corresponding to each adaptive target channel according to the amount of change of each adaptive target channel, the amount of change of the reference channel and the adaptive determination threshold corresponding to each adaptive target channel; and determining that the glasses are currently in a wearing state when the determination result corresponding to any adaptive target channel indicates that the glasses are currently in a wearing state.

[0156] When there are multiple adaptive target channels, a determination result may be determined for each adaptive target channel. The method for determining the determination result according to each adaptive target channel is similar to the method for determining whether the glasses are currently in a wearing state according to one adaptive target channel.

[0157] Specifically, for each adaptive target channel: an adaptive decision threshold is determined according to a relationship between a change in the adaptive target channel and a change in a reference channel; when a change in the adaptive target channel is greater than a change in the reference channel, a target threshold of the adaptive target channel and a preset threshold of the reference channel are determined as the adaptive decision threshold; when a change in the adaptive target channel is greater than a change in the reference channel, a preset threshold of the reference channel is determined as the adaptive decision threshold.

[0158] When the change in the adaptive target channel is greater than the change in the reference channel, if the change in the adaptive target channel is greater than the target threshold of the adaptive target channel, and / or the change in the reference channel is greater than the preset threshold of the reference channel, then the determination result corresponding to the adaptive target channel is determined to be that the glasses are currently in a wearing state.

[0159] When the change of the adaptive target channel is greater than the change of the reference channel, if the change of the adaptive target channel is not greater than the target threshold of the adaptive target channel, and the change of the reference channel is not greater than the preset threshold of the reference channel, then it is determined that the judgment result corresponding to the adaptive target channel is that the glasses are currently in an unworn state.

[0160] When the change amount of the adaptive target channel is not greater than the change amount of the reference channel, if the change amount of the reference channel is greater than the preset threshold of the reference channel, it is determined that the determination result corresponding to the adaptive target channel is that the glasses are currently in a wearing state.

[0161] When the change amount of the adaptive target channel is not greater than the change amount of the reference channel, if the change amount of the reference channel is not greater than the preset threshold of the reference channel, it is determined that the determination result corresponding to the adaptive target channel is that the glasses are currently in an unworn state.

[0162] When the determination result corresponding to any adaptive target channel indicates that the glasses are currently in a wearing state, it is determined that the glasses are currently in a wearing state.

[0163] Among them, when making a judgment, the judgment results corresponding to each adaptive target channel can be judged in sequence according to the order of change from large to small. When the judgment result corresponding to any adaptive target channel indicates that the glasses are currently in a wearing state, it can be directly determined that the glasses are currently in a wearing state without making judgments on subsequent other adaptive target channels.

[0164] By adopting the technical solution of the embodiment of the present application, it is possible to jointly determine whether the glasses are currently being worn based on multiple adaptive target channels, thereby meeting the requirements of different head shapes and different clamping forces and improving the accuracy of the determination results.

[0165] Based on the above technical solution, as an embodiment, if it is determined that the glasses are not currently being worn, the current applications of the glasses can be closed, or the glasses can be put into a low power consumption mode or certain functional parts can be turned off to reduce power consumption, increase the usage time of the glasses, and enhance the user experience.

[0166] In order to better implement the glasses wearing detection method of the present application, the present application also provides a glasses wearing detection device based on the glasses wearing detection method. The meanings of the terms are the same as those in the glasses wearing detection method, and the specific implementation details can refer to the description in the method embodiment.

[0167] See also Figure 3 , Figure 3 : is a schematic diagram of the structure of a glasses wearing detection device provided in an embodiment of the present application, and the glasses wearing detection device may include:

[0168] A change amount acquisition module 301 is used to acquire the current first capacitance of multiple channels in the sensing area of ​​the glasses relative to the change amount of the second capacitance of the multiple channels when the glasses are not worn;

[0169] A channel determination module 302, configured to determine an adaptive target channel according to the variation of each of the channels;

[0170] A reference acquisition module 303 is used to acquire a variation of a reference channel; the reference channel is one of the multiple channels;

[0171] A threshold determination module 304, configured to determine an adaptive decision threshold according to a magnitude relationship between a change amount of the adaptive target channel and a change amount of the reference channel;

[0172] The state determination module 305 is used to determine whether the glasses are currently in a wearing state according to the change amount of the adaptive target channel, the change amount of the reference channel and the adaptive determination threshold.

[0173] In one embodiment, the threshold determination module 304 includes:

[0174] A first threshold value acquisition unit, configured to acquire a target threshold value of the adaptive target channel and a preset threshold value of the reference channel when the change amount of the adaptive target channel is greater than the change amount of the reference channel;

[0175] A first threshold determination unit, configured to determine the target threshold of the adaptive target channel as a first adaptive decision threshold to be compared with the variation of the adaptive target channel;

[0176] A second threshold determination unit, configured to determine a preset threshold of the reference channel as a second adaptive determination threshold to be compared with the variation of the reference channel;

[0177] A second threshold value acquisition unit, configured to acquire a preset threshold value of the reference channel when the change amount of the target channel is not greater than the change amount of the reference channel;

[0178] The third threshold determination unit is used to determine the preset threshold of the reference channel as the second adaptive decision threshold.

[0179] In one embodiment, the first threshold value obtaining unit includes:

[0180] A coefficient acquisition subunit, used to acquire a threshold determination coefficient;

[0181] The threshold determination subunit is used to determine the target threshold of the adaptive target channel according to the threshold determination coefficient, the change amount of the adaptive target channel and the second capacitance of the adaptive target channel.

[0182] In one embodiment, the state determination module 305 includes:

[0183] A first size determination unit, configured to determine whether the change amount of the adaptive target channel is greater than the first adaptive decision threshold when the change amount of the adaptive target channel is greater than the change amount of the reference channel, and / or determine whether the change amount of the reference channel is greater than the second adaptive decision threshold;

[0184] A first state determination unit, configured to determine that the glasses are currently in a wearing state when the change amount of the adaptive target channel is greater than the first adaptive determination threshold, and / or the change amount of the reference channel is greater than the second adaptive determination threshold;

[0185] A second state determination unit, configured to determine that the glasses are currently in a non-worn state when the change amount of the adaptive target channel is not greater than the first adaptive determination threshold and the change amount of the reference channel is not greater than the second adaptive determination threshold;

[0186] A second size determination unit, configured to determine whether the change amount of the reference channel is greater than the second adaptive determination threshold when the change amount of the adaptive target channel is not greater than the change amount of the reference channel;

[0187] a third state determination unit, configured to determine that the glasses are currently in a wearing state when the variation of the reference channel is greater than the second adaptive determination threshold;

[0188] The fourth state determination unit is used to determine that the glasses are currently in a not-worn state when the change amount of the reference channel is not greater than the second adaptive determination threshold.

[0189] In one embodiment, the channel determination module 302 includes:

[0190] A sorting unit, used for sorting the plurality of channels in descending order of the amount of change;

[0191] A quantity acquisition unit, used to acquire the quantity of the adaptive target channels;

[0192] The channel determination unit is used to determine at least one of the channels in the front row as the adaptive target channel according to the quantity.

[0193] In one embodiment, the number of the adaptive target channels is multiple; the threshold determination module 304 includes:

[0194] A threshold determination unit, used to determine an adaptive decision threshold corresponding to each of the adaptive target channels according to a magnitude relationship between a change amount of each of the adaptive target channels and a change amount of the reference channel;

[0195] The state determination module 305 includes:

[0196] A determination result determining unit, configured to determine a determination result corresponding to each of the adaptive target channels according to a change amount of each of the adaptive target channels, a change amount of the reference channel, and an adaptive determination threshold corresponding to each of the adaptive target channels;

[0197] The state determination unit is used to determine that the glasses are currently in a wearing state when the determination result corresponding to any of the adaptive target channels indicates that the glasses are currently in a wearing state.

[0198] In one embodiment, the variation acquisition module 301 includes:

[0199] A first capacitance acquisition unit, used to acquire first capacitances of multiple channels in the sensing area of ​​the glasses;

[0200] A second capacitance acquisition unit, used to acquire second capacitances of a plurality of channels in the sensing area when the glasses are not worn;

[0201] The change amount determining unit is used to determine the change amount of each channel according to the first capacitance and the second capacitance of each channel.

[0202] In one embodiment, the first capacitance acquisition unit includes:

[0203] An upper limit acquisition subunit, used to acquire the upper limit values ​​of capacitance of multiple channels in the sensing area when the glasses are in a wearing state;

[0204] A lower limit acquisition subunit, used to acquire the lower limit values ​​of capacitance of multiple channels in the sensing area when the glasses are not worn;

[0205] A collection subunit, used for collecting the initial first capacitance of multiple channels of the sensing area of ​​the glasses for multiple times;

[0206] a removal subunit, configured to remove the initial first capacitances of the plurality of channels collected at any time when the initial first capacitance of any channel collected at any time is greater than the capacitance upper limit value or less than the capacitance lower limit value;

[0207] The first capacitance determination subunit is used to determine the average value of the initial first capacitance of each channel of the sensing area of ​​the glasses collected for multiple times as the first capacitance of each channel.

[0208] By adopting the technical solution of the embodiment of the present application, the adaptive target channel used for judging the wearing state of the glasses is adaptively determined according to the change amount of each channel, rather than using a fixed channel for judgment. Considering that the change amount of the same channel of users with different head shapes may also be different, the selected adaptive target channel is a channel suitable for the current user; considering the different clamping forces, the adaptive judgment threshold is adaptively determined according to the relationship between the change amount of the adaptive target channel and the change amount of the reference channel. Therefore, the wearing state of the glasses is determined according to the adaptive judgment threshold, which can adapt to different clamping forces. In this way, the technical solution of the embodiment of the present application can adapt to different head shapes and clamping forces to achieve accurate judgment of the wearing state of the glasses.

[0209] For the specific definition of the glasses wearing detection device, please refer to the definition of the glasses wearing detection method above, which will not be repeated here. Each module in the above-mentioned glasses wearing detection device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0210] In addition, the present application also provides an electronic device, which may be an extended reality glasses. Figure 4 As shown, it shows a schematic diagram of the structure of the electronic device involved in this application, specifically:

[0211] The electronic device may include one or more processors 401 of processing cores and one or more computer-readable storage media memories 402 and other components. Those skilled in the art will appreciate that Figure 4 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0212] The processor 401 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, the processor 401 performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.

[0213] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.

[0214] In one embodiment, the electronic device further includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, power consumption management and other functions through the power management system. The power supply 403 can also include any components such as one or more DC or AC power supplies, recharging systems, power supply device debugging circuits, power converters or inverters, and power status indicators.

[0215] In one embodiment, the electronic device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0216] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby implementing the steps in any of the glasses wearing detection methods provided in the embodiments of the present application.

[0217] When the specific electronic device is wearable optical see-through smart glasses, in addition to the above structure, it also includes at least a glasses body frame, an optical display component, an electronic circuit component, a sensor, etc. The sensors built into the glasses include a heart rate monitor, a blood glucose tester, a microphone, a camera and / or an eye tracker.

[0218] Those skilled in the art will understand that Figure 4 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0219] In one embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method described in any embodiment of the present application is implemented.

[0220] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in any embodiment of the present application is implemented.

[0221] In some embodiments, a computer program product is also proposed, including a computer program or instructions, which implement the method described in any embodiment of the present application when executed by a processor.

[0222] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0223] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0224] To this end, the present application provides a computer-readable storage medium, on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any one of the glasses wearing detection methods provided in the present application.

[0225] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0226] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0227] Since the instructions stored in the computer-readable storage medium can execute the steps in any of the glasses wearing detection methods provided in the present application, the beneficial effects that can be achieved by any of the glasses wearing detection methods provided in the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0228] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0229] The above is a detailed introduction to the glasses wearing detection method, device, electronic device and computer-readable storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for detecting the wearing of glasses, characterized in that: include: Obtaining current first capacitances of multiple channels in the sensing area of ​​the glasses relative to changes in second capacitances of the multiple channels when the glasses are not worn; Determining an adaptive target channel according to the amount of change of each of the channels; Get the change of the reference channel; The reference channel is one of the multiple channels; Determining an adaptive decision threshold according to a magnitude relationship between a change amount of the adaptive target channel and a change amount of the reference channel; determining whether the glasses are currently in a wearing state according to the change amount of the adaptive target channel, the change amount of the reference channel and the adaptive determination threshold; The step of determining the adaptive decision threshold according to the magnitude relationship between the change amount of the adaptive target channel and the change amount of the reference channel includes: When the change amount of the adaptive target channel is greater than the change amount of the reference channel, acquiring a target threshold of the adaptive target channel and a preset threshold of the reference channel; Determining the target threshold of the adaptive target channel as a first adaptive decision threshold compared with the change amount of the adaptive target channel; Determine the preset threshold of the reference channel as a second adaptive decision threshold to be compared with the variation of the reference channel; When the change amount of the target channel is not greater than the change amount of the reference channel, obtaining a preset threshold value of the reference channel; Determine the preset threshold of the reference channel as the second adaptive decision threshold; Determining the adaptive target channel according to the change amount of each channel includes: Sorting the plurality of channels in descending order of the amount of change; Obtaining the number of the adaptive target channels; According to the quantity, at least one of the channels ranked at the top is determined as the adaptive target channel.

2. The method according to claim 1, characterized in that The step of obtaining a target threshold of the adaptive target channel includes: Get the threshold determination coefficient; A target threshold of the adaptive target channel is determined according to the threshold determination coefficient, the change amount of the adaptive target channel, and the second capacitance of the adaptive target channel.

3. The method according to claim 1, characterized in that: The determining whether the glasses are currently in a wearing state according to the change amount of the adaptive target channel, the change amount of the reference channel and the adaptive determination threshold comprises: When the change amount of the adaptive target channel is greater than the change amount of the reference channel, determining whether the change amount of the adaptive target channel is greater than the first adaptive decision threshold, and / or determining whether the change amount of the reference channel is greater than the second adaptive decision threshold; When the change amount of the adaptive target channel is greater than the first adaptive determination threshold, and / or the change amount of the reference channel is greater than the second adaptive determination threshold, determining that the glasses are currently in a wearing state; When the change amount of the adaptive target channel is not greater than the first adaptive determination threshold, and the change amount of the reference channel is not greater than the second adaptive determination threshold, determining that the glasses are currently in a non-worn state; When the change amount of the adaptive target channel is not greater than the change amount of the reference channel, determining whether the change amount of the reference channel is greater than the second adaptive determination threshold; When the variation of the reference channel is greater than the second adaptive determination threshold, determining that the glasses are currently in a wearing state; When the variation of the reference channel is not greater than the second adaptive determination threshold, it is determined that the glasses are currently in a not-worn state.

4. The method according to claim 1, characterized in that: The number of the adaptive target channels is multiple; The step of determining the adaptive decision threshold according to the magnitude relationship between the change amount of the adaptive target channel and the change amount of the reference channel includes: Determining an adaptive decision threshold corresponding to each adaptive target channel according to a magnitude relationship between a change amount of each adaptive target channel and a change amount of the reference channel; The determining whether the glasses are currently in a wearing state according to the change amount of the adaptive target channel, the change amount of the reference channel and the adaptive determination threshold comprises: Determine a decision result corresponding to each of the adaptive target channels according to the change amount of each of the adaptive target channels, the change amount of the reference channel, and the adaptive decision threshold corresponding to each of the adaptive target channels; When the determination result corresponding to any of the adaptive target channels indicates that the glasses are currently in a wearing state, it is determined that the glasses are currently in a wearing state.

5. The method according to any one of claims 1 to 4, characterized in that: The obtaining of the current first capacitance of the plurality of channels in the sensing area of ​​the glasses relative to the change in the second capacitance of the plurality of channels when the glasses are not worn comprises: Acquire first capacitances of a plurality of channels in a sensing area of ​​the glasses; Acquire second capacitances of a plurality of channels in the sensing area when the glasses are not worn; The change amount of each channel is determined according to the first capacitance and the second capacitance of each channel.

6. The method according to claim 5, characterized in that The obtaining of first capacitances of a plurality of channels of a sensing area of ​​the glasses comprises: Acquire the upper capacitance values ​​of the plurality of channels in the sensing area when the glasses are in a wearing state; Acquire the lower limit values ​​of capacitance of multiple channels in the sensing area when the glasses are not worn; Collecting the initial first capacitance of multiple channels of the sensing area of ​​the glasses multiple times; When the initial first capacitance of any of the channels collected at any time is greater than the capacitance upper limit value or less than the capacitance lower limit value, removing the initial first capacitances of the multiple channels collected at that time; An average value of the initial first capacitance of each channel of the sensing area of ​​the glasses collected for the remaining multiple times is determined as the first capacitance of each channel.

7. A glasses wearing detection device, characterized in that: include: A change acquisition module, used for acquiring a change in a current first capacitance of a plurality of channels in a sensing area of ​​the glasses relative to a second capacitance of the plurality of channels when the glasses are not worn; A channel determination module, used for determining an adaptive target channel according to the variation of each of the channels; A reference acquisition module is used to obtain the variation of the reference channel; The reference channel is one of the multiple channels; A threshold determination module, used to determine an adaptive decision threshold according to the magnitude relationship between the change amount of the adaptive target channel and the change amount of the reference channel; a state determination module, used to determine whether the glasses are currently in a wearing state according to the change amount of the adaptive target channel, the change amount of the reference channel and the adaptive determination threshold; The threshold determination module comprises: A first threshold value acquisition unit, configured to acquire a target threshold value of the adaptive target channel and a preset threshold value of the reference channel when the change amount of the adaptive target channel is greater than the change amount of the reference channel; A first threshold determination unit, configured to determine the target threshold of the adaptive target channel as a first adaptive decision threshold to be compared with the variation of the adaptive target channel; A second threshold determination unit, configured to determine a preset threshold of the reference channel as a second adaptive determination threshold to be compared with the variation of the reference channel; A second threshold value acquisition unit, configured to acquire a preset threshold value of the reference channel when the change amount of the target channel is not greater than the change amount of the reference channel; A third threshold determination unit, configured to determine a preset threshold of the reference channel as the second adaptive determination threshold; The channel determination module comprises: A sorting unit, used for sorting the plurality of channels in descending order of the amount of change; A quantity acquisition unit, used to acquire the quantity of the adaptive target channels; The channel determination unit is used to determine at least one of the channels in the front row as the adaptive target channel according to the quantity.

8. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the glasses wearing detection method as claimed in any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the glasses wearing detection method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Wearing state detection method of wearable device and wearable device

    CN106291121A

  • Wearing state detection method and device, wearing equipment, storage medium and product

    CN118408581A