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

By adaptively adjusting the judgment threshold and based on the change in channel capacitance of the glasses' sensing area, the accuracy of wearing detection under different head shapes and clamping forces is solved, thus achieving accurate determination of the glasses' wearing status.

WO2026144264A1PCT designated stage Publication Date: 2026-07-09FALCON INNOVATIONS TECH (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
FALCON INNOVATIONS TECH (SHENZHEN) CO LTD
Filing Date
2025-09-11
Publication Date
2026-07-09

Smart Images

  • Figure CN2025120789_09072026_PF_FP_ABST
    Figure CN2025120789_09072026_PF_FP_ABST
Patent Text Reader

Abstract

A glasses wearing detection method, an electronic device, and a computer-readable storage medium, which relate to the technical field of wearing detection. The method comprises: acquiring first capacitances of glasses; acquiring second capacitances in an unworn state; determining variations; determining an adaptive target channel; acquiring a variation of a reference channel; determining an adaptive determination threshold; and determining whether the glasses are currently in a worn state. Therefore, the wearing state of glasses can be accurately determined.
Need to check novelty before this filing date? Find Prior Art

Description

Methods for detecting eyeglass wear, electronic devices, and computer-readable storage media

[0001] This application claims priority to Chinese Patent Application No. 2024119791361, filed on December 31, 2024, entitled "Method, Apparatus, Electronic Device and Computer-Readable Storage Medium for Detecting Wearing of Eyeglasses", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of wear detection technology, specifically to a method, apparatus, electronic device, and computer-readable storage medium for detecting the wear of eyeglasses. Background Technology

[0003] Detection of eyeglass wear is important for the safe use of eyeglasses and for saving power in smart glasses. The relevant technology determines whether eyeglasses are being worn by checking if the difference between the current capacitance and the capacitance to ground exceeds a fixed threshold. Technical issues

[0004] However, due to differences in head shape and clamping force when wearing glasses, a fixed judgment threshold is difficult to apply to all people, which can lead to inaccurate test results. Technical solutions

[0005] This application provides 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.

[0006] In a first aspect, embodiments of this application provide a method for detecting the wearing of eyeglasses, including:

[0007] The change in the 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;

[0008] The adaptive target channel is determined based on the change in each of the aforementioned channels;

[0009] Obtain the change in a reference channel; the reference channel is one of the plurality of channels.

[0010] The adaptive judgment threshold is determined based on the relationship between the change in the adaptive target channel and the change in the reference channel.

[0011] Based on the change in the adaptive target channel, the change in the reference channel, and the adaptive judgment threshold, it is determined whether the glasses are currently being worn.

[0012] In one embodiment, determining the adaptive judgment threshold based on the relationship between the change in the adaptive target channel and the change in the reference channel includes:

[0013] When the change in the adaptive target channel is greater than the change in the reference channel, the target threshold of the adaptive target channel and the preset threshold of the reference channel are obtained.

[0014] The target threshold of the adaptive target channel is determined as a first adaptive judgment threshold to be compared with the change amount of the adaptive target channel;

[0015] The preset threshold of the reference channel is determined as a second adaptive judgment threshold to be compared with the change in the reference channel;

[0016] When the change in the target channel is not greater than the change in the reference channel, a preset threshold of the reference channel is obtained;

[0017] The preset threshold of the reference channel is determined as the second adaptive judgment threshold.

[0018] In one embodiment, obtaining the target threshold of the adaptive target channel includes:

[0019] Obtain the threshold determination coefficient;

[0020] The target threshold of the adaptive target channel is determined based on the threshold determination coefficient, the change in the adaptive target channel, and the second capacitance of the adaptive target channel.

[0021] In one embodiment, determining whether the glasses are currently being worn based on the change in the adaptive target channel, the change in the reference channel, and the adaptive determination threshold includes:

[0022] When the change in the adaptive target channel is greater than the change in the reference channel, determine whether the change in the adaptive target channel is greater than the first adaptive determination threshold, and / or determine whether the change in the reference channel is greater than the second adaptive determination threshold.

[0023] When the change in the adaptive target channel is greater than the first adaptive determination threshold, and / or the change in the reference channel is greater than the second adaptive determination threshold, it is determined that the glasses are currently being worn.

[0024] When the change in the adaptive target channel is not greater than the first adaptive judgment threshold and the change in the reference channel is not greater than the second adaptive judgment threshold, it is determined that the glasses are currently not being worn.

[0025] When the change in the adaptive target channel is not greater than the change in the reference channel, determine whether the change in the reference channel is greater than the second adaptive judgment threshold.

[0026] When the change in the reference channel is greater than the second adaptive determination threshold, it is determined that the glasses are currently being worn.

[0027] When the change in the reference channel is not greater than the second adaptive determination threshold, it is determined that the glasses are currently not being worn.

[0028] In one embodiment, determining the adaptive target channel based on the change in each of the channels includes:

[0029] The channels are sorted in descending order of the magnitude of change.

[0030] Obtain the number of the adaptive target channels;

[0031] Based on the stated quantity, at least one of the top-ranked channels is identified as the adaptive target channel.

[0032] In one embodiment, the number of adaptive target channels is multiple;

[0033] The step of determining the adaptive judgment threshold based on the relationship between the change in the adaptive target channel and the change in the reference channel includes:

[0034] Based on the relationship between the change amount of each adaptive target channel and the change amount of the reference channel, an adaptive judgment threshold corresponding to each adaptive target channel is determined.

[0035] The step of determining whether the glasses are currently being worn based on the change in the adaptive target channel, the change in the reference channel, and the adaptive determination threshold includes:

[0036] Based on the change amount of each adaptive target channel, the change amount of the reference channel, and the adaptive judgment threshold corresponding to each adaptive target channel, the judgment result corresponding to each adaptive target channel is determined;

[0037] When the determination result corresponding to any of the adaptive target channels indicates that the glasses are currently being worn, it is determined that the glasses are currently being worn.

[0038] In one embodiment, the change in the first capacitance of the plurality of channels of 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 includes:

[0039] Obtain the first capacitance of multiple channels in the sensing area of ​​the glasses;

[0040] The second capacitance of multiple channels of the sensing area is obtained when the glasses are not worn.

[0041] The change in each of the channels is determined based on the first and second capacitances of each channel.

[0042] In one embodiment, acquiring the first capacitance of multiple channels of the sensing area of ​​the glasses includes:

[0043] When the glasses are being worn, the upper limit values ​​of the capacitance of multiple channels in the sensing area are obtained;

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

[0045] The initial first capacitance of multiple channels in the sensing area of ​​the glasses is collected multiple times;

[0046] If the initial first capacitance of any channel in any acquisition is greater than the upper limit of the capacitance or less than the lower limit of the capacitance, the initial first capacitance of the plurality of channels in that acquisition is removed.

[0047] The average value of the initial first capacitance of each channel of the sensing area of ​​the glasses collected from the remaining multiple acquisitions is determined as the first capacitance of each channel.

[0048] Secondly, embodiments of this application provide a device for detecting the wearing of eyeglasses, comprising:

[0049] The change acquisition module is used to acquire the change in the first capacitance of multiple channels of the sensing area of ​​the glasses relative to the change in the second capacitance of the multiple channels when the glasses are not worn.

[0050] The channel determination module is used to determine the adaptive target channel based on the change amount of each of the channels;

[0051] A reference acquisition module is used to acquire the change in a reference channel; the reference channel is one of the plurality of channels.

[0052] The threshold determination module is used to determine an adaptive judgment threshold based on the relationship between the change in the adaptive target channel and the change in the reference channel.

[0053] The state determination module is used to determine whether the glasses are currently being worn based on the change in the adaptive target channel, the change in the reference channel, and the adaptive judgment threshold.

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

[0055] The first threshold acquisition unit is used to acquire the target threshold of the adaptive target channel and the preset threshold of the reference channel when the change amount of the adaptive target channel is greater than the change amount of the reference channel.

[0056] The first threshold determination unit is used to determine the target threshold of the adaptive target channel as a first adaptive judgment threshold to be compared with the change amount of the adaptive target channel;

[0057] The second threshold determination unit is used to determine the preset threshold of the reference channel as a second adaptive judgment threshold to be compared with the change amount of the reference channel;

[0058] The second threshold acquisition unit is used to acquire a preset threshold of the reference channel when the change in the target channel is not greater than the change in the reference channel.

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

[0060] In one embodiment, the first threshold acquisition unit includes:

[0061] The coefficient acquisition subunit is used to obtain the threshold determination coefficients;

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

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

[0064] The first size determination unit is used to determine whether the change in the adaptive target channel is greater than the first adaptive judgment threshold when the change in the adaptive target channel is greater than the change in the reference channel, and / or to determine whether the change in the reference channel is greater than the second adaptive judgment threshold.

[0065] The first state determination unit is used to determine that the glasses are currently in a wearing state when the change in the adaptive target channel is greater than the first adaptive determination threshold, and / or the change in the reference channel is greater than the second adaptive determination threshold.

[0066] The second state determination unit is used to determine that the glasses are currently in an unworn state when the change in the adaptive target channel is not greater than the first adaptive determination threshold and the change in the reference channel is not greater than the second adaptive determination threshold.

[0067] The second size determination unit is used to determine whether the change in the reference channel is greater than the second adaptive judgment threshold when the change in the adaptive target channel is not greater than the change in the reference channel.

[0068] The third state determination unit is used to determine that the glasses are currently in a wearing state when the change in the reference channel is greater than the second adaptive determination threshold.

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

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

[0071] A sorting unit is used to sort the multiple channels in descending order of the change amount;

[0072] A quantity acquisition unit is used to acquire the number of the adaptive target channels;

[0073] A channel determination unit is configured to determine at least one of the top-ranked channels as the adaptive target channel based on the number of channels.

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

[0075] The threshold determination unit is used to determine the adaptive judgment threshold corresponding to each adaptive target channel based on the relationship between the change amount of each adaptive target channel and the change amount of the reference channel.

[0076] The status determination module includes:

[0077] The determination result unit is used to determine the determination result corresponding to each adaptive target channel based on the change amount of each adaptive target channel, the change amount of the reference channel, and the adaptive determination threshold corresponding to each adaptive target channel.

[0078] The state determination unit is used to determine that the glasses are currently being worn when the determination result corresponding to any of the adaptive target channels indicates that the glasses are currently being worn.

[0079] In one embodiment, the change acquisition module includes:

[0080] The first capacitance acquisition unit is used to acquire the first capacitance of multiple channels of the sensing area of ​​the glasses;

[0081] The second capacitance acquisition unit is used to acquire the second capacitance of multiple channels of the sensing area when the glasses are not worn.

[0082] The change determination unit is used to determine the change amount of each of the channels based on the first capacitance and the second capacitance of each channel.

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

[0084] The upper limit acquisition subunit is used to acquire the upper limit value of the capacitance of multiple channels of the sensing area when the glasses are worn; the lower limit acquisition subunit is used to acquire the lower limit value of the capacitance of multiple channels of the sensing area when the glasses are not worn.

[0085] The acquisition subunit is used to acquire the initial first capacitance of multiple channels of the sensing area of ​​the glasses multiple times;

[0086] The removal subunit is used to remove the initial first capacitance of the plurality of channels in any acquisition when the initial first capacitance of any channel in any acquisition is greater than the upper limit value of the capacitance or less than the lower limit value of the capacitance.

[0087] 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 from the remaining multiple acquisitions as the first capacitance of each channel.

[0088] Thirdly, embodiments of this application also provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps in the above-described method for detecting the wearing of glasses.

[0089] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the above-described method for detecting the wearing of glasses.

[0090] Fifthly, embodiments of this application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described in embodiments of this application. Beneficial effects

[0091] In summary, in this embodiment, the adaptive target channel used to determine the wearing status of glasses is adaptively determined based on the changes in each channel, rather than using a fixed channel. This takes into account that the changes in the same channel may differ for users with different head shapes, and the selected adaptive target channel is suitable for the current user. Considering the varying clamping forces, the adaptive determination threshold is adaptively determined based on the relationship between the changes in the adaptive target channel and the changes in the reference channel. Therefore, determining the wearing status of glasses based on the adaptive determination threshold can adapt to different clamping forces. Thus, the technical solution of this embodiment can adapt to different head shapes and clamping forces, achieving accurate determination of the wearing status of glasses. Attached Figure Description

[0092] To more clearly illustrate the technical solutions in this application, the accompanying drawings used 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 effort.

[0093] Figure 1 is a schematic diagram of the steps of a method for detecting the wearing of glasses according to an embodiment of this application;

[0094] Figure 2 is a schematic diagram of the sensing area provided in an embodiment of this application;

[0095] Figure 3 is a schematic diagram of the structure of a glasses wearing detection device provided in an embodiment of this application;

[0096] Figure 4 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Embodiments of the present invention

[0097] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0098] In one embodiment, as shown in FIG1, a method for detecting the wearing of glasses is provided. Although the logical order is shown in the schematic diagram, in some cases, the steps shown or described may be performed in a different order than that shown in the figures. Specifically, this method for detecting the wearing of glasses can be applied to a terminal, wherein the terminal may include, but is not limited to, one or more of smart glasses, extended reality (XR) glasses, smartphones, tablets, laptops, desktop computers, and in-vehicle computers.

