Identity recognition method, device, equipment and storage medium

By setting a preset distance and direction range, and using the UWB module and key interaction technology for identity authentication, it solves the problem of relying on light and user cooperation in the existing technology, and achieves safe and efficient identity recognition and multi-device permission confirmation.

CN113221094BActive Publication Date: 2024-10-29BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110266482.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-11
Publication Date
2024-10-29
Estimated Expiration
2041-03-11

AI Technical Summary

Technical Problem

Existing identity recognition technology relies on light conditions and user cooperation, has security and user experience issues, and is difficult to support user permission confirmation on multiple devices at the same time.

Method used

By setting the preset distance range and direction range, the UWB module is used to detect the device entering the range and perform identity authentication. It combines key interaction and user identification information verification to determine device permissions and provide senseless identity recognition and multi-device permission confirmation.

Benefits of technology

It enhances the security of identity recognition, provides a seamless user experience, improves the efficiency of identity authentication, and supports preset user permission confirmation for multiple devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113221094B_ABST
    Figure CN113221094B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an identity recognition method and apparatus, device and storage medium. The method is applied to a first device, and includes: in response to detecting that a second device enters a preset first distance range, establishing a connection with the second device; based on the connection, performing identity authentication on the second device; if the identity authentication passes, in response to detecting that the second device enters a preset second distance range, and the second device is within a preset direction range of the first device, determining that the second device is a device with preset user permissions; wherein the preset second distance range is within the preset first distance range. Through this method, a seamless user experience can be provided, and the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of electronic technology, and in particular to an identity recognition method and apparatus, device and storage medium. Background Art

[0002] With the development and progress of science and technology, the level of intelligence in modern social production and life is becoming increasingly higher, and the demand for personnel identification technology in various fields such as smart homes, smart buildings, and smart cities is becoming increasingly urgent.

[0003] Among common identity recognition technologies, there are vision-based automatic identity recognition technologies, such as face recognition and gesture recognition, which start recognition when the identified object triggers the recognition threshold. This is commonly seen in community access control and face payment. There is also a passive identity recognition technology, such as radio frequency identification (RFID), near field communication (NFC) card readers, fingerprint recognition devices, and iris recognition devices. The identified object needs to bring the device representing the identity information or biometrics close to the recognition device to achieve identity recognition. This is commonly seen in ticket checking systems, office area authority recognition, and so on.

[0004] The above solutions all have certain limitations, such as relying on lighting conditions, user cooperation, etc. Summary of the invention

[0005] The present invention provides an identity recognition method, device, equipment and storage medium.

[0006] According to a first aspect of an embodiment of the present disclosure, there is provided an identity recognition method, which is applied to a first device and includes:

[0007] In response to detecting that a second device enters a preset first distance range, establishing a connection with the second device;

[0008] Based on the connection, authenticating the second device;

[0009] If the identity authentication passes, in response to detecting that the second device enters a preset second distance range and the second device is within a preset direction range of the first device, the second device is determined to be a device with preset user permissions; wherein the preset second distance range is within the preset first distance range.

[0010] Optionally, the performing identity authentication on the second device based on the connection includes:

[0011] Based on the connection, a key is exchanged with the second device to authenticate the identity of the second device.

[0012] Optionally, in response to detecting that the second device enters a preset first distance range, establishing a connection with the second device includes:

[0013] In response to detecting that a plurality of second devices enter the preset first distance range, sorting the distances between each second device and the first device;

[0014] Based on the ranking, a preset number of second devices are selected to establish a connection; wherein the distance between the selected preset number of second devices and the first device is smaller than the distance between the unselected second devices and the first device.

[0015] In some embodiments, the method further comprises:

[0016] Based on the connection, obtaining user identification information stored in the second device;

[0017] In response to detecting that the second device enters a preset second distance range and the second device is within a preset direction range of the first device, determining that the second device is a device with preset user authority includes:

[0018] In response to detecting that the second device enters the preset second distance range, the second device is within the preset direction range of the first device, and the user identification information belongs to the preset target user identification information, determining that the second device is a device with preset user permissions; wherein the preset target user identification information is the identification information of a user with the preset user permissions.

[0019] In some embodiments, the preset user rights include at least one of the following:

[0020] Payment authority;

[0021] Access control permissions;

[0022] Ride privileges;

[0023] Movie viewing rights;

[0024] Seating privileges.

[0025] In some embodiments, in response to detecting that the second device enters a preset second distance range and the second device is within a preset direction range of the first device, determining that the second device is a device with preset user permissions includes:

[0026] In response to detecting that the second device enters the preset second distance range and the second device is within a preset direction range of the first device, based on the connection, sending a ticket checking instruction to the second device;

[0027] Based on the ticket query instruction, obtaining the ticket booking information of the second device;

[0028] If the booking information matches the preset booking information, it is determined that the second device is a device with preset user permissions; wherein the preset user permissions indicate that the user carrying the second device has the permission to ride or the permission to watch a movie.

[0029] In some embodiments, the ticket booking information includes seat number information;

[0030] In response to detecting that the second device enters a preset second distance range and the second device is within a preset direction range of the first device, determining that the second device is a device with preset user authority includes:

[0031] In response to detecting that the second device enters the preset second distance range, and the second device is within the preset direction range of the first device, the direction determines the seat number of the second device in the space where the second device is located according to the relative distance, relative direction and preset correspondence between the second device and the first device; wherein the preset correspondence direction includes the correspondence between the distance, direction and seat number;

[0032] If the seat number matches the seat number included in the ticket booking information, it is determined that the second device is a device with preset user permissions; wherein the preset user permissions indicate that the user carrying the second device has seat permissions.

[0033] In some embodiments, both the first device and the second device include a UWB module, and the method further includes:

[0034] The UWB module is used to detect whether the second device enters the preset first distance range or the preset second distance range.

[0035] According to a second aspect of an embodiment of the present disclosure, there is provided an identity recognition method, which is applied to a second device and includes:

[0036] In response to entering a preset first distance range of a first device, establishing a connection with the first device;

[0037] Based on the connection, performing identity authentication with the first device;

