Unlocking method, intelligent glasses, storage medium and electronic equipment

By combining smart glasses with gaze behavior recognition and visual image matching technology, accurate judgment of user intent is achieved, solving the security risks and power consumption problems in traditional digital key solutions, and improving the unlocking experience and battery life.

CN121982804APending Publication Date: 2026-05-05ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
Filing Date
2026-01-22
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

Existing digital key solutions suffer from issues such as long interaction links, insufficient security, and power consumption limitations in scenarios like smart door locks and two-wheeled vehicles. In particular, the lack of user identity verification in contactless unlocking leads to security risks and battery life problems.

Method used

Using smart glasses as a user identity and intent perception terminal, the system accurately determines whether the user intends to unlock the door through gaze behavior recognition and visual image matching technology. Combining Bluetooth signal strength and image similarity, it enables close-range triggering of the unlocking operation.

Benefits of technology

It improves the naturalness and security of unlocking interaction, reduces power consumption calculation frequency, extends the battery life of smart glasses, and avoids the poor experience of voice wake-up in noisy environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121982804A_ABST
    Figure CN121982804A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an unlocking method, intelligent glasses, a storage medium and electronic device.The unlocking method comprises the steps that firstly, the distance between the intelligent glasses and digital key equipment is obtained, and if the distance is smaller than or equal to a first preset threshold value, whether a user watches the digital key equipment currently or not is determined through the intelligent glasses; if yes, the similarity between a shot image corresponding to the intelligent glasses and at least one pre-stored equipment image corresponding to the digital key equipment is obtained; if the similarity is larger than or equal to a second preset threshold value, an unlocking instruction is sent to the digital key equipment, so that the digital key equipment executes corresponding unlocking operation based on the unlocking instruction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to artificial intelligence technology, and more particularly to a method for unlocking, smart glasses, storage media, and electronic devices. Background Technology

[0002] Digital keys are widely used in smart locks, two-wheeled vehicles, and other scenarios. Current mainstream solutions use smartphones as the carrier, unlocking via manual operation of an app, NFC (Near Field Communication) touch, or Bluetooth contactless unlocking. App operation and touch methods require users to unlock their phones, open the app, or actively approach the device, resulting in a lengthy interaction chain and an unnatural user experience. While contactless unlocking achieves the convenience of "opening upon approach" in some scenarios, it lacks accurate recognition of the user's true intentions and a user identity verification process, posing security risks. Furthermore, some terminal devices (such as smart locks) are limited by power consumption and hardware constraints, making contactless unlocking impossible. Summary of the Invention

[0003] The purpose of the embodiments in this specification is to provide a method for unlocking, smart glasses, storage media, and electronic devices.

[0004] This specification provides a method for unlocking devices. It proposes a digital key scheme based on "gaze-based unlocking" using smart glasses. The smart glasses act as a sensing terminal for user identity and intent. Combining gaze behavior recognition and visual image matching technologies, it accurately identifies user intent and completes the gaze-based unlocking operation. By precisely determining whether the user "intentionally unlocks," it solves the security risks of "passive triggering" in traditional near-field communication, providing users with a better digital key unlocking experience. This not only improves the naturalness of the unlocking interaction but also enhances unlocking security, showing broad application prospects. Furthermore, it eliminates the need for manual or voice wake-up, avoiding issues such as poor voice experience in noisy environments, thus improving the user's unlocking experience. High-power calculations such as visual image matching are only triggered at close range, reducing the trigger frequency and improving the smart glasses' battery life. The method includes: The distance between the smart glasses and the digital key device is obtained. If the distance is less than or equal to a first preset threshold, it is determined through the smart glasses whether the user is currently looking at the digital key device. If so, obtain the similarity between the captured image corresponding to the smart glasses and at least one device image corresponding to the pre-stored digital key device; If the similarity is greater than or equal to a second preset threshold, an unlocking command is sent to the digital key device so that the digital key device performs a corresponding unlocking operation based on the unlocking command.

[0005] Furthermore, obtaining the distance between the smart glasses and the digital key device includes: Obtain one or more devices by scanning the smart glasses via Bluetooth; If it is determined that the digital key device exists among the one or more devices based on the Bluetooth information of at least one digital key device bound to the smart glasses, the distance between the smart glasses and the digital key device is determined based on the Bluetooth signal strength corresponding to the digital key device.