[0099] Specifically, augmented reality glasses refer to wearable optical see-through smart glasses. Augmented reality glasses can include, but are not limited to: augmented reality (AR) glasses, virtual reality (VR) glasses, and mixed reality (MR) glasses.

[0100] When the glasses wearing detection method of one embodiment of this application is applied to smart glasses or augmented reality glasses, the smart glasses or augmented reality glasses can collect the capacitance of multiple channels of the sensing area of ​​the glasses, and directly determine whether the glasses are currently being worn based on the capacitance of multiple channels.

[0101] When the glasses wearing detection method of one embodiment of this application is applied to a smartphone, tablet computer, portable computer, desktop computer, and / or in-vehicle computer, the glasses can collect the capacitance of multiple channels in the sensing area. The glasses transmit the collected capacitance to the smartphone, tablet computer, portable computer, desktop computer, and / or in-vehicle computer. Based on the capacitance transmitted by the glasses, the smartphone, tablet computer, portable computer, desktop computer, and / or in-vehicle computer determines whether the glasses are currently being worn. Detailed descriptions are provided below. It should be noted that the order of description of the following embodiments is not intended to limit the priority of the embodiments.

[0102] According to the eyeglass wearing detection method shown in Figure 1, the method includes at least steps S110 to S150, which are described in detail below:

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