[0038] After the identity authentication is passed, in response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, the preset user authority is obtained; wherein the preset second distance range is within the preset first distance range.

[0039] In some embodiments, the performing identity authentication with the first device based on the connection includes:

[0040] Based on the connection, a key is exchanged with the first device to perform identity authentication.

[0041] In some embodiments, in response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, obtaining preset user permissions includes:

[0042] In response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, the stored user identification information is sent to the first device based on the connection; wherein the user identification information is used by the first device to determine that the second device is a device with preset user permissions after the first device determines that it belongs to preset target user identification information; wherein the preset target user identification information is the identification information of a user with the preset user permissions.

[0043] In some embodiments, in response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, obtaining preset user permissions includes:

[0044] In response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, receiving a ticket checking instruction sent by the first device based on the connection;

[0045] According to the ticket checking instruction, the ticket booking information is sent to the first device; the ticket booking information is used by the first device to determine that the second device is a device with preset user permissions after the first device determines that the ticket booking information is consistent with the preset ticket booking information; wherein the preset user permissions indicate that the user carrying the second device has the permission to ride or watch a movie.

[0046] In some embodiments, both the first device and the second device include a UWB module, and the UWB module is used by the first device to determine whether the second device enters the preset first distance range or the preset second distance range.

[0047] According to a third aspect of an embodiment of the present disclosure, there is provided an identity recognition device, which is applied to a first device and includes:

[0048] A first connection module, configured to establish a connection with the second device in response to detecting that the second device enters a preset first distance range;

[0049] A first authentication module, configured to perform identity authentication on the second device based on the connection;

[0050] The determination module is configured to determine that the second device is a device with preset user permissions if the identity authentication passes, in response to detecting that the second device enters a preset second distance range and the second device is within a preset direction range of the first device; wherein the preset second distance range is within the preset first distance range.

[0051] In some embodiments, the first authentication module is further configured to authenticate the second device based on the connection and the second device exchange key.

[0052] In some embodiments, the first connection module is further configured to sort the distances between each second device and the first device in response to detecting that multiple second devices enter the preset first distance range; based on the sorting, select a preset number of second devices to establish a connection; wherein the distance between the selected preset number of second devices and the first device is smaller than the distance between the unselected second devices and the first device.

[0053] In some embodiments, the apparatus further comprises:

[0054] A first acquisition module, configured to acquire user identification information stored in the second device based on the connection;

[0055] The determination module is also configured to determine that the second device is a device with preset user permissions in response to detecting that the second device enters the preset second distance range, and the second device is within the preset direction range of the first device, and the user identification information belongs to the preset target user identification information; wherein the preset target user identification information is the identification information of a user with the preset user permissions.

[0056] In some embodiments, the preset user rights include at least one of the following:

[0057] Payment authority;

[0058] Access control permissions;

[0059] Ride privileges;

[0060] Movie viewing rights;

[0061] Seating privileges.

[0062] In some embodiments, the determination module is further configured to, in response to detecting that the second device enters the preset second distance range and the second device is within the preset direction range of the first device, send a ticket check instruction to the second device based on the connection; based on the ticket check instruction, obtain the ticketing information of the second device; if the ticketing information matches the preset ticketing information, determine that the second device is a device with preset user permissions; wherein the preset user permissions indicate that the user carrying the second device has the right to ride or watch a movie.

[0063] In some embodiments, the ticket booking information includes seat number information;

[0064] The determination module is further configured to determine, in response to detecting that the second device enters the preset second distance range and the second device is within the preset direction range of the first device, the seat number of the second device in the space where the second device is located according to the relative distance, relative direction and preset correspondence between the second device and the first device; wherein the preset correspondence direction includes the correspondence between the distance, direction and seat number; if the seat number matches the seat number included in the ticket booking information, determine that the second device is a device with preset user permissions; wherein the preset user permissions indicate that the user carrying the second device has seat permissions.

[0065] In some embodiments, both the first device and the second device include a UWB module, and the apparatus further includes:

[0066] The detection module is configured to detect, through the UWB module, whether the second device enters the preset first distance range or the preset second distance range.

[0067] According to a fourth aspect of an embodiment of the present disclosure, there is provided an identity recognition device, which is applied to a second device and includes:

[0068] a second connection module, configured to establish a connection with the first device in response to entering a preset first distance range of the first device;

[0069] a second authentication module, configured to perform identity authentication with the first device based on the connection;

[0070] The second acquisition module is configured to acquire preset user permissions in response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device after the identity authentication is passed; wherein the preset second distance range is within the preset first distance range.

[0071] In some embodiments, the second authentication module is further configured to perform identity authentication based on the connection and the exchange key with the first device.

[0072] In some embodiments, the second acquisition module is also configured to send the stored user identification information to the first device based on the connection in response to entering a preset second distance range of the first device and the second device is within a preset direction range of the first device; wherein the user identification information is used by the first device to determine that the second device is a device with preset user permissions after determining that it belongs to preset target user identification information; wherein the preset target user identification information is the identification information of a user with the preset user permissions.

[0073] In some embodiments, the second acquisition module is also configured to, in response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, receive a ticket checking instruction sent by the first device based on the connection; and send booking information to the first device according to the ticket checking instruction; the ticket booking information is used for the first device to determine that the second device is a device with preset user permissions after determining that the ticket booking information is consistent with the preset ticket booking information; wherein the preset user permissions indicate that the user carrying the second device has the right to ride or watch a movie.

[0074] In some embodiments, both the first device and the second device include a UWB module, and the UWB module is used by the first device to determine whether the second device enters the preset first distance range or the preset second distance range.

[0075] According to a fifth aspect of an embodiment of the present disclosure, a device is provided, including:

[0076] processor;

[0077] a memory for storing processor-executable instructions;

[0078] The processor is configured to execute the identity recognition method as described in the first aspect or the second aspect above.

[0079] According to a sixth aspect of an embodiment of the present disclosure, there is provided a storage medium, including:

[0080] When the instructions in the storage medium are executed by the processor of the first device, the first device is enabled to execute the identity identification method as described in the first aspect above; when the instructions in the storage medium are executed by the processor of the second device, the second device is enabled to execute the identity identification method as described in the second aspect above.