[0006] Furthermore, the method also includes: If at least one digital key device is bound to the smart glasses, Bluetooth scanning is enabled.

[0007] Furthermore, if at least one digital key device is bound to the smart glasses, initiating Bluetooth scanning includes: If at least one digital key device is bound to the smart glasses, and the distance between the current location of the smart glasses and the pre-stored location of the at least one digital key device is less than or equal to a third preset threshold, Bluetooth scanning is initiated.

[0008] Further, obtaining the similarity between the captured image corresponding to the smart glasses and at least one device image corresponding to the pre-stored digital key device includes: Extract and embed the first image of the captured image corresponding to the smart glasses; Obtain the similarity between the first image embedding and a second image embedding of at least one device image corresponding to the pre-stored digital key device.

[0009] Further, sending the unlocking command to the digital key device includes: The smart glasses are used to verify the identity of the user. If the user passes identity verification, the unlocking command will be sent to the digital key device.

[0010] Furthermore, the digital key device verifies the legality of the unlocking command; if the verification is successful, the corresponding unlocking operation is executed.

[0011] Furthermore, the method also includes: By scanning the binding QR code corresponding to the digital key device with the smart glasses, the Bluetooth information corresponding to the digital key device is obtained, and the smart glasses are bound to the digital key device based on the Bluetooth information.

[0012] Furthermore, the method also includes: The smart glasses capture at least one device image corresponding to the digital key device, and the at least one device image is stored.

[0013] Further, storing the image of the at least one device includes: Extract the second image embedding corresponding to the at least one device image, and store the second image embedding.

[0014] This specification also provides an embodiment of smart glasses for unlocking, comprising: A gaze module is used to obtain the distance between the smart glasses and the digital key device. If the distance is less than or equal to a first preset threshold, the smart glasses determine whether the user is currently gazing at the digital key device. The shooting module is used to, if so, obtain the similarity between the captured image corresponding to the smart glasses and at least one device image corresponding to the pre-stored digital key device; The unlocking module is used to send an unlocking command to the digital key device if the similarity is greater than or equal to a second preset threshold, so that the digital key device can perform a corresponding unlocking operation based on the unlocking command.

[0015] This specification also provides a storage medium storing a computer program adapted to be loaded by a processor and to execute the steps of the method described above.

[0016] This specification also provides an electronic device, including a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to execute the steps of the method described above.

[0017] This specification also provides a computer program product that stores at least one instruction, characterized in that the at least one instruction, when executed by a processor, implements the steps of the above-described method.

[0018] According to the embodiments of this specification, a digital key solution based on "gaze unlocking" of smart glasses is proposed. The smart glasses are used as a sensing terminal for user identity and intent. By combining technologies such as gaze behavior recognition and visual image matching, the user's behavioral intent is accurately identified to complete the gaze unlocking operation. By accurately determining whether the user "intends to unlock," the security risks of "passive triggering" in traditional near-field communication can be solved, providing users with a better digital key unlocking experience. It not only improves the naturalness of the unlocking interaction but also enhances the security of unlocking, and has broad application prospects. Moreover, it does not require manual or voice wake-up by the user, avoiding problems such as poor voice experience in noisy environments, thus improving the user's unlocking experience. High-power calculations such as visual image matching are only triggered at close range, which can reduce the triggering frequency and improve the battery life of smart glasses. Attached Figure Description

[0019] Figure 1 A flowchart illustrating a method for unlocking provided in an embodiment of this specification; Figure 2 A flowchart illustrating a binding process for unlocking provided in an embodiment of this specification; Figure 3 A flowchart illustrating a method for unlocking provided in an embodiment of this specification; Figure 4 A schematic diagram of the structure of a smart glasses for unlocking provided in an embodiment of this specification; Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of this specification clearer, the technical solutions of this specification will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of them. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this specification.

[0021] Please see Figure 1 This is a flowchart illustrating a method for unlocking provided in an embodiment of this specification. In this embodiment, the unlocking method is applied to the smart glasses described in this embodiment. The following will focus on... Figure 1 The process shown will be described in detail. The method for unlocking may specifically include the following steps: S102, obtain the distance between the smart glasses and the digital key device. If the distance is less than or equal to a first preset threshold, determine whether the user is currently looking at the digital key device through the smart glasses.