[0104] When it is necessary to determine the wearing status of the glasses, the current first capacitance of multiple channels in the glasses' sensing area is obtained. This can be determined when the glasses' application is launched. For example, the wearing status is determined when a call is detected or a music playback application is playing music.

[0105] The sensing area of ​​the glasses can be located in the area where the glasses will come into contact with the human body when worn, as shown in Figure 2. It can be positioned in the area where the temples contact the wearer. The sensing area includes multiple channels, each with an equal detection area. Each channel contains a capacitive flexible printed circuit (FPC), which can collect the capacitance of that channel.

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

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

[0108] When it is necessary to determine the wearing status 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 in that channel.

[0109] Optionally, the initial first capacitance corresponding to each channel can be collected multiple times within a preset time range (e.g., 10 seconds). The average value of the initial first capacitance of each channel collected multiple times is then calculated 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 being worn, the initial second capacitance of each channel can be collected multiple times within a preset time range (e.g., 10 seconds) at regular intervals. The average value of the initial second capacitance of each channel collected multiple times is then calculated to obtain the second capacitance.

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

[0112] Optionally, the second capacitance of each channel when the glasses are not worn can be the capacitance collected when the user removes the glasses during the wearing process.

[0113] In this way, the change amount of each channel is determined based on the first and second capacitances of each channel, which is beneficial for subsequently determining the adaptive target channel and adaptive judgment threshold based on the change amount of each channel, and thus determining the wearing status of the glasses.