[0081] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0082] In the embodiments of the present disclosure, by setting a preset first distance range, a connection is established with the second device when the second device enters the preset first distance range to authenticate the second device. After the authentication is passed, the second device is determined to be a device with preset user permissions based on the second device entering the preset direction range and the preset second distance range within the preset first distance range. On the one hand, combined with the spatial range, identity authentication is performed first and then permissions are granted, which can enhance the security of identity recognition; on the other hand, it does not rely on light conditions and does not require active cooperation from users, which can provide a seamless user experience, and can simultaneously support the confirmation of preset user permissions for multiple devices, which can improve the efficiency of identity authentication.

[0083] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0084] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0085] Figure 1 This is a process flow of an identity recognition method shown in the embodiment of the present disclosure. Figure 1 .

[0086] Figure 2 This is a process flow of an identity recognition method shown in the embodiment of the present disclosure. Figure 2 .

[0087] Figure 3 This is an example diagram of an identity recognition method interaction shown in an embodiment of the present disclosure.

[0088] Figure 4 An identity recognition device according to an exemplary embodiment is shown Figure 1 .

[0089] Figure 5 An identity recognition device according to an exemplary embodiment is shown Figure 2 .

[0090] Figure 6 It is a block diagram of a device shown in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0091] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0092] Figure 1 This is a process flow of an identity recognition method shown in the embodiment of the present disclosure. Figure 1 ,like Figure 1 As shown, the identity recognition method applied to the first device includes the following steps:

[0093] S11, in response to detecting that a second device enters a preset first distance range, establishing a connection with the second device;

[0094] S12. authenticating the second device based on the connection;

[0095] S13. If the identity authentication passes, in response to detecting that the second device enters a preset second distance range and the second device is within a preset direction range of the first device, determine that the second device is a device with preset user permissions; wherein the preset second distance range is within the preset first distance range.

[0096] In an embodiment of the present disclosure, the first device may be a terminal device with a positioning function, and the second device may be a mobile device such as a mobile phone or a tablet computer.

[0097] In one embodiment, both the first device and the second device include an Ultra Wide Band (UWB) module, and the method further includes:

[0098] The UWB module is used to detect whether the second device enters the preset first distance range or the preset second distance range.

[0099] In this embodiment, the first device can locate the second module through the UWB module. For example, the first device is a multi-antenna UWB module, and the second device is a single-antenna or multi-antenna UWB module. The first device can locate not only the distance of the second device but also the direction of the second device through the built-in multi-antenna UWB module.

[0100] However, it should be noted that the present disclosure is not limited to UWB technology for positioning, and ultrasonic technology may also be used to achieve positioning.

[0101] In step S11, when the first device detects that the second device enters the preset first distance range, the first device establishes a connection with the second device. After the first device detects that the second device enters the preset first distance range, the first device may establish a connection with the second device via Bluetooth, Wi-Fi wireless communication, or Ultra Wide Band (UWB).

[0102] After the first device establishes a connection with the second device, it can authenticate the second device in step S12. It should be noted that in the embodiment of the present disclosure, the purpose of authenticating the second device is to verify whether the first device and the second device are interactively secure devices.

[0103] In step S13, when the identity authentication of the second device is passed, the first device determines that the second device is a device with preset user authority when it detects that the second device enters a preset second distance range within the preset first distance range and the second device is within a preset direction range of the first device.

[0104] For example, in one embodiment, the preset first distance range may be a distance range within 20 meters from the first device, and the direction is not limited. The preset second distance range is a distance range within 10 meters from the first device. The second device is within the preset direction range of the first device, which may be a direction range of 0 degrees to 20 degrees of the first device.

[0105] In another embodiment, before establishing a connection, not only the first distance range can be limited, but also the first direction range can be limited. For example, the preset first distance range can be a distance range within 20 meters from the first device, and the first direction range can be a direction range within 10 degrees to 50 degrees from the first device. The preset second distance range is a distance range within 10 meters from the first device, but the second device is within 10 degrees to 20 degrees of the first device.

[0106] In addition, in an embodiment of the present disclosure, the first device determines that the second device is a device with preset user permissions, and the preset user permissions include at least one of the following:

[0107] Payment authority;

[0108] Access control permissions;

[0109] Ride privileges;

[0110] Movie viewing rights;

[0111] Seating privileges.

[0112] Taking payment authority as an example, in one embodiment, when a user carries a mobile phone (second device) and walks towards a subway gate (first device), the gate establishes a connection with the mobile phone in advance when it detects that the mobile phone is within a range of 20 meters (preset first distance range). After completing identity confirmation, the gate will understand the location information of the mobile phone (user) in real time. When the user approaches the gate, if it is less than 30 centimeters (preset second distance range) and the angle is within plus or minus 20° (the second device is within the preset direction range of the first device), the deduction operation is triggered.

[0113] In another embodiment, such as a convenience store or supermarket, when a user walks to the cashier with a mobile phone to check out, the charging terminal establishes a connection with the user's mobile phone, and after completing the identity confirmation, the charging terminal knows the location information of the mobile phone in real time. When the distance condition is met and the cashier initiates the deduction operation, the deduction occurs. For example, the distance condition is less than 20 cm and the angle is within plus or minus 30°. It can be understood that the present disclosure is based on the limitation of the preset direction range, which can reduce abnormal deduction operations after, for example, passing through the gate.

[0114] Taking access control as an example, in one embodiment, when a user brings a mobile phone close to the area to be entered, the access control terminal establishes a connection with the user's mobile phone and authenticates the mobile phone. After successful authentication, the access control terminal can obtain the user's location information in real time. When the location information meets the requirements, such as the distance is less than 20 cm and the angle is within plus or minus 5 degrees, the access control, door lock, etc. are opened.

[0115] Taking the right to ride and the right to sit as an example, in one embodiment, when the train staff needs to check tickets, they use the ticket checking terminal to establish a connection with the mobile phones of all or some passengers on the train, and can authenticate the mobile phones. At the same time, the ticket checking terminal can obtain the booking information of passengers within 1 meter in front, so that the train staff can know whether the passenger has a ticket (whether he has the right to ride) without disturbing the passengers, and locate and analyze whether the actual seat of the passenger is consistent with the booking information (seat authority). Movie watching authority is similar to the right to ride, and will not be described in detail in the embodiment of this disclosure.