[0022] In some embodiments, smart glasses refer to wearable smart glasses equipped with a camera, processor, wireless communication module (such as Bluetooth / Wi-Fi), and sensors (such as IMU, inertial measurement unit), capable of collecting visual information in real time and running lightweight AI (Artificial Intelligence) models; they can also be called AI glasses. In some embodiments, a digital key device is a smart hardware or software carrier that relies on wireless communication technology to replace traditional physical keys in digital form, enabling the unlocking, authorization, and management of terminal devices such as vehicles, access control systems, and smart home devices. Its core is to complete permission verification through encrypted identity authentication, combining convenience and security, and is widely used in scenarios such as automobiles, smart communities, and smart homes. For example, digital key devices include, but are not limited to, smart door locks, two-wheeled vehicles, and automobiles; this example embodiment does not impose any special limitations on this.

[0023] In some embodiments, the smart glasses or the server corresponding to the smart glasses pre-store the Bluetooth information of the digital key device. This Bluetooth information includes, but is not limited to, the Bluetooth MAC address and Bluetooth name. This example embodiment does not impose any special limitations on this. In some embodiments, after the smart glasses enable Bluetooth scanning, if the digital key device is discovered based on the pre-stored Bluetooth information, the distance between the smart glasses and the digital key device can be determined based on the Bluetooth signal strength RSSI (Received Signal Strength Indicator) corresponding to the digital key device.

[0024] In some embodiments, the smart glasses or the server corresponding to the smart glasses pre-stores a device image of the digital key device. If the digital key device is identified in the real-time captured image obtained by the camera of the smart glasses based on the device image, the distance between the smart glasses and the digital key device can be determined from the real-time captured image by using the ranging principle in computer vision, combined with the geometric relationship of the image, camera parameters, or the known size of the digital key device.

[0025] In some embodiments, if the distance is less than or equal to a first preset threshold, the smart glasses determine whether the user is currently looking at the digital key device. For example, the smart glasses can use an eye-tracking module or an IMU sensor module (e.g., a head posture sensor) to determine whether the user's current gaze is focused on the digital key device, thus determining whether the user is currently looking at the digital key device. In some embodiments, determining whether the user is currently looking at the digital key device enables registration and unlocking. Compared to voice unlocking, this provides robust privacy protection; unlocking is achieved simply by looking, with silent operation and no information leakage. It also offers strong anti-interference capabilities, is unaffected by environmental noise, and makes the user's unlocking interaction more natural—just a glance is all it takes.

[0026] S104, if so, obtain the similarity between the captured image corresponding to the smart glasses and at least one device image corresponding to the pre-stored digital key device.

[0027] In some embodiments, if the user is currently looking at the digital key device, the image captured by the camera of the smart glasses is compared with at least one device image corresponding to the digital key device pre-stored in the smart glasses (local database) or the server (network database) corresponding to the smart glasses in terms of image feature similarity (e.g., image embedding similarity calculation, key point matching, etc.) to obtain the similarity between the two. For example, the similarity between the captured image and each device image corresponding to the digital key device is obtained first, and then the average of the obtained similarities is calculated to obtain the final similarity. Alternatively, one of the obtained similarities (such as the maximum or minimum value) is taken as the final similarity.

[0028] S106, if the similarity is greater than or equal to the second preset threshold, an unlocking command is sent to the digital key device so that the digital key device performs the corresponding unlocking operation based on the unlocking command.

[0029] In some embodiments, if the similarity is greater than or equal to a second preset threshold, a corresponding unlocking command is generated. This unlocking command is then sent to the digital key device via an established short-range communication connection between the smart glasses and the digital key device. This short-range communication connection includes, but is not limited to, Bluetooth, Wi-Fi, NFC, and ZigBee connections; this example embodiment does not impose any specific limitations on this. In some embodiments, after generating the unlocking command, the smart glasses encrypt the command and send the encrypted command to the digital key device via the established short-range communication connection. Upon receiving the encrypted unlocking command, the digital key device decrypts it. In some embodiments, the digital key device performs the corresponding unlocking operation based on the unlocking command.

[0030] According to the embodiments of this specification, a digital key solution based on "gaze unlocking" of smart glasses is proposed. The smart glasses are used as a sensing terminal for user identity and intent. By combining technologies such as gaze behavior recognition and visual image matching, the user's behavioral intent is accurately identified to complete the gaze unlocking operation. By accurately determining whether the user "intends to unlock," the security risks of "passive triggering" in traditional near-field communication can be solved, providing users with a better digital key unlocking experience. It not only improves the naturalness of the unlocking interaction but also enhances the security of unlocking, and has broad application prospects. Moreover, it does not require manual or voice wake-up by the user, avoiding problems such as poor voice experience in noisy environments, thus improving the user's unlocking experience. High-power calculations such as visual image matching are only triggered at close range, which can reduce the triggering frequency and improve the battery life of smart glasses.