[0114] Based on the above technical solution, obtaining the first capacitance of multiple channels of the sensing area of ​​the glasses may include: obtaining the upper limit value of the capacitance of multiple channels of the sensing area when the glasses are worn; obtaining the lower limit value of the capacitance of multiple channels of the sensing area when the glasses are not worn; repeatedly collecting the initial first capacitance of multiple channels of the sensing area of ​​the glasses; when the initial first capacitance of any channel collected in any instance is greater than the upper limit value or less than the lower limit value, removing the initial first capacitance of the multiple channels collected in that instance; and determining the average value of the remaining initial first capacitances of each channel of the sensing area of ​​the glasses collected in multiple instances as the first capacitance of each channel. Because of interference from user behavior, such as the sensing area coming into contact with foreign objects like hair during the removal of the glasses, or the finger unintentionally touching the sensing area, the collected first capacitance may be inaccurate. Therefore, abnormal data is filtered out.

[0115] The upper and lower limits of capacitance for multiple channels in the sensing area can be predetermined. The upper limits are the capacitance values ​​collected for each channel when the glasses are worn, while the lower limits are the capacitance values ​​collected for each channel when the glasses are not worn. Each channel corresponds to one upper and one lower limit.

[0116] If the initial first capacitance of any channel in any acquisition is greater than the upper limit of the channel's capacitance or less than the lower limit of the channel's capacitance, the acquisition can be considered to have been interfered with. Therefore, the initial first capacitance of each channel in this acquisition can be removed. The average value of the initial first capacitance of each channel in the sensing area of ​​the glasses from the remaining multiple acquisitions is determined as the first capacitance of each channel.

[0117] Based on a similar principle, when determining the second capacitor, if the initial second capacitor of any channel is greater than the upper limit of the channel's capacitance or less than the lower limit of the channel's capacitance, the initial second capacitor of each channel in this acquisition is removed, and the average value of the initial second capacitors of each channel in the sensing area of ​​the glasses acquired in multiple acquisitions is determined as the second capacitor of each channel.

[0118] In this way, abnormal data that has been interfered with can be removed to obtain an accurate first capacitance, thereby ensuring the accuracy of the subsequent judgment of the wearing status of the glasses based on the first capacitance.

[0119] In step S120, an adaptive target channel is determined based on the change amount of each of the channels.

[0120] Each time the wearing status of the glasses needs to be determined, the changes in each channel may vary because different users may have different head shapes and the clamping force may differ each time the glasses are worn. Therefore, the adaptive target channel may also change each time the wearing status of the glasses is determined.

[0121] Some channels have a smaller contact area with the body when worn, resulting in a smaller change in the amount of change in that channel. To accurately determine the wearing status of the glasses, the adaptive target channel with a larger change in change can be used for judgment.

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

[0123] In another embodiment, if it is necessary to determine the wearing status of the glasses based on multiple adaptive target channels, the channels with the largest changes can be identified as the adaptive target channels.

[0124] In one embodiment, step S120 may include: sorting the multiple channels in descending order of the amount of change; obtaining the number of adaptive target channels; and determining at least one of the channels ranked first as the adaptive target channels based on the number.

[0125] The number of adaptive target channels can be configured by the system or provided to the user for user setting. The number N of adaptive target channels is an integer greater than 1 and less than the total number of channels.

[0126] The multiple channels are sorted in descending order of the change amount. Based on the determined number N of adaptive target channels, the top N channels are identified as adaptive target channels.

[0127] Therefore, since the channel with the greater change is better able to reflect the wearing status, at least one channel with the largest change is determined as the adaptive target channel, which helps to accurately determine the wearing status of the glasses based on the adaptive target channel.

[0128] In step S130, the change in a reference channel is obtained; the reference channel is one of the plurality of channels.

[0129] The reference channel is a preset channel, and it can be one of multiple channels. The threshold corresponding to the reference channel is preset. The reference channel is the default channel for determining the wearing status of the glasses. When determining the wearing status of the glasses based on the reference channel, if the change in the reference channel is greater than the preset threshold of the reference channel, the glasses are considered to be in a wearing state; if the change in the reference channel is not greater than the preset threshold of the reference channel, the glasses are considered to be in a non-wearing state.

[0130] A larger sensing area results in a smaller sensing distance and a larger capacitance. For individuals with smaller head shapes, the capacitance of each channel will be smaller. Conversely, for individuals with larger head shapes, a smaller preset threshold can detect wearing the glasses, but this is more susceptible to temperature drift. After temperature drift, the glasses will no longer be detectable when removed. Therefore, to accommodate a wider range of individuals, the preset threshold for the reference channel should be set as small as possible.

[0131] In step S140, an adaptive judgment threshold is determined based on the relationship between the change in the adaptive target channel and the change in the reference channel.

[0132] When the magnitudes of the changes in the adaptive target channel and the changes in the reference channel are different, the conditions for determining whether the glasses are being worn are different, and therefore the corresponding adaptive judgment thresholds are also different.

[0133] When the change in the adaptive target channel is greater than the change in the reference channel, the glasses can be considered to be in a wearing state 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.

[0134] The glasses are considered to be in a wearing state only when the change in the adaptive target channel is no greater than the change in the reference channel, and the change in the reference channel is greater than the preset threshold of the reference channel.

[0135] Therefore, the adaptive judgment threshold can be the target threshold of the adaptive target channel and the preset threshold of the reference channel, or it can be the preset threshold of the reference channel.

[0136] In step S150, the current state of the glasses is determined based on the change amount of the adaptive target channel, the change amount of the reference channel, and the adaptive determination threshold.

[0137] When the adaptive judgment threshold is different, the relationship between the change in the adaptive target channel and the change in the reference channel is also different, and the judgment conditions for determining whether the glasses are currently being worn are also different.