[0116] In the related technology, there is a payment method based on the Electronic Toll Collection (ETC) system, but this solution is not sensitive to the distance information of the vehicle, which leads to the situation of malicious people cutting in line to pass on the cost. If the solution disclosed in this disclosure is used to determine the access control authority and payment authority of the vehicle, relying on accurate positioning functions, such as positioning using a UWB module, and two range confirmations, the situation of cutting in line to pass on the cost can be reduced.

[0117] In addition, in mainstream technologies based on face recognition, when a user wears a mask, the user needs to cooperate to remove the mask, or take out a mobile phone to scan a QR code to verify the identity, which is inconvenient and also depends on the light of the collection environment. The above problems will lead to poor user experience. The solution of the present disclosure does not depend on light conditions and does not require the user to actively cooperate, so it can give users a senseless experience and can also support the authorization authentication of multiple users at the same time.

[0118] In summary, it can be understood that the present disclosure sets a preset first distance range, establishes a connection with the second device when the second device enters the preset first distance range to authenticate the second device, and after the authentication is passed, determines that the second device is a device with preset user permissions based on the second device entering the preset direction range and the preset second distance range within the preset first distance range. On the one hand, combined with the spatial range, identity authentication is performed first and then permissions are granted, which can enhance the security of identity recognition; on the other hand, it does not rely on light conditions and does not require active cooperation from users, can provide a seamless user experience, and can simultaneously support the confirmation of preset user permissions for multiple devices, which can improve the efficiency of identity authentication.

[0119] In one embodiment, authenticating the second device based on the connection includes:

[0120] Based on the connection, a key is exchanged with the second device to authenticate the identity of the second device.

[0121] In this embodiment, the first device and the second device are equipped with a secure storage area or a similar secure execution environment for storing keys. The stored keys are used to verify the identity of the other party. The first device and the second device exchange their respective stored keys to achieve identity authentication. When identity authentication is performed based on keys, symmetric keys or asymmetric keys can be used. In addition, the generation and distribution of keys can be performed by burning the device during factory production, or by public key exchange based on certificates. Key-based identity authentication can be performed in accordance with GP protocols such as SCP02 / 03 or SCP10 / 11.

[0122] For example, the first device and the second device are connected, and after the two parties exchange certificates, they obtain each other's public key, and then each calculates the stored private key and the other party's public key based on a preset algorithm to generate a key. When the keys generated by the first device and the second device are the same, it is confirmed that the identity authentication of the second device is successful.

[0123] In one embodiment, in response to detecting that the second device enters a preset first distance range, establishing a connection with the second device includes:

[0124] In response to detecting that a plurality of second devices enter the preset first distance range, sorting the distances between each second device and the first device;

[0125] Based on the ranking, a preset number of second devices are selected to establish a connection; wherein the distance between the selected preset number of second devices and the first device is smaller than the distance between the unselected second devices and the first device.

[0126] In an embodiment of the present disclosure, there may be multiple second devices entering the preset first distance range, and the communication capacity of the first device is limited, so the first device may only be able to connect with some of the second devices entering the preset first distance range.

[0127] In this regard, when the present disclosure detects that multiple second devices enter a preset first distance range, the distances between the second devices and the first device are sorted, and then a preset number of second devices with smaller distances are selected to establish connections.

[0128] It can be understood that the closer the distance to the first device is, the greater the possibility that the second device enters the preset second distance range, and the greater the possibility that the user carrying the second device wants to obtain the preset user authority. Therefore, after sorting the distances, the present invention selects a preset number of second devices with smaller distances to establish a connection, and continues to detect whether the selected second devices enter the preset second distance range. This can improve the rationality of monitoring the second device based on the limited communication capacity of the first device, thereby improving the efficiency of identity recognition.

[0129] In one embodiment, the method further comprises:

[0130] Based on the connection, obtaining user identification information stored in the second device;

[0131] In response to detecting that the second device enters a preset second distance range and the second device is within a preset direction range of the first device, determining that the second device is a device with preset user authority includes:

[0132] In response to detecting that the second device enters the preset second distance range, the second device is within the preset direction range of the first device, and the user identification information belongs to the preset target user identification information, determining that the second device is a device with preset user permissions; wherein the preset target user identification information is the identification information of a user with the preset user permissions.

[0133] In the embodiments of the present disclosure, unlike public facilities such as subway gates, community access control is targeted at specific user groups. For example, only users in this community have access control rights. Therefore, it is necessary not only to authenticate the identity of the second device, but also to verify whether the user holding the second device meets the requirements.

[0134] In this regard, user identification information can be stored in the second device of the present invention, and the identification information is, for example, a user name or an ID number. The first device obtains the user identification information stored in the second device based on the connection, and determines that the second device is a device with preset user permissions only when it detects that the second device enters a preset second distance range, the second device is within a preset direction range of the first device, and the user identification information belongs to the preset target user identification information.

[0135] It can be understood that the present disclosure can improve the security of identity recognition by obtaining the user identification information stored in the second device and further verifying the user identification information.

[0136] In one embodiment, in response to detecting that the second device enters a preset second distance range and the second device is within a preset direction range of the first device, determining that the second device is a device with preset user permissions includes:

[0137] In response to detecting that the second device enters the preset second distance range and the second device is within a preset direction range of the first device, based on the connection, sending a ticket checking instruction to the second device;

[0138] Based on the ticket query instruction, obtaining the ticket booking information of the second device;

[0139] If the booking information matches the preset booking information, it is determined that the second device is a device with preset user permissions; wherein the preset user permissions indicate that the user carrying the second device has the permission to ride or the permission to watch a movie.

