Electronic device unlocking method, apparatus, device, and medium
Patent Information
- Application Number
- CN202311553467.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-20
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2043-11-20
AI Technical Summary
[0004]相关技术中,无法通过用户的视线对电子设备进行解锁
[0018]第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如本申请实施例第一方面提供的电子设备解锁方法的步骤。
Smart Images

Figure CN117555422B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic equipment technology, and specifically relates to an electronic equipment unlocking method, device, equipment and medium. Background Technology
[0002] With the development of electronic devices and applications, mobile office, mobile social networking, and mobile payment are becoming increasingly important in people's lives. Users are also paying more and more attention to the protection of their privacy information, and locking the screen of electronic devices is being used by users to protect their privacy information.
[0003] Among the relevant technologies, there are two main unlocking methods: biometric unlocking (e.g., face unlocking and fingerprint unlocking) and password unlocking (e.g., pattern password unlocking and character password unlocking).
[0004] In related technologies, it is impossible to unlock electronic devices through the user's line of sight. Summary of the Invention
[0005] The purpose of this application is to provide an electronic device unlocking method, apparatus, device, and medium that can unlock electronic devices through the user's line of sight, thereby increasing the diversity of electronic device unlocking methods.
[0006] In a first aspect, embodiments of this application provide an electronic device unlocking method, applied to a first electronic device, the method comprising:
[0007] Receive target information sent by a second electronic device, wherein the second electronic device is an electronic device worn on the user's head, and the target information includes the orientation of the second electronic device and the first distance between the second electronic device and the first electronic device;
[0008] Determine the direction of the user's gaze based on the orientation of the second electronic device;
[0009] Determine whether there is an intersection between the line of sight and the screen of the first electronic device based on the first distance;
[0010] Unlock the first electronic device when there is an intersection between the line of sight and the screen of the first electronic device.
[0011] Secondly, embodiments of this application provide an electronic device unlocking device, applied to a first electronic device, the device comprising:
[0012] The receiving module is used to receive target information sent by the second electronic device, wherein the second electronic device is an electronic device worn on the user's head, and the target information includes the orientation of the second electronic device and the first distance between the second electronic device and the first electronic device;
[0013] The determining module is used to determine the direction of the user's eye gaze based on the orientation of the second electronic device;
[0014] The judgment module is used to determine whether there is an intersection between the line of sight and the screen of the first electronic device based on the first distance;
[0015] The unlocking module is used to unlock the first electronic device when there is an intersection between the line of sight and the screen of the first electronic device.
[0016] Thirdly, embodiments of this application provide an electronic device, which includes a processor and a memory. The memory stores programs or instructions that can run on the processor. When the program or instructions are executed by the processor, they implement the steps of the electronic device unlocking method provided in the first aspect of embodiments of this application.
[0017] Fourthly, embodiments of this application provide a readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the electronic device unlocking method provided in the first aspect of embodiments of this application.
[0018] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the steps of the electronic device unlocking method provided in the first aspect of embodiments of this application.
[0019] In a sixth aspect, embodiments of this application provide a computer program product, which is stored in a storage medium and executed by at least one processor to implement the steps of the electronic device unlocking method provided in the first aspect of embodiments of this application.
[0020] In this embodiment, the first electronic device receives the orientation direction of the second electronic device and the first distance between the second electronic device and the user's head from a second electronic device worn on the user's head. Based on the orientation direction of the second electronic device, it determines the user's line of sight. Based on the first distance, it determines whether the user's line of sight intersects with the screen of the first electronic device. If the user's line of sight intersects with the screen of the first electronic device, the first electronic device is unlocked. This allows the electronic device to be unlocked based on the user's line of sight, increasing the diversity of unlocking methods. Attached Figure Description
[0021] Figure 1 This is a flowchart illustrating the electronic device unlocking method provided in an embodiment of this application;
[0022] Figure 2This is a schematic diagram illustrating a first relationship between the user's line of sight and the screen of the first electronic device, provided in an embodiment of this application.
[0023] Figure 3 This is a schematic diagram illustrating a second relationship between the user's line of sight and the screen of the first electronic device, provided in an embodiment of this application.
[0024] Figure 4 This is a schematic diagram illustrating a third relationship between the user's line of sight and the screen of the first electronic device, provided in an embodiment of this application.
[0025] Figure 5 This is a schematic diagram showing the positions of the synthetic aperture radar and the pulse signal transmitting module provided in the embodiments of this application;
[0026] Figure 6 This is a schematic diagram showing the positional relationship between the first electronic device and the second electronic device provided in an embodiment of this application;
[0027] Figure 7 This is a schematic diagram of the structure of the electronic device unlocking device provided in the embodiments of this application;
[0028] Figure 8 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;
[0029] Figure 9 This is a schematic diagram of the hardware structure of an electronic device that implements the embodiments of this application. Detailed Implementation
[0030] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0031] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0032] The electronic device unlocking method, apparatus, device, and medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0033] The electronic device unlocking method and apparatus provided in this application can be applied to a first electronic device, which can be a terminal or other devices besides a terminal. For example, the first electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application does not specifically limit the application.
[0034] The first electronic device in this application embodiment can be an electronic device with an operating system. The operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.
[0035] Figure 1 This is a flowchart illustrating the electronic device unlocking method provided in this application embodiment. The electronic device unlocking method applied to the first electronic device may include:
[0036] Step 101: Receive target information sent by the second electronic device, wherein the second electronic device is an electronic device worn on the user's head, and the target information includes the orientation of the second electronic device and the first distance between the second electronic device and the first electronic device.
[0037] The second electronic device in this application embodiment includes, but is not limited to: headphones, head-mounted display devices (e.g., virtual reality (VR) glasses, augmented reality (AR) glasses), and may also be other electronic devices that can be worn or attached to the head.
[0038] Step 102: Determine the user's line of sight based on the orientation of the second electronic device.
[0039] Step 103: Determine whether there is an intersection between the line of sight and the screen of the first electronic device based on the first distance. If so, proceed to step 104.
[0040] Step 104: If the line of sight intersects with the screen of the first electronic device based on the first distance, unlock the first electronic device.
[0041] The specific implementation methods of the above steps will be described in detail below.
[0042] In this embodiment, the first electronic device receives the orientation direction of the second electronic device and the first distance between the second electronic device and the user's head from a second electronic device worn on the user's head. Based on the orientation direction of the second electronic device, it determines the user's line of sight. Based on the first distance, it determines whether the user's line of sight intersects with the screen of the first electronic device. If the user's line of sight intersects with the screen of the first electronic device, the first electronic device is unlocked. This allows the electronic device to be unlocked based on the user's line of sight, increasing the diversity of unlocking methods.
[0043] It is understandable that when the user's line of sight intersects with the screen of the first electronic device, the user's line of sight falls on the screen of the first electronic device.
[0044] In some possible implementations of this application's embodiments, the second electronic device may include an electronic compass, a gyroscope, and a communication module. The electronic compass determines the horizontal direction based on the strength of the current in the "Hall effect." The gyroscope is a device that uses the angular momentum of a high-speed rotating body to sense the angular motion of its housing relative to inertial space around one or two axes orthogonal to its rotation axis, used to measure the angle between the orientation direction of the second electronic device and the horizontal direction. The second electronic device determines its orientation direction using the data measured by the electronic compass and gyroscope. This application's embodiments do not elaborate on the specific process of determining the orientation direction of the second electronic device using the data measured by the electronic compass and gyroscope; for details, please refer to the descriptions in related technologies. The communication module is used to transmit the orientation direction of the second electronic device to the first electronic device.
[0045] In some possible implementations of this application's embodiments, in step 102, the direction of the user's gaze can be determined based on the relative positional relationship between the user's eyes and the second electronic device.
[0046] In some possible implementations of the embodiments of this application, when determining the direction of the user's gaze based on the relative positional relationship between the user's eyes and the second electronic device, the orientation direction of the second electronic device can be rotated in three dimensions based on the relative positional relationship between the user's eyes and the second electronic device to obtain the direction of the user's gaze.
[0047] For example, if the second electronic device is directly in front of the user's eyes, then the orientation of the second electronic device is the direction of the user's line of sight.
[0048] For another example, if the second electronic device is located 5 centimeters from the center of the user's eyes on the forehead, then the second electronic device is rotated according to the rotation matrix corresponding to the location of the second electronic device at 5 centimeters from the center of the user's eyes on the forehead to obtain a coordinate. This coordinate is the coordinate of the user's eyes, and the direction of the intersection of this coordinate is the direction of the user's gaze. The intersection is the intersection of the orientation direction of the second electronic device and the plane where the screen of the first electronic device is located.
[0049] In some possible implementations of this application's embodiments, step 102 may include: taking the orientation of the second electronic device as the user's line of sight.
[0050] Typically, the orientation of a second electronic device worn on a user's head is roughly the same as the user's line of sight; even if there is a slight deviation, it is negligible. Therefore, the orientation of the second electronic device can be used as the user's line of sight.
[0051] In some possible implementations of this application embodiment, step 103 may include: determining a second distance from the second electronic device to the target point, a third distance from the second electronic device to the first position point, a third distance from the second electronic device to the second position point, a first angle between the oriented direction and the plane where the screen is located, a second angle between the line segment from the second electronic device to the second position point and the plane where the screen is located, and a third angle between the line segment from the second electronic device to the first position point and the plane where the screen is located, where the target point is the intersection of the oriented direction and the plane where the screen of the first electronic device is located, the first position point is the position point on the screen closest to the second electronic device, and the second position point is the position point on the screen farthest from the second electronic device; if the second distance is greater than or equal to the third distance and less than or equal to the fourth distance, and the first angle is greater than or equal to the second angle and less than or equal to the third angle, determining that the line of sight intersects with the screen of the first electronic device.
[0052] For example, such as Figures 2 to 4 As shown. Figure 2 This is a schematic diagram illustrating a first relationship between the line of sight and the screen of the first electronic device, provided in an embodiment of this application. Figure 3 This is a schematic diagram illustrating a second relationship between the line of sight and the screen of the first electronic device, provided in an embodiment of this application. Figure 4 This is a schematic diagram illustrating a third relationship between the line of sight and the screen of the first electronic device, provided in an embodiment of this application. Figure 2 and Figure 3In this case, the user's gaze is not fixed on the screen of the first electronic device; Figure 4 In this context, the user's gaze is fixed on the screen of the first electronic device.
[0053] exist Figures 2 to 4 In the diagram, the line of sight from point O to point P represents the user's line of sight; the second distance is the distance from point O to point P; the third distance is the distance from point O to point C; and the fourth distance is the distance from point O to point A. Point O represents the position of the second electronic device (i.e., the position of the user's eye); O' is the projection of point O onto the plane of the screen of the first electronic device; point P is the intersection of the orientation direction of the second electronic device and the plane of the screen of the first electronic device; and points A, B, C, and D are the four vertices of the screen of the first electronic device.
[0054] The first angle is ∠OPO', the second angle is ∠OCO', and the third angle is ∠OAO'.
[0055] In some possible implementations of this application, the second electronic device may include a pulse signal transmitting module, and the first electronic device may be equipped with a pulse signal receiving module. The pulse signal transmitting module can transmit a pulse signal, and the distance from the second electronic device to the pulse signal receiving module can be calculated using the pulse signal and the target echo (i.e., the signal reflected by the pulse signal receiving module).
[0056] In some possible implementations of the embodiments of this application, the distance from the second electronic device to the pulse signal receiving module is the first distance from the second electronic device to the first electronic device.
[0057] For example, a pulse signal transmitting module transmits a pulse signal with a pulse width of x and a period of T. Assuming the speed of propagation of the pulse signal in the air is c, the distance between the pulse signal transmitting module and the pulse signal receiving module is R, and the delay of the target echo relative to the pulse signal transmitted by the pulse signal transmitting module is t, then R = c * t / 2.
[0058] Since the pulse signal transmitting module is located on the second electronic device and is relatively small, the distance between the second electronic device and the pulse signal receiving module is less affected by the pulse signal transmitting module. Therefore, the distance between the pulse signal transmitting module and the pulse signal receiving module can be used as the distance between the second electronic device and the pulse signal receiving module.
[0059] In some possible implementations of this application, the pulse signal receiving module can be located by the pulse signal transmitting module to obtain the three-dimensional coordinates of the pulse signal receiving module. Based on the positional relationship of the pulse signal receiving module relative to the four corner vertices of the screen of the first electronic device, the three-dimensional coordinates of the four corner vertices of the screen of the first electronic device are determined. Then, the distance from the second electronic device to the intersection of the orientation direction of the second electronic device and the plane where the screen of the first electronic device is located, the distance from the second electronic device to the nearest point on the screen, the distance from the second electronic device to the farthest point on the screen, the angle between the orientation direction of the second electronic device and the plane where the screen is located, the angle between the line segment from the second electronic device to the nearest point on the screen and the plane where the screen is located, and the angle between the line segment from the second electronic device to the farthest point on the screen and the plane where the screen is located are determined.
[0060] For example, taking a pulse signal transmitting module including a synthetic aperture radar as an example, the calculation of the three-dimensional coordinates of the pulse signal receiving module will be explained. Figure 5 As shown, Figure 5 This is a schematic diagram showing the positions of the synthetic aperture radar and the pulse signal transmission module provided in the embodiments of this application.
[0061] Among them, Figure 5 In the diagram, point G to point H represents the direction of movement of the synthetic aperture radar (i.e., the direction of movement of the second electronic device), R1 is the distance from point G to point X of the pulse signal receiving module, R2 is the distance from point H to point X of the pulse signal receiving module, fD1 is the Doppler frequency of the synthetic aperture radar imaging at point G, and fD2 is the Doppler frequency of the synthetic aperture radar imaging at point H.
[0062] In the Earth-fixed coordinate system, according to the Doppler equation and slant range equation of radar, the following relationship exists as shown in formula (1):
[0063]
[0064] In formula (1), PS1 is the position vector of the synthetic aperture radar at point G, PS2 is the position vector of the synthetic aperture radar at point H, PT is the position vector of the pulse signal receiving module at point X, VS1 is the velocity vector of the synthetic aperture radar at point G, VS2 is the velocity vector of the synthetic aperture radar at point H, and λ is the wavelength of the electromagnetic wave (i.e., pulse signal) emitted by the synthetic aperture radar.
[0065] Among them, R1, R2, fD1, fD2, PS1, PS2, VS1 and VS2 can all be obtained by synthetic aperture radar measurement, and λ is a known quantity.
[0066] In the Earth-fixed coordinate system, the positional relationship between the first electronic device and the second electronic device is as follows: Figure 6 As shown, Figure 6 This is a schematic diagram illustrating the positional relationship between the first electronic device and the second electronic device provided in an embodiment of this application. Figure 6 In the diagram, the X-axis, Y-axis, and Z-axis are the coordinate axes of the Earth-fixed coordinate system, O is the origin of the coordinate axes, A, B, C, and D are the four vertices of the screen of the second electronic device, E is the position of the second electronic device, and the direction from E to F is the orientation of the second electronic device, i.e. the direction of the user's eye gaze.
[0067] In some possible implementations of the embodiments of this application, three equations (i.e., equalities) can be selected from the above formula (1) to solve for the three-dimensional coordinates of point X of the pulse signal receiving module; or the above formula (1) can be solved by the least squares method to obtain the three-dimensional coordinates of point X of the pulse signal receiving module.
[0068] After obtaining the three-dimensional coordinates of point X of the pulse signal receiving module, further, based on the positional relationship of point X of the pulse signal receiving module relative to the four corners of the screen of the first electronic device, the three-dimensional coordinates of the four corners of the screen of the first electronic device can be determined. Then, the distance from the second electronic device to the intersection of the orientation direction of the second electronic device and the plane where the screen of the first electronic device is located, the distance from the second electronic device to the nearest point on the screen, the distance from the second electronic device to the farthest point on the screen, the angle between the orientation direction of the second electronic device and the plane where the screen is located, the angle between the line segment from the second electronic device to the nearest point on the screen and the plane where the screen is located, and the angle between the line segment from the second electronic device to the farthest point on the screen and the plane where the screen is located.
[0069] For example, suppose that point X of the pulse signal receiving module is related to the above... Figures 2 to 4 If point A in the diagram coincides with point X, then the three-dimensional coordinates of point X on the pulse signal receiving module are... Figures 2 to 4 The coordinates of point A in the image are given. Then, based on the coordinates of point A, the coordinates of point O, and the positional relationships of each vertex (including the screen side length and screen tilt angle), the coordinates of points B, C, D, and O' can be calculated.
[0070] The length of OA (i.e., the distance from the second electronic device to the farthest point on the screen) can be calculated based on the coordinates of point O and point A. The degree of ∠OAO' (i.e., the angle between the line segment from the second electronic device to the farthest point on the screen and the plane in which the screen is located) can be calculated based on the coordinates of point O, point A, and point O'.
[0071] The length of OC (i.e., the distance from the second electronic device to the nearest point on the screen) can be calculated based on the coordinates of point O and point C. The degree measure of ∠OCO' (i.e., the angle between the line segment from the second electronic device to the nearest point on the screen and the plane in which the screen is located) can be calculated based on the coordinates of point O, point C, and point O'.
[0072] Once the distances from the second electronic device to the intersection of its orientation direction and the plane where the screen of the first electronic device is located, the distances from the second electronic device to the nearest point on the screen, the distances from the second electronic device to the farthest point on the screen, the angle between the orientation direction of the second electronic device and the plane where the screen is located, the angle between the line segment from the second electronic device to the nearest point on the screen and the plane where the screen is located, and the angle between the line segment from the second electronic device to the farthest point on the screen and the plane where the screen is located, can be determined whether there is an intersection between the user's line of sight and the screen of the first electronic device, i.e., whether the user's line of sight falls on the screen of the first electronic device, can be determined. When the user's line of sight falls on the screen of the first electronic device, the first electronic device is unlocked; when the user's line of sight does not fall on the screen of the first electronic device, the first electronic device is not unlocked and remains in a locked state.
[0073] For example, for the above Figures 2 to 4 When OP is greater than OC and less than OA, and ∠OPO' is greater than ∠OAO' and less than ∠OCO', point P is located within ABCD, meaning the user's line of sight falls on the screen of the first electronic device.
[0074] When OP is less than OC, or OP is greater than OA, or ∠OPO' is less than ∠OAO', or ∠OPO' is greater than ∠OCO', point P is located outside ABCD, meaning the user's line of sight is not on the screen of the first electronic device.
[0075] In some possible implementations of the embodiments of this application, in order to improve unlocking efficiency and reduce computational load, the pulse signal receiving module can be set at any one of the four corners of the screen of the first electronic device.
[0076] Based on the above, the second electronic device in this application embodiment includes a synthetic aperture radar, and the second range, third range, fourth range, first angle, second angle and third angle are calculated based on the radar's Doppler equation and slant range equation.
[0077] In some possible implementations of the embodiments of this application, before step 104, the electronic device unlocking method provided in the embodiments of this application may further include: obtaining the identification information of the second electronic device; verifying the identification information; accordingly, step 104 may include: unlocking the first electronic device if the identification information passes the verification.
[0078] In some possible implementations of this application, the first electronic device may pre-store identification information of other electronic devices owned by the user. When the user's gaze falls on the screen of the first electronic device, the identification information of the second electronic device is obtained. The system then checks if there is any identification information identical to that of the second electronic device in the pre-stored identification information. If such information exists, it indicates that the user unlocking the first electronic device through gaze is the owner of the first electronic device, and the first electronic device is unlocked. If such information does not exist, it indicates that the user unlocking the first electronic device through gaze is not the owner of the first electronic device, but another user, and the first electronic device is not unlocked.
[0079] In the embodiments of this application, it is possible to prevent electronic devices from being unlocked by non-electronic device owners, prevent user privacy from being leaked, and improve data security.
[0080] The electronic device unlocking method provided in this application can be executed by an electronic device unlocking device. This application uses an electronic device unlocking device executing the electronic device unlocking method as an example to illustrate the electronic device unlocking device provided in this application.
[0081] Figure 7 This is a schematic diagram of the structure of the electronic device unlocking device provided in this application embodiment. The electronic device unlocking device 700 may include:
[0082] The receiving module 701 is used to receive target information sent by the second electronic device, wherein the second electronic device is an electronic device worn on the user's head, and the target information includes the orientation of the second electronic device and the first distance between the second electronic device and the first electronic device.
[0083] The determining module 702 is used to determine the direction of the user's eye gaze based on the orientation of the second electronic device;
[0084] The judgment module 703 is used to determine whether there is an intersection between the line of sight and the screen of the first electronic device based on the first distance. If there is an intersection between the line of sight and the screen of the first electronic device, the unlocking module 704 is triggered.
[0085] Unlock module 704 is used to unlock the first electronic device.
[0086] In this embodiment, the first electronic device receives the orientation direction of the second electronic device and the first distance between the second electronic device and the user's head from a second electronic device worn on the user's head. Based on the orientation direction of the second electronic device, it determines the user's line of sight. Based on the first distance, it determines whether the user's line of sight intersects with the screen of the first electronic device. If the user's line of sight intersects with the screen of the first electronic device, the first electronic device is unlocked. This allows the electronic device to be unlocked based on the user's line of sight, increasing the diversity of unlocking methods.
[0087] In some possible implementations of the embodiments of this application, the determining module 702 is specifically used for:
[0088] The orientation of the second electronic device is taken as the direction of the user's eye gaze.
[0089] In some possible implementations of the embodiments of this application, the determination module 703 may specifically be used for:
[0090] The following distances are determined based on the first distance: the second distance from the second electronic device to the target point, the third distance from the second electronic device to the first position point, the third distance from the second electronic device to the second position point, the first angle between the oriented direction and the plane where the screen is located, the second angle between the line segment from the second electronic device to the second position point and the plane where the screen is located, and the third angle between the line segment from the second electronic device to the first position point and the plane where the screen is located. The target point is the intersection of the oriented direction and the plane where the screen of the first electronic device is located. The first position point is the position point on the screen that is closest to the second electronic device, and the second position point is the position point on the screen that is farthest from the second electronic device.
[0091] When the second distance is greater than or equal to the third distance and less than or equal to the fourth distance, and the first angle is greater than or equal to the second angle and less than or equal to the third angle, it is determined that the line of sight intersects with the screen of the first electronic device.
[0092] In some possible implementations of the embodiments of this application, the second electronic device includes a synthetic aperture radar, and the second range, third range, fourth range, first angle, second angle and third angle are calculated based on the radar's Doppler equation and slant range equation.
[0093] In some possible implementations of the embodiments of this application, the electronic device unlocking device 700 provided in the embodiments of this application further includes:
[0094] The acquisition module is used to acquire the identification information of the second electronic device;
[0095] The verification module is used to verify the identification information of the second electronic device. If the identification information of the second electronic device passes the verification, the unlocking module 704 is triggered.
[0096] In the embodiments of this application, it is possible to prevent electronic devices from being unlocked by non-electronic device owners, prevent user privacy from being leaked, and improve data security.
[0097] The electronic device unlocking device provided in this application embodiment can achieve... Figures 1 to 6 The various processes implemented in the embodiment of the electronic device unlocking method will not be described again here to avoid repetition.
[0098] Optionally, such as Figure 8 As shown, this application embodiment also provides an electronic device 800, including a processor 801 and a memory 802. The memory 802 stores a program or instructions that can run on the processor 801. When the program or instructions are executed by the processor 801, they implement the various steps of the above-described electronic device unlocking method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0099] The electronic device 800 provided in this application embodiment may further include a pulse signal receiving module for determining the distance between the electronic device 800 and the second electronic device.
[0100] Figure 9 This is a schematic diagram of the hardware structure of an electronic device that implements the embodiments of this application.
[0101] The electronic device 900 includes, but is not limited to, components such as: radio frequency unit 901, network module 902, audio output unit 903, input unit 904, sensor 905, display unit 906, user input unit 907, interface unit 908, memory 909, and processor 910.
[0102] Those skilled in the art will understand that the electronic device 900 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 910 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 9 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0103] The radio frequency unit 901 is used to receive target information sent by a second electronic device, wherein the second electronic device is an electronic device worn on the user's head, and the target information includes the orientation of the second electronic device and the first distance between the second electronic device and the first electronic device.
[0104] The processor 910 is configured to: determine the direction of the user's gaze based on the orientation of the second electronic device; determine whether the gaze direction intersects with the screen of the first electronic device based on a first distance; and unlock the electronic device 900 if the gaze direction intersects with the screen of the first electronic device based on the first distance.
[0105] In this embodiment, by receiving the orientation direction of the second electronic device worn on the user's head and the first distance between the second electronic device and the first electronic device, the user's eye gaze direction is determined based on the orientation direction of the second electronic device. Based on the first distance, it is determined whether the user's eye gaze direction intersects with the screen of the first electronic device. If the user's eye gaze direction intersects with the screen of the first electronic device, the electronic device is unlocked. Thus, the electronic device can be unlocked based on the user's eye gaze, increasing the diversity of unlocking methods.
[0106] In some possible implementations of the embodiments of this application, the processor 910 is specifically used for:
[0107] The orientation of the second electronic device is taken as the direction of the user's eye gaze.
[0108] In some possible implementations of the embodiments of this application, the processor 910 is specifically used for:
[0109] The following distances are determined based on the first distance: the second distance from the second electronic device to the target point, the third distance from the second electronic device to the first position point, the third distance from the second electronic device to the second position point, the first angle between the oriented direction and the plane where the screen is located, the second angle between the line segment from the second electronic device to the second position point and the plane where the screen is located, and the third angle between the line segment from the second electronic device to the first position point and the plane where the screen is located. The target point is the intersection of the oriented direction and the plane where the screen of the first electronic device is located. The first position point is the position point on the screen that is closest to the second electronic device, and the second position point is the position point on the screen that is farthest from the second electronic device.
[0110] When the second distance is greater than or equal to the third distance and less than or equal to the fourth distance, and the first angle is greater than or equal to the second angle and less than or equal to the third angle, it is determined that the line of sight intersects with the screen of the first electronic device.
[0111] In some possible implementations of the embodiments of this application, the second electronic device includes a synthetic aperture radar, and the second range, third range, fourth range, first angle, second angle and third angle are calculated based on the radar's Doppler equation and slant range equation.
[0112] In some possible implementations of the embodiments of this application, the processor 910 may also be used for:
[0113] Obtain the identification information of the second electronic device; verify the identification information of the second electronic device; if the identification information of the second electronic device passes the verification, unlock the electronic device 900.
[0114] In the embodiments of this application, it is possible to prevent electronic devices from being unlocked by non-electronic device owners, prevent user privacy from being leaked, and improve data security.
[0115] It should be understood that, in this embodiment, the input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042. The GPU 9041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 906 may include a display panel 9061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 907 includes at least one of a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0116] The memory 909 can be used to store software programs and various data. The memory 909 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 909 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 909 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0117] Processor 910 may include one or more processing units; optionally, processor 910 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 910.
[0118] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described electronic device unlocking method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0119] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer-readable storage medium, and examples of computer-readable storage media include non-transitory computer-readable media, such as ROM, RAM, magnetic disks, or optical disks.
[0120] This application also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described electronic device unlocking method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0121] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0122] This application also provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described electronic device unlocking method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0123] It should be noted that, in this document, 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 limitations, 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 that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0124] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0125] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for unlocking an electronic device, characterized in that, Applied to a first electronic device, the method includes: Receive target information sent by a second electronic device, wherein the second electronic device is an electronic device worn on the user's head, and the target information includes the orientation of the second electronic device and a first distance between the second electronic device and the first electronic device; Based on the stated orientation, determine the direction of the user's gaze; Based on the first distance, determine whether the line of sight intersects with the screen of the first electronic device; When the line of sight intersects with the screen of the first electronic device, the first electronic device is unlocked; The step of determining whether the line of sight intersects with the screen of the first electronic device based on the first distance includes: Based on the first distance, the following distances are determined: a second distance from the second electronic device to the target point; a third distance from the second electronic device to the first position point; a fourth distance from the second electronic device to the second position point; a first angle between the orientation direction and the plane where the screen is located; a second angle between the line segment from the second electronic device to the second position point and the plane where the screen is located; and a third angle between the line segment from the second electronic device to the first position point and the plane where the screen is located. The target point is the intersection of the orientation direction and the plane where the screen of the first electronic device is located. The first position point is the position point on the screen closest to the second electronic device, and the second position point is the position point on the screen farthest from the second electronic device. If the second distance is greater than or equal to the third distance and less than or equal to the fourth distance, and the first angle is greater than or equal to the second angle and less than or equal to the third angle, it is determined that the line of sight intersects with the screen of the first electronic device.
2. The method according to claim 1, characterized in that, Determining the user's eye gaze direction based on the orientation direction includes: The orientation of the second electronic device is taken as the direction of the user's eye gaze.
3. The method according to claim 1, characterized in that, The second electronic device includes a synthetic aperture radar, and the second range, the third range, the fourth range, the first angle, the second angle, and the third angle are calculated based on the radar's Doppler equation and slant range equation.
4. The method according to claim 1, characterized in that, Prior to unlocking the first electronic device, the method further includes: Obtain the identification information of the second electronic device; Verify the identification information; Unlocking the first electronic device includes: If the identification information passes verification, the first electronic device is unlocked.
5. An electronic device unlocking device, characterized in that, Applied to a first electronic device, the device includes: A receiving module is used to receive target information sent by a second electronic device, wherein the second electronic device is an electronic device worn on the user's head, and the target information includes the orientation of the second electronic device and a first distance between the second electronic device and the first electronic device; A determining module is used to determine the direction of the user's eye gaze based on the orientation direction; The judgment module is used to determine whether the line of sight intersects with the screen of the first electronic device based on the first distance; An unlocking module is used to unlock the first electronic device when the line of sight intersects with the screen of the first electronic device; The judgment module is specifically used for: Based on the first distance, the following distances are determined: a second distance from the second electronic device to the target point; a third distance from the second electronic device to the first position point; a fourth distance from the second electronic device to the second position point; a first angle between the orientation direction and the plane where the screen is located; a second angle between the line segment from the second electronic device to the second position point and the plane where the screen is located; and a third angle between the line segment from the second electronic device to the first position point and the plane where the screen is located. The target point is the intersection of the orientation direction and the plane where the screen of the first electronic device is located. The first position point is the position point on the screen closest to the second electronic device, and the second position point is the position point on the screen farthest from the second electronic device. If the second distance is greater than or equal to the third distance and less than or equal to the fourth distance, and the first angle is greater than or equal to the second angle and less than or equal to the third angle, it is determined that the line of sight intersects with the screen of the first electronic device.
6. The apparatus according to claim 5, characterized in that, The determining module is specifically used for: The orientation of the second electronic device is taken as the direction of the user's eye gaze.
7. The apparatus according to claim 5, characterized in that, The second electronic device includes a synthetic aperture radar, and the second range, the third range, the fourth range, the first angle, the second angle, and the third angle are calculated based on the radar's Doppler equation and slant range equation.
8. The apparatus according to claim 5, characterized in that, The device further includes: An acquisition module is used to acquire the identification information of the second electronic device; The verification module is used to verify the identification information, and if the identification information passes the verification, the unlocking module is triggered.
9. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the electronic device unlocking method as described in any one of claims 1-4.
10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the electronic device unlocking method as described in any one of claims 1-4.
Citation Information
Patent Citations
Screen unlocking method and screen unlocking terminal
CN102981736A
Information interaction method and device
CN111601064A