[0138] When the adaptive judgment threshold is the target threshold of the adaptive target channel and the preset threshold of the reference channel, if 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, it can be determined that the glasses are currently being worn; if the change in the adaptive target channel is not greater than the target threshold of the adaptive target channel, and the change in the reference channel is not greater than the preset threshold of the reference channel, it can be determined that the glasses are currently not being worn.

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

[0140] The adaptive target channel used in the technical solution of this application embodiment for determining the wearing status of glasses is adaptively determined based on the changes in each channel, rather than using a fixed channel. This takes into account that the changes in the same channel may differ for users with different head shapes, and the selected adaptive target channel is suitable for the current user. Considering different clamping forces, the adaptive determination threshold is adaptively determined based on the relationship between the changes in the adaptive target channel and the changes in the reference channel. Therefore, determining the wearing status of glasses based on the adaptive determination threshold can adapt to different clamping forces. Thus, the technical solution of this application embodiment can adapt to different head shapes and clamping forces, achieving accurate determination of the wearing status of glasses.

[0141] Based on the above technical solution, as an embodiment, step S140 may include: when the change in the adaptive target channel is greater than the change in the reference channel, obtaining 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 judgment threshold to be compared with the change in the adaptive target channel; determining the preset threshold of the reference channel as a second adaptive judgment threshold to be compared with the change in the reference channel; when the change in the target channel is not greater than the change in the reference channel, obtaining the preset threshold of the reference channel; and determining the preset threshold of the reference channel as the second adaptive judgment threshold.

[0142] The target threshold of the adaptive target channel refers to the threshold of the adaptive target channel. The target threshold of the adaptive target channel can be determined by the following method: obtaining the threshold determination coefficient; and determining the target threshold of the adaptive target channel based on the threshold determination coefficient, the change amount of the adaptive target channel, and the second capacitance of the adaptive target channel.

[0143] 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*β; where 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 in the adaptive target channel, and β represents the threshold determination coefficient, where β can be set according to actual needs and can be 0.7.

[0144] When the change in the adaptive target channel is greater than the change in the reference channel, the glasses can be determined to be in a wearing state as long as the change in either the adaptive target channel or the reference channel is greater than the threshold of that channel. 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 judgment threshold to be compared with the change in the adaptive target channel; and determine the preset threshold of the reference channel as the second adaptive judgment threshold to be compared with the change in the reference channel.

[0145] 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.

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

[0147] Based on the above technical solution, as an embodiment, step S150 may include: when the change in the adaptive target channel is greater than the change in the reference channel, determining whether the change in the adaptive target channel is greater than the first adaptive determination threshold, and / or determining whether the change in the reference channel is greater than the second adaptive determination threshold; when the change in the adaptive target channel is greater than the first adaptive determination threshold, and / or the change in the reference channel is greater than the second adaptive determination threshold, determining that the glasses are currently in a wearing state; when the change in the adaptive target channel is not greater than the first adaptive determination threshold, and the change in the reference channel is not greater than the second adaptive determination threshold, determining that the glasses are currently in a non-wearing state; when the change in the adaptive target channel is not greater than the change in the reference channel, determining whether the change in the reference channel is greater than the second adaptive determination threshold; when the change in the reference channel is greater than the second adaptive determination threshold, determining that the glasses are currently in a wearing state; when the change in the reference channel is not greater than the second adaptive determination threshold, determining that the glasses are currently in a non-wearing state.

[0148] When the change in the adaptive target channel is greater than the change in the reference channel, and the change in the adaptive target channel is greater than the first adaptive determination threshold, and / or the change in the reference channel is greater than the second adaptive determination threshold, then it is determined that the glasses are currently being worn.

[0149] When the change in the adaptive target channel is greater than the change in the reference channel, and the change in the adaptive target channel is not greater than the first adaptive determination threshold and the change in the reference channel is not greater than the second adaptive determination threshold, then it is determined that the glasses are currently not being worn.

[0150] If the change in the adaptive target channel is not greater than the change in the reference channel, and the change in the reference channel is detected to be greater than the second adaptive determination threshold, then it is determined that the glasses are currently being worn.

[0151] If the change in the adaptive target channel is not greater than the change in the reference channel, and the change in the reference channel is not greater than the second adaptive determination threshold, then it is determined that the glasses are currently not being worn.

[0152] By adopting the technical solution of this application embodiment, when the magnitude 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. By determining different judgment conditions according to different adaptive judgment thresholds, it is possible to adapt to different clamping forces and thus achieve accurate determination of the wearing state of the glasses.

[0153] Based on the above technical solution, as an embodiment, the number of adaptive target channels can be multiple. When the number of adaptive target channels is multiple, determining the adaptive judgment threshold based on the relationship between the change in the adaptive target channel and the change in the reference channel may include: determining the adaptive judgment threshold corresponding to each adaptive target channel based on the relationship between the change in each adaptive target channel and the change in the reference channel.

[0154] Determining whether the glasses are currently being worn based on the change in the adaptive target channel, the change in the reference channel, and the adaptive determination threshold may include: determining a determination result for each adaptive target channel based on the change in each adaptive target channel, the change in the reference channel, and the adaptive determination threshold corresponding to each adaptive target channel; and determining that the glasses are currently being worn when the determination result for any adaptive target channel indicates that the glasses are currently being worn.

[0155] When multiple adaptive target channels exist, a determination result can be determined for each adaptive target channel. The method for determining the determination result based on each adaptive target channel is similar to the method described above for determining whether the glasses are currently being worn based on one adaptive target channel.