[0140] Taking the right to take a train or to watch a movie as an example, in the embodiment of the present disclosure, the first device may be a ticket checking terminal, and after the ticket checking terminal detects that the second device has entered the preset second distance range, it sends a ticket checking instruction to the second device. The ticket checking instruction may be triggered to be actively sent to the second device based on the detection that the second device has entered the preset second distance range and the second device is within the preset direction range of the first device; or, the ticket checking instruction is sent after the first device detects that the second device has entered the preset second distance range and the second device is within the preset direction range of the first device, outputs a prompt message, and the ticket checking terminal receives the user's operation based on the prompt message, and the embodiment of the present disclosure does not limit this.

[0141] After the first device sends a ticket checking instruction to the second device, it can receive the ticket booking information fed back by the second device. When the ticket booking information matches the preset ticket booking information, it is determined that the second device is a device with preset user permissions.

[0142] For example, when the booking information received by the ticket checking terminal is the same as the preset booking information, it is determined that the user carrying the second device has the right to take the bus. The booking information includes: the time of the bus, the starting point of the bus, and the train number information.

[0143] For another example, the ticket booking information includes: movie name, movie time and theater name, etc., then when the ticket booking information received by the ticket checking terminal is the same as the preset ticket booking information, it is determined that the user carrying the second device has the right to watch the movie.

[0144] It is understandable that by adopting the solution disclosed in the present invention, the staff can obtain the booking information of users who enter the preset second distance range through the ticket checking terminal without disturbing the users and conduct ticket checking. This solution has intelligent characteristics and can improve the user experience.

[0145] In one embodiment, the ticket booking information includes seat number information;

[0146] In response to detecting that the second device enters a preset second distance range and the second device is within a preset direction range of the first device, determining that the second device is a device with preset user authority includes:

[0147] In response to detecting that the second device enters the preset second distance range, and the second device is within the preset direction range of the first device, determining the seat number of the second device in the space where the second device is located according to the relative distance, relative direction and preset corresponding relationship between the second device and the first device; wherein the preset corresponding relationship includes a corresponding relationship between the distance, direction and seat number;

[0148] If the seat number matches the seat number included in the ticket booking information, it is determined that the second device is a device with preset user permissions; wherein the preset user permissions indicate that the user carrying the second device has seat permissions.

[0149] In the embodiment of the present disclosure, the ticket booking information includes seat number information. When the first device detects that the second device enters the preset second distance range and the second device is within the preset direction range of the first device, the first device will determine the seat number of the second device in the space where the second device is located based on the relative distance, relative direction and preset corresponding relationship between the first device and the second device. For example, based on the relative distance and relative direction between the first device and the second device, the row and number of the second device in the train compartment or the row and number of the second device in the cinema can be determined based on the preset corresponding relationship.

[0150] It can be understood that the solution of the present disclosure can be applied to actual scenarios that require precise positioning, which can reduce manual operations and statistics and has intelligent characteristics.

[0151] Figure 2 This is a process flow of an identity recognition method shown in the embodiment of the present disclosure. Figure 2 ,like Figure 2 As shown, the identity recognition method applied to the second device includes the following steps:

[0152] S21. In response to entering a preset first distance range of a first device, establishing a connection with the first device;

[0153] S22. Performing identity authentication with the first device based on the connection;

[0154] S23. After the identity authentication is passed, in response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, obtaining preset user permissions; wherein the preset second distance range is within the preset first distance range.

[0155] In the embodiments of the present disclosure, the second device may be a mobile device such as a mobile phone or a tablet computer, and the first device may be a terminal device with a positioning function.

[0156] In one embodiment, both the first device and the second device include a UWB module, and the UWB module is used by the first device to determine whether the second device enters the preset first distance range or the preset second distance range.

[0157] As mentioned above, the first device may be a multi-antenna UWB module, and the second device may be a single-antenna or multi-antenna UWB module. The first device can locate not only the distance of the second device but also the direction of the second device through the built-in multi-antenna UWB module.

[0158] In step S21, when the second device enters a preset first distance range of the first device, it establishes a connection with the first device, for example, by Bluetooth, Wi-Fi wireless communication or UWB.

[0159] After establishing a connection with the first device, in step S22, identity authentication can be performed with the first device based on the connection.

[0160] In one embodiment, performing identity authentication with the first device based on the connection includes:

[0161] Based on the connection, a key is exchanged with the first device to perform identity authentication.

[0162] In this embodiment, the first device and the second device are equipped with a secure storage area or a similar secure execution environment for storing keys. The stored keys are used to verify the identity of the other party. The first device and the second device implement identity authentication by exchanging their respective stored keys.

[0163] For example, the first device and the second device are connected, and after the two parties exchange certificates, they obtain each other's public key, and then each device calculates the stored private key and the other party's public key based on a preset algorithm to generate a key. When the keys generated by the first device and the second device are the same, it is confirmed that the identity authentication is successful.

[0164] In step S23, after the identity authentication is passed, the second device obtains the preset user authority in response to entering the preset second distance range of the first device and being within the preset direction range of the first device. The preset user authority is as described above and will not be repeated here.

[0165] It can be understood that the present disclosure sets a preset first distance range, and the second device establishes a connection with the first device in response to entering the preset first distance range to perform identity authentication with the first device. After the identity authentication is passed, it then responds to entering the preset direction range and the preset second distance range within the preset first distance range to obtain the preset user authority. On the one hand, combined with the spatial range, identity authentication is performed first and then the authority is obtained, which can enhance the security of identity recognition; on the other hand, it does not rely on light conditions and does not require the user to actively cooperate, which can provide a seamless user experience, and can simultaneously support the confirmation of preset user authorities of multiple devices, which can improve the efficiency of identity authentication.

[0166] In one embodiment, in response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, obtaining preset user permissions includes:

[0167] In response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, the stored user identification information is sent to the first device based on the connection; wherein the user identification information is used by the first device to determine that the second device is a device with preset user permissions after the first device determines that it belongs to preset target user identification information; wherein the preset target user identification information is the identification information of a user with the preset user permissions.

[0168] In the embodiments of the present disclosure, unlike public facilities such as subway gates, community access control is targeted at specific user groups. For example, only users in this community have access control rights. Therefore, it is necessary not only to authenticate the identity of the second device, but also to verify whether the user holding the second device meets the requirements.