[0031] In some embodiments, obtaining the distance between the smart glasses and the digital key device includes: obtaining one or more devices obtained by the smart glasses through Bluetooth scanning; if it is determined that the digital key device exists among the one or more devices based on the Bluetooth information of at least one digital key device bound to the smart glasses, determining the distance between the smart glasses and the digital key device based on the Bluetooth signal strength corresponding to the digital key device. In some embodiments, one or more devices are obtained by scanning via Bluetooth with the smart glasses. Based on the Bluetooth information (such as Bluetooth MAC address, Bluetooth name, etc.) of at least one digital key device bound to the smart glasses, a digital key device matching the Bluetooth information is determined among the one or more devices. Then, the distance between the smart glasses and the digital key device is determined based on the Bluetooth signal strength corresponding to the digital key device. Here, the Bluetooth signal strength decreases with increasing distance, and the Bluetooth signal strength is negatively correlated with distance. The stronger the Bluetooth signal strength, the smaller the distance, and the weaker the Bluetooth signal strength, the larger the distance. The Bluetooth signal strength can be input into a preset functional relationship to obtain the distance output by the functional relationship. Alternatively, the distance mapped by the numerical range in which the Bluetooth signal strength falls can be obtained. Or, the Bluetooth signal strength can be input into a trained model (such as a logarithmic path loss model) to obtain the distance output by the model. This example embodiment does not impose any special limitations on this. In some embodiments, the smart glasses are in a sleep / standby state and are activated by a specific Bluetooth signal (a Bluetooth signal corresponding to the Bluetooth information of the digital key device), switching from a low-power mode to a working mode to achieve Bluetooth Low Energy (BLE) wake-up. The purpose is to ensure device battery life (reducing standby power consumption) while enabling rapid response and communication between devices. Wake-up via Bluetooth Low Energy, i.e., Bluetooth near-field seamless wake-up, eliminates the need for manual or voice activation by the user, avoiding issues such as poor voice experience in noisy environments and improving the user's unlocking experience. According to the embodiments in this specification, based on the spatial perception capabilities of the smart glasses, by fusing multiple signals such as Bluetooth near-field communication, gaze recognition, and visual image matching, the user's behavioral intent is accurately determined, completing the gaze-based unlocking operation, which has broad application prospects.

[0032] In some embodiments, the method further includes: if at least one digital key device is bound to the smart glasses, enabling Bluetooth scanning. In some embodiments, if at least one digital key device is bound to the smart glasses, and the smart glasses are not currently enabling Bluetooth scanning, then the smart glasses are enabled to enable Bluetooth scanning.

[0033] In some embodiments, the step of enabling Bluetooth scanning if at least one digital key device bound to the smart glasses exists includes: if at least one digital key device bound to the smart glasses exists, and the distance between the current location of the smart glasses and the pre-stored location of the at least one digital key device is less than or equal to a third preset threshold, then enabling Bluetooth scanning. In some embodiments, if at least one digital key device bound to the smart glasses exists, and the distance between the current location of the smart glasses and the pre-stored location of the at least one digital key device is less than or equal to the third preset threshold, and if the smart glasses are not currently enabling Bluetooth scanning, then enabling Bluetooth scanning on the smart glasses is performed.

[0034] In some embodiments, obtaining the similarity between the captured image corresponding to the smart glasses and at least one device image corresponding to the pre-stored digital key device includes: extracting a first image embedding of the captured image corresponding to the smart glasses; and obtaining the similarity between the first image embedding and a second image embedding of at least one device image corresponding to the pre-stored digital key device. In some embodiments, the first image embedding of the captured image corresponding to the smart glasses is obtained based on DINOv2 (Distillation with No Labels v2, a purely visual self-supervised model), CLIP (Contrastive Language-Image Pre-training, a cross-modal model of text and images), or other models. Here, image embedding refers to the low-dimensional, dense numerical vector mapped to the captured image, i.e., the image feature vector. Its core function is to characterize the semantics, texture, content, and other key information of the image using computer-understandable "numerical features." In some embodiments, a similarity comparison is performed between the first image embedding and the second image embedding of at least one device image corresponding to the pre-stored digital key device to obtain the similarity between the two. For example, the similarity between the first image embedding and the second image embedding of each device image corresponding to the digital key device is first obtained, and then the average of the obtained multiple similarities is calculated to obtain the final similarity. Alternatively, one of the obtained multiple similarities (such as the maximum or minimum value) is taken as the final similarity.