[0156] Specifically, for each adaptive target channel: an adaptive judgment threshold is determined based on the relationship between the change in the adaptive target channel and the change in the reference channel; when the change in the adaptive target channel is greater than the change in the reference channel, the target threshold of the adaptive target channel and the preset threshold of the reference channel are determined as the adaptive judgment threshold; when the change in the adaptive target channel is greater than the change in the reference channel, the preset threshold of the reference channel is determined as the adaptive judgment threshold. 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 judgment result corresponding to the adaptive target channel is determined to be that the glasses are currently in a wearing state.

[0157] 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 not greater than the target threshold of the adaptive target channel, and the change in the reference channel is not greater than the preset threshold of the reference channel, then the determination result corresponding to the adaptive target channel is that the glasses are currently not being worn.

[0158] If the change in the adaptive target channel is no greater than the change in the reference channel, and 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 that the glasses are currently being worn.

[0159] If the change in the adaptive target channel is not greater than the change in the reference channel, and if the change in the reference channel is not greater than a preset threshold of the reference channel, then the determination result corresponding to the adaptive target channel is that the glasses are currently not being worn.

[0160] If the determination result corresponding to any adaptive target channel indicates that the glasses are currently being worn, then it is determined that the glasses are currently being worn.

[0161] In this process, the determination results for each adaptive target channel can be sequentially evaluated in descending order of the change amount. If the determination result for any adaptive target channel indicates that the glasses are currently being worn, then it can be directly determined that the glasses are currently being worn without needing to evaluate other adaptive target channels. By employing the technical solution of this application embodiment, multiple adaptive target channels can be used to jointly determine whether the glasses are currently being worn, thereby meeting the requirements of different head shapes and different clamping forces, and improving the accuracy of the determination results.

[0162] Based on the above technical solution, as an example, if it is determined that the glasses are currently not being worn, the various applications currently on the glasses can be turned off, or the glasses can be put into a low-power mode or certain functions can be turned off to reduce power consumption, increase the usage time of the glasses, and improve the user experience.

[0163] To facilitate better implementation of the eyeglasses wearing detection method of this application, this application also provides an eyeglasses wearing detection device based on the above-described eyeglasses wearing detection method. The meanings of the terms used are the same as in the above-described eyeglasses wearing detection method, and specific implementation details can be found in the description of the method embodiments.

[0164] Please refer to Figure 3, which is a schematic diagram of the structure of a glasses wearing detection device according to an embodiment of this application. The glasses wearing detection device may include:

[0165] The change acquisition module 301 is used to acquire the change in the first capacitance of multiple channels of the sensing area of ​​the glasses relative to the change in the second capacitance of the multiple channels when the glasses are not worn.

[0166] The channel determination module 302 is used to determine the adaptive target channel based on the change amount of each of the channels;

[0167] Reference acquisition module 303 is used to acquire the change in a reference channel; the reference channel is one of the plurality of channels;

[0168] The threshold determination module 304 is used to determine an adaptive judgment threshold based on the relationship between the change in the adaptive target channel and the change in the reference channel.

[0169] The state determination module 305 is used to determine whether the glasses are currently being worn based on the change amount of the adaptive target channel, the change amount of the reference channel, and the adaptive judgment threshold.

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

[0171] The first threshold acquisition unit is used to acquire the target threshold of the adaptive target channel and the preset threshold of the reference channel when the change amount of the adaptive target channel is greater than the change amount of the reference channel.

[0172] The first threshold determination unit is used to determine the target threshold of the adaptive target channel as a first adaptive judgment threshold to be compared with the change amount of the adaptive target channel;

[0173] The second threshold determination unit is used to determine the preset threshold of the reference channel as a second adaptive judgment threshold to be compared with the change amount of the reference channel;

[0174] The second threshold acquisition unit is used to acquire a preset threshold of the reference channel when the change in the target channel is not greater than the change in the reference channel.

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

[0176] In one embodiment, the first threshold acquisition unit includes:

[0177] The coefficient acquisition subunit is used to obtain the threshold determination coefficients;

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

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

[0180] The first size determination unit is used to determine whether the change in the adaptive target channel is greater than the first adaptive judgment threshold when the change in the adaptive target channel is greater than the change in the reference channel, and / or to determine whether the change in the reference channel is greater than the second adaptive judgment threshold.

[0181] The first state determination unit is used to determine that the glasses are currently in a wearing state when the change in the adaptive target channel is greater than the first adaptive determination threshold, and / or the change in the reference channel is greater than the second adaptive determination threshold.

[0182] The second state determination unit is used to determine that the glasses are currently in an unworn state when the change in the adaptive target channel is not greater than the first adaptive determination threshold and the change in the reference channel is not greater than the second adaptive determination threshold.

[0183] The second size determination unit is used to determine whether the change in the reference channel is greater than the second adaptive judgment threshold when the change in the adaptive target channel is not greater than the change in the reference channel.

[0184] The third state determination unit is used to determine that the glasses are currently in a wearing state when the change in the reference channel is greater than the second adaptive determination threshold.

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

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

[0187] A sorting unit is used to sort the multiple channels in descending order of the change amount;

[0188] A quantity acquisition unit is used to acquire the number of the adaptive target channels;

[0189] A channel determination unit is configured to determine at least one of the top-ranked channels as the adaptive target channel based on the number of channels.

[0190] In one embodiment, the number of adaptive target channels is multiple; the threshold determination module 304 includes: a threshold determination unit, used to determine an adaptive judgment threshold corresponding to each adaptive target channel based on the relationship between the change amount of each adaptive target channel and the change amount of the reference channel;

[0191] The status determination module 305 includes:

[0192] The determination result unit is used to determine the determination result corresponding to each adaptive target channel based on the change amount of each adaptive target channel, the change amount of the reference channel, and the adaptive determination threshold corresponding to each adaptive target channel.

[0193] The state determination unit is used to determine that the glasses are currently being worn when the determination result corresponding to any of the adaptive target channels indicates that the glasses are currently being worn.

[0194] In one embodiment, the change acquisition module 301 includes:

[0195] The first capacitance acquisition unit is used to acquire the first capacitance of multiple channels of the sensing area of ​​the glasses;

[0196] The second capacitance acquisition unit is used to acquire the second capacitance of multiple channels of the sensing area when the glasses are not worn.

[0197] The change determination unit is used to determine the change amount of each of the channels based on the first capacitance and the second capacitance of each channel.

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

[0199] The upper limit acquisition subunit is used to acquire the upper limit values ​​of the capacitance of multiple channels of the sensing area when the glasses are in the wearing state;

[0200] The lower limit acquisition subunit is used to acquire the lower limit values ​​of the capacitance of multiple channels of the sensing area when the glasses are not worn.

[0201] The acquisition subunit is used to acquire the initial first capacitance of multiple channels of the sensing area of ​​the glasses multiple times;

[0202] The removal subunit is used to remove the initial first capacitance of the plurality of channels in any acquisition when the initial first capacitance of any channel in any acquisition is greater than the upper limit value of the capacitance or less than the lower limit value of the capacitance.

[0203] 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 from the remaining multiple acquisitions as the first capacitance of each channel.

[0204] The adaptive target channel used in the technical solution of this application embodiment for determining the wearing status of glasses is adaptively determined based on the changes in each channel, rather than using a fixed channel. This takes into account that the changes in the same channel may differ for users with different head shapes, and the selected adaptive target channel is suitable for the current user. Considering different clamping forces, the adaptive determination threshold is adaptively determined based on the relationship between the changes in the adaptive target channel and the changes in the reference channel. Therefore, determining the wearing status of glasses based on the adaptive determination threshold can adapt to different clamping forces. Thus, the technical solution of this application embodiment can adapt to different head shapes and clamping forces, achieving accurate determination of the wearing status of glasses.

[0205] Specific limitations regarding the eyeglass wearing detection device can be found in the above-described limitations of the eyeglass wearing detection method, and will not be repeated here. Each module in the aforementioned eyeglass wearing detection device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module. Furthermore, this application also provides an electronic device that can be an augmented reality eyeglass. Figure 4 shows a schematic diagram of the structure of the electronic device involved in this application, specifically:

[0206] The electronic device may include components such as a processor 401 with one or more processing cores and a memory 402 with one or more computer-readable storage media. Those skilled in the art will understand that the electronic device structure shown in FIG4 does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:

[0207] The processor 401 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 402, and by calling data stored in the memory 402, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. 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 handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 401.

[0208] 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. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, 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 high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.

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

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

[0211] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the electronic device loads 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 runs 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 this application.

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

[0213] Those skilled in the art will understand that the structure shown in Figure 4 is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which 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 different component arrangements.

[0214] In one embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the methods described in any embodiment of this application.

[0215] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method described in any embodiment of this application.

[0216] In some embodiments, a computer program product is also provided, including a computer program or instructions that, when executed by a processor, implement the methods described in any embodiment of this application.

[0217] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0218] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0219] Therefore, this application provides a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps in any of the eyeglass wearing detection methods provided in this application.

[0220] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

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

[0222] Since the instructions stored in the computer-readable storage medium can execute the steps in any of the eyeglass wearing detection methods provided in this application, the beneficial effects that any of the eyeglass wearing detection methods provided in this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.

[0223] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0224] The above provides a detailed description of the method, apparatus, electronic device, and computer-readable storage medium for detecting the wearing of glasses provided in this application. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for detecting the wearing of eyeglasses, wherein, include: The change in the 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; The adaptive target channel is determined based on the change in each of the aforementioned channels; Obtain the change in the reference channel; The reference channel is one of the plurality of channels; The adaptive judgment threshold is determined based on the relationship between the change in the adaptive target channel and the change in the reference channel. Based on the change in the adaptive target channel, the change in the reference channel, and the adaptive judgment threshold, it is determined whether the glasses are currently being worn.

2. The method according to claim 1, wherein, The step of determining the adaptive judgment threshold based on the relationship between the change in the adaptive target channel and the change in the reference channel includes: When the change in the adaptive target channel is greater than the change in the reference channel, the target threshold of the adaptive target channel and the preset threshold of the reference channel are obtained. The target threshold of the adaptive target channel is determined as a first adaptive judgment threshold to be compared with the change amount of the adaptive target channel; The preset threshold of the reference channel is determined as a second adaptive judgment threshold to be compared with the change in the reference channel; When the change in the target channel is not greater than the change in the reference channel, a preset threshold of the reference channel is obtained; The preset threshold of the reference channel is determined as the second adaptive judgment threshold.

3. The method according to claim 2, wherein, The step of obtaining the target threshold of the adaptive target channel includes: Obtain the threshold determination coefficient; The target threshold of the adaptive target channel is determined based on the threshold determination coefficient, the change in the adaptive target channel, and the second capacitance of the adaptive target channel.