[0169] In this regard, user identification information can be stored in the second device of the present invention, and the identification information is, for example, a user name or an ID number, etc. In response to the second device entering a preset second distance range of the first device, and the second device is within a preset direction range of the first device, it triggers the sending of the stored user identification information to the first device, so that when the first device detects that the user identification information belongs to the preset target user identification information, it determines that the second device is a device with preset user permissions.

[0170] It can be understood that the present disclosure can improve the security of identity recognition by sending user identification information to the first device so that the first device verifies the user identification information.

[0171] In one embodiment, in response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, obtaining preset user permissions includes:

[0172] In response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, receiving a ticket checking instruction sent by the first device based on the connection;

[0173] According to the ticket checking instruction, the ticket booking information is sent to the first device; the ticket booking information is used by the first device to determine that the second device is a device with preset user permissions after the first device determines that the ticket booking information is consistent with the preset ticket booking information; wherein the preset user permissions indicate that the user carrying the second device has the permission to ride or watch a movie.

[0174] Taking the right to ride a vehicle or to watch a movie as an example, in an embodiment of the present disclosure, the first device may be a ticket checking terminal. After the ticket checking terminal detects that the second device has entered a preset second distance range, it sends a ticket checking instruction to the second device.

[0175] After receiving the ticket checking instruction, the second device may send the booking information to the first device, so that when the first device determines that the booking information matches the preset booking information, it determines that the second device is a device with preset user authority.

[0176] For example, when the booking information received by the ticket checking terminal is the same as the preset booking information, it is determined that the user carrying the second device has the right to take the bus. The booking information includes: the time of the bus, the starting point of the bus, and the train number information.

[0177] For another example, the ticket booking information includes: movie name, movie time and theater name, etc., then when the ticket booking information received by the ticket checking terminal is the same as the preset ticket booking information, it is determined that the user carrying the second device has the right to watch the movie.

[0178] It can be understood that, by adopting the solution of the present disclosure, the second device sends the ticket booking information to the first device without disturbing the user, so as to facilitate the first device to check the ticket, which has the characteristics of intelligence and can improve the user experience.

[0179] Figure 3 is an example diagram of an identity recognition method interaction shown in an embodiment of the present disclosure, such as Figure 3 As shown, the identity recognition method applied to the first device and the second device includes the following steps:

[0180] S31. In response to entering a preset first distance range of a first device, the second device establishes a connection with the first device;

[0181] S32. The second device performs identity authentication with the first device based on the connection;

[0182] S33. If the identity authentication passes, the first device determines that the second device is a device with preset user permissions in response to detecting that the second device enters a preset second distance range and the second device is within a preset direction range of the first device; wherein the preset second distance range is within the preset first distance range.

[0183] In an embodiment of the present disclosure, the first device may be a terminal device with a positioning function, and the second device may be a mobile device such as a mobile phone or a tablet computer.

[0184] The present disclosure sets a preset first distance range, establishes a connection with the second device when the second device enters the preset first distance range to authenticate the second device, and after the authentication is passed, determines that the second device is a device with preset user permissions based on the second device entering the preset direction range and the preset second distance range within the preset first distance range. On the one hand, combined with the spatial range, identity authentication is performed first and then permissions are granted, which can enhance the security of identity recognition; on the other hand, it does not rely on light conditions and does not require active cooperation from users, can provide a seamless user experience, and can simultaneously support the confirmation of preset user permissions for multiple devices, which can improve the efficiency of identity authentication.

[0185] Figure 4 An identity recognition device according to an exemplary embodiment is shown Figure 1 . Reference Figure 4 , the identity recognition device used in the first device includes:

[0186] The first connection module 101 is configured to establish a connection with the second device in response to detecting that the second device enters a preset first distance range;

[0187] A first authentication module 102, configured to perform identity authentication on the second device based on the connection;

[0188] The determination module 103 is configured to determine that the second device is a device with preset user permissions in response to detecting that the second device enters a preset second distance range and is within a preset direction range of the first device if the identity authentication passes; wherein the preset second distance range is within the preset first distance range.

[0189] In some embodiments, the first authentication module 102 is further configured to authenticate the second device based on the connection and the second device exchange key.

[0190] In some embodiments, the first connection module 101 is further configured to sort the distances between each second device and the first device in response to detecting that multiple second devices enter the preset first distance range; based on the sorting, select a preset number of second devices to establish a connection; wherein the distance between the selected preset number of second devices and the first device is smaller than the distance between the unselected second devices and the first device.

[0191] In some embodiments, the apparatus further comprises:

[0192] A first acquisition module 104, configured to acquire user identification information stored in the second device based on the connection;

[0193] The determination module 103 is also configured to determine that the second device is a device with preset user permissions in response to detecting that the second device enters the preset second distance range, and the second device is within the preset direction range of the first device, and the user identification information belongs to the preset target user identification information; wherein the preset target user identification information is the identification information of a user with the preset user permissions.

[0194] In some embodiments, the preset user rights include at least one of the following:

[0195] Payment authority;

[0196] Access control permissions;

[0197] Ride privileges;

[0198] Movie viewing rights;

[0199] Seating privileges.

[0200] In some embodiments, the determination module 103 is also configured to, in response to detecting that the second device enters the preset second distance range and the second device is within the preset direction range of the first device, send a ticket check instruction to the second device based on the connection; based on the ticket check instruction, obtain the ticket information of the second device; if the ticket information matches the preset ticket information, determine that the second device is a device with preset user permissions; wherein the preset user permissions indicate that the user carrying the second device has the right to ride or watch a movie.

[0201] In some embodiments, the ticket booking information includes seat number information;

[0202] The determination module 103 is further configured to determine the seat number of the second device in the space where the second device is located according to the relative distance, relative direction and preset correspondence between the second device and the first device in response to detecting that the second device enters the preset second distance range and the second device is within the preset direction range of the first device; wherein the preset correspondence direction includes the correspondence between the distance, direction and seat number; if the seat number matches the seat number included in the ticket booking information, determine that the second device is a device with preset user permissions; wherein the preset user permissions indicate that the user carrying the second device has seat permissions.

[0203] In some embodiments, both the first device and the second device include a UWB module, and the apparatus further includes:

[0204] The detection module 105 is configured to detect, through the UWB module, whether the second device enters the preset first distance range or the preset second distance range.

[0205] Figure 5 An identity recognition device according to an exemplary embodiment is shown Figure 2 . Reference Figure 5 , the identity recognition device used in the second device includes:

[0206] The second connection module 201 is configured to establish a connection with the first device in response to entering a preset first distance range of the first device;

[0207] A second authentication module 202, configured to perform identity authentication with the first device based on the connection;

[0208] The second acquisition module 203 is configured to acquire preset user permissions in response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device after the identity authentication is passed; wherein the preset second distance range is within the preset first distance range.

[0209] In some embodiments, the second authentication module 202 is further configured to perform identity authentication based on the connection and the exchange key with the first device.

[0210] In some embodiments, the second acquisition module 203 is also configured to send the stored user identification information to the first device based on the connection in response to entering a preset second distance range of the first device and the second device is within a preset direction range of the first device; wherein the user identification information is used by the first device to determine that the second device is a device with preset user permissions after the first device determines that it belongs to preset target user identification information; wherein the preset target user identification information is the identification information of a user with the preset user permissions.

[0211] In some embodiments, the second acquisition module 203 is also configured to, in response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, receive a ticket checking instruction sent by the first device based on the connection; and send booking information to the first device according to the ticket checking instruction; the ticket booking information is used for the first device to determine that the second device is a device with preset user permissions after determining that the ticket booking information is consistent with the preset ticket booking information; wherein the preset user permissions indicate that the user carrying the second device has the right to ride or watch a movie.

[0212] In some embodiments, both the first device and the second device include a UWB module, and the UWB module is used by the first device to determine whether the second device enters the preset first distance range or the preset second distance range.

[0213] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0214] Figure 6 800 is a block diagram of a device shown in an embodiment of the present disclosure. For example, the apparatus 800 may be a first device or a second device.

[0215] Reference Figure 6 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0216] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0217] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0218] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0219] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0220] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0221] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0222] The sensor assembly 814 includes one or more sensors for providing various aspects of the status assessment of the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0223] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0224] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0225] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0226] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a first device, enables the first device to perform an identity recognition method, the method comprising:

[0227] In response to detecting that a second device enters a preset first distance range, establishing a connection with the second device;

[0228] Based on the connection, authenticating the second device;

[0229] If the identity authentication passes, in response to detecting that the second device enters a preset second distance range and the second device is within a preset direction range of the first device, the second device is determined to be a device with preset user permissions; wherein the preset second distance range is within the preset first distance range.

[0230] Alternatively, when the instructions in the storage medium are executed by a processor of the second device, the second device is enabled to perform an identity recognition method, the method comprising:

[0231] In response to entering a preset first distance range of a first device, establishing a connection with the first device;

[0232] Based on the connection, performing identity authentication with the first device;

[0233] After the identity authentication is passed, in response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, the preset user authority is obtained; wherein the preset second distance range is within the preset first distance range.

[0234] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0235] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. An identity recognition method, It is characterized in that Applied in a first device, the method includes: In response to detecting that a second device enters a preset first distance range, establishing a connection with the second device; Based on the connection, authenticating the second device; Based on the connection, obtaining user identification information stored in the second device; If the identity authentication is passed, in response to detecting that the second device enters a preset second distance range and the second device is within a preset direction range of the first device, determining that the second device is a device with preset user authority; wherein the preset second distance range is within the preset first distance range; Wherein, in response to detecting that the second device enters a preset second distance range and the second device is within a preset direction range of the first device, determining that the second device is a device with preset user authority includes: In response to detecting that the second device enters the preset second distance range, the second device is within the preset direction range of the first device, and the user identification information belongs to the preset target user identification information, determining that the second device is a device with preset user permissions; wherein the preset target user identification information is the identification information of a user with the preset user permissions.

2. The method according to claim 1, It is characterized in that The performing identity authentication on the second device based on the connection includes: Based on the connection, a key is exchanged with the second device to authenticate the identity of the second device.

3. The method according to claim 1, It is characterized in that In response to detecting that the second device enters a preset first distance range, establishing a connection with the second device includes: In response to detecting that a plurality of second devices enter the preset first distance range, sorting the distances between each second device and the first device; Based on the ranking, a preset number of second devices are selected to establish a connection; wherein the distance between the selected preset number of second devices and the first device is smaller than the distance between the unselected second devices and the first device.

4. The method according to claim 1, It is characterized in that The preset user rights include at least one of the following: Payment authority; Access control permissions; Ride privileges; Movie viewing rights; Seating privileges.

5. The method according to claim 1, It is characterized in that In response to detecting that the second device enters a preset second distance range and the second device is within a preset direction range of the first device, determining that the second device is a device with preset user authority includes: In response to detecting that the second device enters the preset second distance range and the second device is within a preset direction range of the first device, based on the connection, sending a ticket checking instruction to the second device; Based on the ticket query instruction, obtaining the ticket booking information of the second device; If the booking information matches the preset booking information, it is determined that the second device is a device with preset user permissions; wherein the preset user permissions indicate that the user carrying the second device has the permission to ride or the permission to watch a movie.

6. The method according to claim 5, It is characterized in that The ticket booking information includes seat number information; In response to detecting that the second device enters a preset second distance range and the second device is within a preset direction range of the first device, determining that the second device is a device with preset user authority includes: In response to detecting that the second device enters the preset second distance range, and the second device is within the preset direction range of the first device, determining the seat number of the second device in the space where the second device is located according to the relative distance, relative direction and preset corresponding relationship between the second device and the first device; wherein the preset corresponding relationship includes a corresponding relationship between the distance, direction and seat number; If the seat number matches the seat number included in the ticket booking information, it is determined that the second device is a device with preset user permissions; wherein the preset user permissions indicate that the user carrying the second device has seat permissions.

7. The method according to claim 1, It is characterized in that The first device and the second device both include a UWB module, and the method further includes: The UWB module is used to detect whether the second device enters the preset first distance range or the preset second distance range.