[0035] In some embodiments, sending the unlocking command to the digital key device includes: verifying the identity of the user through the smart glasses; if the user passes the identity verification, sending the unlocking command to the digital key device. In some embodiments, after determining that the similarity is greater than or equal to a second preset threshold, before sending the unlocking command to the digital key device, the identity of the current user wearing the smart glasses is verified through the smart glasses. This identity verification includes, but is not limited to, voice verification, voiceprint verification, face verification, iris verification, etc., and this example embodiment does not specifically limit this. In some embodiments, the unlocking command is only sent to the digital key device if the user passes the identity verification.

[0036] In some embodiments, the digital key device verifies the legality of the unlocking command. If the verification passes, the corresponding unlocking operation is executed. In some embodiments, after receiving an unlocking command, the digital key device first verifies the legality of the unlocking command. Only if the legality verification passes will the digital key device execute the corresponding unlocking operation. In some embodiments, command legality verification includes, but is not limited to, format verification, semantic verification, and permission verification. This example embodiment does not impose special limitations on these aspects. Format verification refers to verifying the syntax structure, data type, and parameter specifications of the unlocking command to ensure that the unlocking command conforms to the system's preset input format. Semantic verification verifies the logical rationality and business relevance of the unlocking command to ensure that the unlocking command is meaningful at the semantic level, rather than an invalid command that is "formatted correctly but logically incorrect." Permission verification verifies whether the initiator of the unlocking command has the authority to execute the command, preventing unauthorized operations and ensuring system resource and data security.

[0037] In some embodiments, the method further includes: scanning the binding QR code corresponding to the digital key device with the smart glasses to obtain the Bluetooth information corresponding to the digital key device, and binding the smart glasses and the digital key device based on the Bluetooth information. In some embodiments, the binding QR code corresponding to the digital key device is scanned with the camera of the smart glasses to obtain the Bluetooth information corresponding to the digital key device. The Bluetooth information includes, but is not limited to, Bluetooth MAC address, Bluetooth name, etc., and this example embodiment does not make any special limitations on this. In some embodiments, the binding QR code is presented on the surface of the digital key device, or the binding QR code is presented on the instruction manual or outer packaging of the digital key device, and this example embodiment does not make any special limitations on this. In some embodiments, the smart glasses and the digital key device are bound based on the Bluetooth information, and the Bluetooth information is stored in the local database of the smart glasses or the network database of the server corresponding to the smart glasses. The binding operation refers to the user completing the identity registration of the digital key device by scanning the binding QR code corresponding to the digital key device with the smart glasses when configuring the digital key device for the first time.

[0038] In some embodiments, the method further includes: capturing at least one device image corresponding to the digital key device using the smart glasses, and storing the at least one device image. In some embodiments, the smart glasses' camera takes a picture of the digital key device to capture at least one device image corresponding to the digital key device, associates the at least one device image with the Bluetooth information of the digital key device, and stores the at least one device image in the local database of the smart glasses or the network database of the server corresponding to the smart glasses. In some embodiments, depending on the type of digital key device, multiple device images can be captured and stored from multiple angles. For example, for an electric bicycle, multiple device images can be captured from the front, side, and parking space, while for a door lock, which has less three-dimensionality, only one device image needs to be captured.

[0039] In some embodiments, storing the at least one device image includes: extracting a second image embedding corresponding to the at least one device image, and storing the second image embedding. In some embodiments, to improve the speed of subsequent similarity comparison, the at least one device image is used to extract a corresponding second image embedding using DINOv2, CLIP, or other models, the second image embedding is associated with the Bluetooth information of the digital key device, and the second image embedding is stored in the local database of the smart glasses or the network database of the server corresponding to the smart glasses.

[0040] Figure 2 This is a flowchart illustrating a binding process for unlocking provided in an embodiment of this specification.