4. The method according to claim 2, wherein, The step of determining whether the glasses are currently being worn based on the change in the adaptive target channel, the change in the reference channel, and the adaptive determination threshold includes: When the change in the adaptive target channel is greater than the change in the reference channel, it is determined whether the change in the adaptive target channel is greater than the first adaptive judgment threshold, and / or whether the change in the reference channel is greater than the second adaptive judgment threshold; when the change in the adaptive target channel is greater than the first adaptive judgment threshold, and / or the change in the reference channel is greater than the second adaptive judgment threshold, it is determined that the glasses are currently in a wearing state. When the change in the adaptive target channel is not greater than the first adaptive judgment threshold and the change in the reference channel is not greater than the second adaptive judgment threshold, it is determined that the glasses are currently not being worn. When the change in the adaptive target channel is not greater than the change in the reference channel, determine whether the change in the reference channel is greater than the second adaptive judgment threshold. When the change in the reference channel is greater than the second adaptive determination threshold, it is determined that the glasses are currently being worn. When the change in the reference channel is not greater than the second adaptive determination threshold, it is determined that the glasses are currently not being worn.

5. The method according to claim 1, wherein, The step of determining the adaptive target channel based on the change amount of each of the channels includes: The channels are sorted in descending order of the magnitude of change. Obtain the number of the adaptive target channels; Based on the stated quantity, at least one of the top-ranked channels is identified as the adaptive target channel.

6. The method according to claim 1, wherein, The number of adaptive target channels is multiple; The step of determining the adaptive judgment threshold based on the relationship between the change in the adaptive target channel and the change in the reference channel includes: Based on the relationship between the change amount of each adaptive target channel and the change amount of the reference channel, an adaptive judgment threshold corresponding to each adaptive target channel is determined; the step of determining whether the glasses are currently being worn based on the change amount of the adaptive target channel, the change amount of the reference channel, and the adaptive judgment threshold includes: determining a judgment result corresponding to each adaptive target channel based on the change amount of each adaptive target channel, the change amount of the reference channel, and the adaptive judgment threshold corresponding to each adaptive target channel; When the determination result corresponding to any of the adaptive target channels indicates that the glasses are currently being worn, it is determined that the glasses are currently being worn.

7. The method according to claim 1, wherein, The step of determining whether the glasses are currently being worn based on the change in the adaptive target channel, the change in the reference channel, and the adaptive determination threshold includes: The determination results for each adaptive target channel are determined sequentially in descending order of the change amount of each adaptive target channel. When the determination result corresponding to any of the adaptive target channels indicates that the glasses are currently being worn, it is directly determined that the glasses are currently being worn.

8. The method according to claim 1, wherein, The change in the first capacitance of the multiple channels of the sensing area of ​​the glasses relative to the change in the second capacitance of the multiple channels when the glasses are not worn includes: Obtain the first capacitance of multiple channels in the sensing area of ​​the glasses; When the glasses are not worn, the second capacitance of multiple channels of the sensing area is obtained; the change in each channel is determined based on the first capacitance and the second capacitance of each channel.

9. The method according to claim 8, wherein, The first capacitance of the multiple channels of the sensing area of ​​the glasses is obtained, including: When the glasses are worn, the upper limit value of the capacitance of multiple channels of the sensing area is obtained; when the glasses are not worn, the lower limit value of the capacitance of multiple channels of the sensing area is obtained. The initial first capacitance of multiple channels in the sensing area of ​​the glasses is collected multiple times; If the initial first capacitance of any channel in any acquisition is greater than the upper limit of the capacitance or less than the lower limit of the capacitance, the initial first capacitance of the plurality of channels in that acquisition is removed. The average value of the initial first capacitance of each channel of the sensing area of ​​the glasses collected from the remaining multiple acquisitions is determined as the first capacitance of each channel.

10. The method according to claim 1, wherein, The method further includes: If it is determined that the glasses are currently not being worn, close all applications currently used by the glasses, or put the glasses into a low-power mode.

11. The method according to claim 1, wherein, The method is applied to wearable optical see-through smart glasses.

12. The method according to claim 1, wherein, The sensor area of ​​the glasses is located in the area where the glasses come into contact with the human body when worn.

13. The method according to claim 1, wherein, The sensing area includes multiple channels, and the detection area of ​​the multiple channels is equal; a capacitive flexible circuit board is disposed in the channel; the capacitive flexible circuit board collects the capacitance of the channel.

14. The method according to claim 1, wherein, The change in the first capacitance of the multiple channels of the sensing area of ​​the glasses relative to the change in the second capacitance of the multiple channels when the glasses are not worn includes: Collect the current first capacitance of each of the channels, and obtain the second capacitance of each of the channels when the glasses are not worn; The difference between the current first capacitance and the second capacitance of each channel is determined as the change in the channel.

15. The method according to claim 14, wherein, The acquisition of the current first capacitance of each of the channels includes: The initial first capacitance corresponding to each channel is collected multiple times at a set time range; The first capacitance is obtained by averaging the initial first capacitance of each channel collected multiple times.

16. The method of claim 14, wherein, The step of obtaining the second capacitance of each of the channels when the glasses are not worn includes: When the glasses are not worn, the initial second capacitance corresponding to each channel is collected multiple times at a preset time range. The second capacitance is obtained by averaging the initial second capacitance of each channel acquired multiple times.

17. The method of claim 14, wherein, The step of obtaining the second capacitance of each of the channels when the glasses are not worn includes: The second capacitance of each of the channels is acquired and stored in advance; when the glasses are not worn, the second capacitance of each of the channels is acquired and stored in advance.

18. The method according to claim 1, wherein, The number of adaptive target channels is a parameter configured by the system or set by the user.

19. An electronic device, wherein, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the eyeglass wearing detection method as described in any one of claims 1 to 18.

20. A computer-readable storage medium, wherein, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the eyeglass wearing detection method as described in any one of claims 1 to 18.