8. An identity recognition method, It is characterized in that Applied in the second device, the method includes: In response to entering a preset first distance range of a first device, establishing a connection with the first device; Based on the connection, performing identity authentication with the first device; After the identity authentication is passed, in response to entering a preset second distance range of the first device, and the second device is within a preset direction range of the first device, obtaining preset user permissions; wherein the preset second distance range is within the preset first distance range; Wherein, in response to entering a preset second distance range of the first device, and the second device being within a preset direction range of the first device, obtaining preset user authority includes: In response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, the stored user identification information is sent to the first device based on the connection; wherein the user identification information is used by the first device to determine that the second device is a device with preset user permissions after the first device determines that it belongs to preset target user identification information; the preset target user identification information is the identification information of a user with the preset user permissions.

9. The method according to claim 8, It is characterized in that The performing identity authentication with the first device based on the connection includes: Based on the connection, a key is exchanged with the first device to perform identity authentication.

10. The method according to claim 8, It is characterized in that In response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, obtaining preset user permissions includes: In response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, receiving a ticket checking instruction sent by the first device based on the connection; According to the ticket checking instruction, the ticket booking information is sent to the first device; the ticket booking information is used by the first device to determine that the second device is a device with preset user permissions after the first device determines that the ticket booking information is consistent with the preset ticket booking information; wherein the preset user permissions indicate that the user carrying the second device has the permission to ride or watch a movie.

11. The method according to claim 8, It is characterized in that The first device and the second device both include a UWB module, and the UWB module is used by the first device to determine whether the second device enters the preset first distance range or the preset second distance range.

12. An identity recognition device, It is characterized in that Applied in a first device, the apparatus comprises: A first connection module, configured to establish a connection with the second device in response to detecting that the second device enters a preset first distance range; A first authentication module, configured to perform identity authentication on the second device based on the connection; A first acquisition module, configured to acquire user identification information stored in the second device based on the connection; The determination module is configured to determine that the second device is a device with preset user authority if the identity authentication passes, in response to detecting that the second device enters a preset second distance range, the second device is within a preset direction range of the first device, and the user identification information belongs to the preset target user identification information; wherein the preset second distance range is within the preset first distance range, and the preset target user identification information is the identification information of a user with the preset user authority.

13. The device according to claim 12, It is characterized in that The first authentication module is further configured to perform identity authentication on the second device based on the connection and the exchange key with the second device.

14. The device according to claim 12, It is characterized in that The first connection module is further configured to sort the distances between each second device and the first device in response to detecting that multiple second devices enter the preset first distance range; based on the sorting, select a preset number of second devices to establish a connection; wherein the distance between the selected preset number of second devices and the first device is smaller than the distance between the unselected second devices and the first device.

15. The device according to claim 12, It is characterized in that The preset user rights include at least one of the following: Payment authority; Access control permissions; Ride privileges; Movie viewing rights; Seating privileges.

16. The device according to claim 12, It is characterized in that The determination module is further configured to, in response to detecting that the second device enters the preset second distance range and the second device is within the preset direction range of the first device, send a ticket checking instruction to the second device based on the connection; and obtain the ticket booking information of the second device based on the ticket checking instruction; If the booking information matches the preset booking information, it is determined that the second device is a device with preset user permissions; wherein the preset user permissions indicate that the user carrying the second device has the permission to ride or the permission to watch a movie.

17. The device according to claim 16, It is characterized in that The ticket booking information includes seat number information; The determination module is further configured to determine, in response to detecting that the second device enters the preset second distance range and the second device is within the preset direction range of the first device, the seat number of the second device in the space where the second device is located according to the relative distance, relative direction and preset correspondence between the second device and the first device; wherein the preset correspondence direction includes the correspondence between the distance, direction and seat number; if the seat number matches the seat number included in the ticket booking information, determine that the second device is a device with preset user permissions; wherein the preset user permissions indicate that the user carrying the second device has seat permissions.

18. The device according to claim 12, It is characterized in that The first device and the second device both include a UWB module, and the apparatus further includes: The detection module is configured to detect, through the UWB module, whether the second device enters the preset first distance range or the preset second distance range.

19. An identity recognition device, It is characterized in that Applied in a second device, the apparatus comprises: a second connection module, configured to establish a connection with the first device in response to entering a preset first distance range of the first device; a second authentication module, configured to perform identity authentication with the first device based on the connection; The second acquisition module is configured to, after the identity authentication is passed, in response to entering a preset second distance range of the first device, and the second device is within a preset direction range of the first device, send the stored user identification information to the first device based on the connection; wherein the preset second distance range is within the preset first distance range, and the user identification information is used by the first device to determine that the second device is a device with preset user permissions after determining that it belongs to the preset target user identification information; the preset target user identification information is the identification information of a user with the preset user permissions.

20. The device according to claim 19, It is characterized in that The second authentication module is further configured to perform identity authentication by exchanging a key with the first device based on the connection.

21. The device according to claim 19, It is characterized in that The second acquisition module is further configured to, in response to entering a preset second distance range of the first device and the second device being within a preset direction range of the first device, receive a ticket checking instruction sent by the first device based on the connection; and send ticket booking information to the first device according to the ticket checking instruction; The ticket booking information is used to determine that the second device is a device with preset user permissions after the first device determines that the ticket booking information is consistent with the preset ticket booking information; wherein the preset user permissions indicate that the user carrying the second device has the permission to ride or watch a movie.

22. The device according to claim 19, It is characterized in that The first device and the second device both include a UWB module, and the UWB module is used by the first device to determine whether the second device enters the preset first distance range or the preset second distance range.

23. A device, It is characterized in that include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the identity recognition method according to any one of claims 1 to 7 or the identity recognition method according to any one of claims 8 to 11.

24. A non-transitory computer-readable storage medium, It is characterized in that When the instructions in the storage medium are executed by the processor of the first device, the first device is enabled to execute the identity identification method as described in any one of claims 1 to 7; or, when the instructions in the storage medium are executed by the processor of the second device, the second device is enabled to execute the identity identification method as described in any one of claims 8 to 11.

Citation Information

Patent Citations

  • Identity authentication method and identity authentication device

    CN106161032A

  • Identity recognition method and device and related equipment

    CN110163611A