[0041] like Figure 2 As shown, by scanning the binding QR code of the digital key device with AI glasses (smart glasses), the application for the digital key is completed. The digital key information includes Bluetooth information. The AI ​​glasses are used to take a picture of the digital key device to obtain the image of the device, extract the image embedding information of the image, and store the Bluetooth information and image embedding information locally on the AI ​​glasses. Then, Bluetooth scanning is enabled.

[0042] Figure 3 This is a flowchart illustrating a method for unlocking as provided in an embodiment of this specification.

[0043] like Figure 3 As shown, when a user wearing AI glasses (smart glasses) approaches a digital key device (such as a target door lock), if the AI ​​glasses detect the target door lock via Bluetooth, they will assess the Bluetooth signal strength of the target door lock. If the signal strength reaches a certain threshold, they will assess the user's gaze. If the user is looking at the target door lock, the AI ​​glasses will take a picture using their camera and compare it with the image information of the target door lock in the local database. If the similarity between the two reaches a threshold, the AI ​​glasses will generate and send an unlocking command to the target door lock, causing the target door lock to perform the corresponding unlocking operation. Otherwise, the user will be reminded that the target door lock is not the target device.

[0044] Figure 4 This is a schematic diagram of a smart glasses for unlocking provided in an embodiment of this specification. The smart glasses for unlocking (hereinafter referred to as "smart glasses 1") can be implemented as all or part of an electronic device through software, hardware, or a combination of both. According to some embodiments, the smart glasses 1 includes a gaze module 11, a shooting module 12, and an unlocking module 13.

[0045] The gaze module 11 is used to obtain the distance between the smart glasses and the digital key device. If the distance is less than or equal to a first preset threshold, the smart glasses determine whether the user is currently gazing at the digital key device. If so, the shooting module 12 is used to obtain the similarity between the captured image corresponding to the smart glasses and at least one device image corresponding to the digital key device that is stored in advance; The unlocking module 13 is used to send an unlocking command to the digital key device if the similarity is greater than or equal to a second preset threshold, so that the digital key device can perform a corresponding unlocking operation based on the unlocking command.

[0046] In some embodiments, obtaining the distance between the smart glasses and the digital key device includes: obtaining one or more devices obtained by the smart glasses through Bluetooth scanning; if it is determined that the digital key device exists among the one or more devices based on the Bluetooth information of at least one digital key device bound to the smart glasses, determining the distance between the smart glasses and the digital key device based on the Bluetooth signal strength corresponding to the digital key device.

[0047] In some embodiments, the smart glasses 1 are further configured to: initiate Bluetooth scanning if at least one digital key device bound to the smart glasses exists.

[0048] In some embodiments, the step of enabling Bluetooth scanning if at least one digital key device bound to the smart glasses exists includes: enabling Bluetooth scanning if at least one digital key device bound to the smart glasses exists, and the distance between the current location of the smart glasses and the pre-stored location of the at least one digital key device is less than or equal to a third preset threshold.

[0049] In some embodiments, obtaining the similarity between the captured image corresponding to the smart glasses and at least one device image corresponding to the pre-stored digital key device includes: extracting a first image embedding of the captured image corresponding to the smart glasses; and obtaining the similarity between the first image embedding and a second image embedding of at least one device image corresponding to the pre-stored digital key device.

[0050] In some embodiments, sending the unlocking command to the digital key device includes: verifying the identity of the user through the smart glasses; if the user passes the identity verification, sending the unlocking command to the digital key device.

[0051] In some embodiments, the digital key device verifies the legality of the unlocking command; if the verification is successful, the corresponding unlocking operation is executed.

[0052] In some embodiments, the smart glasses 1 are further configured to: scan the binding QR code corresponding to the digital key device through the smart glasses to obtain the Bluetooth information corresponding to the digital key device, and bind the smart glasses to the digital key device based on the Bluetooth information.

[0053] In some embodiments, the smart glasses 1 are further used to: capture at least one device image corresponding to the digital key device through the smart glasses, and store the at least one device image.

[0054] In some embodiments, storing the at least one device image includes: extracting a second image embedding corresponding to the at least one device image and storing the second image embedding.

[0055] The above-described embodiments of smart glasses correspond to the aforementioned method embodiments. For detailed descriptions, please refer to the description in the method embodiments section; further details will not be repeated here. The above-described embodiments of smart glasses are derived from the corresponding method embodiments and have the same technical effects. For detailed descriptions, please refer to the corresponding method embodiments.

[0056] This specification also provides a computer storage medium storing a computer program thereon, which, when executed by a processor, implements the method described in this specification.

[0057] This specification also provides a computer program product that stores at least one instruction, which is loaded by the processor and executes the method described in this specification embodiment.

[0058] This specification also provides an electronic device, including a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and execute the method described in the embodiments of this specification.

[0059] The embodiments in this specification also provide Figure 5 The diagram shows the structure of the electronic device. Figure 5 At the hardware level, the electronic device includes a processor, internal bus, network interface, memory, and non-volatile memory, and may also include other hardware required for business operations. The processor reads the corresponding computer program from the non-volatile memory into memory and then runs it to implement the above method.

[0060] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.

[0061] Those skilled in the art will understand that embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0062] This specification is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this specification. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0063] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0064] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0065] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0066] This specification can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0067] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0068] The above description is merely an embodiment of this specification and is not intended to limit this specification. Various modifications and variations can be made to this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of the claims of this specification.

Claims

1. A method for unlocking, applied to smart glasses, comprising: The distance between the smart glasses and the digital key device is obtained. If the distance is less than or equal to a first preset threshold, it is determined through the smart glasses whether the user is currently looking at the digital key device. If so, obtain the similarity between the captured image corresponding to the smart glasses and at least one device image corresponding to the pre-stored digital key device; If the similarity is greater than or equal to a second preset threshold, an unlocking command is sent to the digital key device so that the digital key device performs a corresponding unlocking operation based on the unlocking command.

2. The method according to claim 1, wherein obtaining the distance between the smart glasses and the digital key device includes: Obtain one or more devices by scanning the smart glasses via Bluetooth; If it is determined that the digital key device exists among the one or more devices based on the Bluetooth information of at least one digital key device bound to the smart glasses, the distance between the smart glasses and the digital key device is determined based on the Bluetooth signal strength corresponding to the digital key device.

3. The method according to claim 2, further comprising: If at least one digital key device is bound to the smart glasses, Bluetooth scanning is enabled.

4. The method according to claim 3, wherein if at least one digital key device bound to the smart glasses exists, initiating Bluetooth scanning includes: If at least one digital key device is bound to the smart glasses, and the distance between the current location of the smart glasses and the pre-stored location of the at least one digital key device is less than or equal to a third preset threshold, Bluetooth scanning is initiated.

5. The method according to claim 1, wherein obtaining the similarity between the captured image corresponding to the smart glasses and at least one device image corresponding to the pre-stored digital key device comprises: Extract and embed the first image of the captured image corresponding to the smart glasses; Obtain the similarity between the first image embedding and a second image embedding of at least one device image corresponding to the pre-stored digital key device.

6. The method according to claim 1, wherein sending the unlocking command to the digital key device comprises: The smart glasses are used to verify the identity of the user. If the user passes identity verification, the unlocking command will be sent to the digital key device.

7. The method according to claim 1, wherein the digital key device verifies the legality of the unlocking command, and if the verification is successful, executes the corresponding unlocking operation.

8. The method according to claim 1, further comprising: By scanning the binding QR code corresponding to the digital key device with the smart glasses, the Bluetooth information corresponding to the digital key device is obtained, and the smart glasses are bound to the digital key device based on the Bluetooth information.

9. The method according to claim 8, further comprising: The smart glasses capture at least one device image corresponding to the digital key device, and the at least one device image is stored.

10. The method according to claim 9, wherein storing the at least one device image comprises: Extract the second image embedding corresponding to the at least one device image, and store the second image embedding.

11. A smart pair of glasses for unlocking, comprising: A gaze module is used to obtain the distance between the smart glasses and the digital key device. If the distance is less than or equal to a first preset threshold, the smart glasses determine whether the user is currently gazing at the digital key device. The shooting module is used to, if so, obtain the similarity between the captured image corresponding to the smart glasses and at least one device image corresponding to the pre-stored digital key device; The unlocking module is used to send an unlocking command to the digital key device if the similarity is greater than or equal to a second preset threshold, so that the digital key device can perform a corresponding unlocking operation based on the unlocking command.

12. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 10.

13. An electronic device, characterized in that, include: A processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to execute the steps of the method as claimed in any one of claims 1 to 10.

14. A computer program product having at least one instruction stored thereon, characterized in that, When the at least one instruction is executed by the processor, it implements the steps of the method according to any one of claims 1 to 10.