Interactive verification method, device, electronic device and storage medium
By using the interactive verification method of the three-dimensional space library in Internet verification, the user's touch operation in the three-dimensional space is used to obtain the target space vector, which solves the problem of inaccurate verification results in the existing technology and achieves higher data security. .
Patent Information
- Application Number
- CN202210922635.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-02
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-08-02
AI Technical Summary
Existing Internet verification methods cannot effectively distinguish between real users and machine forged requests, resulting in inaccurate verification results and inability to ensure data security.
The interactive verification method in the three-dimensional space library is used to obtain the target space vector through the user's touch operation in the three-dimensional space. If the vector and the example space vector meet the preset conditions, the verification is passed, which increases the complexity and disorder of the verification content. , it is difficult for machines to forge requests to pass.
Improves the accuracy of verification results, protects data security, and prevents machine forged requests from successfully passing verification.
Smart Images

Figure CN115238258B
Abstract
Description
Background Art
[0002] With the continuous advancement of Internet technology, the Internet has brought great convenience to various industries and users. However, in the process of Internet services interacting with users by setting up login interfaces, in order to ensure data security and avoid wasting network resources, the authenticity of users is often verified.
[0003] In the prior art, there are several ways to verify the authenticity of users, such as two-dimensional one-way dragging, text clicking, or image matching. The above methods involve relatively few parameters in the verification process, and machine-forged requests after iterative upgrades of artificial intelligence technology can often pass the above verification, which cannot achieve the purpose of verifying the authenticity of users, resulting in inaccurate final verification results.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The present disclosure provides an interactive verification method, device, electronic device and storage medium, which at least to a certain extent overcome the problem of inaccurate verification results in the related art.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0007] In a first aspect, an embodiment of the present disclosure provides an interactive verification method, the method comprising:
[0008] In response to the verification request, coordinate information of a plurality of example coordinate points is obtained from a pre-established three-dimensional space library, and an example three-dimensional space is established according to the coordinate information of the plurality of example coordinate points; the plurality of example coordinate points include coordinate information of an example starting point and coordinate information of an example ending point;
[0009] In response to a user's touch operation from an example starting point to an example ending point, obtaining a target space vector;
[0010] If the target space vector and the example space vector meet the preset conditions, verification pass indication information of the verification request is returned; the example space vector is a space vector with the example starting point as the starting point and the example ending point as the end point.
[0011] In one embodiment of the present disclosure, obtaining the target space vector in response to the user's touch operation from the example starting point to the example ending point includes:
[0012] In response to a user touching the example starting point and dragging the example end point toward the example end point, determining a spatial matching direction with the example starting point as a starting point;
[0013] Obtaining a target touch duration of the user's touch-and-drag button, and obtaining any one correspondence from a plurality of pre-established correspondences between touch duration and length as a target correspondence, and determining a spatial touch path for movement of the spatial node according to the target correspondence and the target touch duration; the spatial touch path is obtained by the spatial node taking the example starting point as the starting point and moving in the spatial matching direction for the target touch duration;
[0014] The end point of the spatial touch path is used as a target end point, and a target spatial vector is determined with the example starting point as a starting point and the target end point as an end point.
[0015] In one embodiment of the present disclosure, obtaining the target space vector in response to the user's touch operation from the example starting point to the example ending point includes:
[0016] In response to a user's dragging operation from the example starting point to the example ending point, the target space vector is obtained.
[0017] In one embodiment of the present disclosure, the preset condition includes a first preset threshold and a preset difference range; if the target space vector and the example space vector meet the preset condition, returning verification pass indication information of the verification request includes:
[0018] determining a cosine similarity between the target space vector and the example space vector;
[0019] If the cosine similarity between the target space vector and the example space vector is less than or equal to the first preset threshold, and the difference between the length of the target space vector and the length of the example space vector is less than or equal to the preset difference range, then the verification pass indication information of the verification request is returned.
[0020] In one embodiment of the present disclosure, the preset condition includes a second preset threshold; if the target space vector and the example space vector meet the preset condition, returning verification pass indication information of the verification request includes:
[0021] Acquire coordinate information of a target end point in the target space vector in the example three-dimensional space, and determine a spatial distance between the coordinate information of the target end point and the coordinate information of the example end point;
[0022] If the spatial distance is less than or equal to the second preset threshold, verification pass indication information of the verification request is returned.
[0023] In one embodiment of the present disclosure, the method further includes:
[0024] determining a cosine similarity between the target space vector and the example space vector;
[0025] Determine the cosine similarity between the target space vector and at least one interference space vector; the interference space vector is a space vector starting from the example starting point and ending at the example interference point;
[0026] If the cosine similarity between the target space vector and the example space vector is less than the cosine similarity between the target space vector and any interference space vector, verification pass indication information of the verification request is returned.
[0027] In one embodiment of the present disclosure, the method further includes:
[0028] If the target space vector and the example space vector do not satisfy the preset conditions, verification failure indication information of the verification request is returned, and prompt information is displayed; the prompt information is to prompt the user to re-perform interactive verification.
[0029] In a second aspect, an embodiment of the present disclosure provides an interactive verification device, including:
[0030] an acquisition unit, configured to acquire coordinate information of a plurality of example coordinate points from a pre-established three-dimensional space library in response to a verification request, and establish an example three-dimensional space according to the coordinate information of the plurality of example coordinate points; the plurality of example coordinate points include coordinate information of an example starting point and coordinate information of an example ending point;
[0031] A construction unit, configured to obtain a target space vector in response to a user's touch operation from an example starting point to an example ending point;
[0032] The first verification unit is used to return verification pass indication information of the verification request if the target space vector and the example space vector meet preset conditions; the example space vector is a space vector with the example starting point as the starting point and the example ending point as the end point.
[0033] In one embodiment of the present disclosure, the construction unit is further used to:
[0034] In response to a user touching the example starting point and dragging the example end point toward the example end point, determining a spatial matching direction with the example starting point as a starting point;
[0035] Obtaining a target touch duration of the user's touch-and-drag button, and obtaining any one correspondence from a plurality of pre-established correspondences between touch duration and length as a target correspondence, and determining a spatial touch path for movement of the spatial node according to the target correspondence and the target touch duration; the spatial touch path is obtained by the spatial node taking the example starting point as the starting point and moving in the spatial matching direction for the target touch duration;
[0036] The end point of the spatial touch path is used as a target end point, and a target spatial vector is determined with the example starting point as a starting point and the target end point as an end point.
[0037] In one embodiment of the present disclosure, the first verification unit is further used to:
[0038] determining a cosine similarity between the target space vector and the example space vector;
[0039] If the cosine similarity between the target space vector and the example space vector is less than or equal to the first preset threshold, and the difference between the length of the target space vector and the length of the example space vector is less than or equal to the preset difference range, then the verification pass indication information of the verification request is returned.
[0040] In one embodiment of the present disclosure, the first verification unit is further used to:
[0041] determining a cosine similarity between the target space vector and the example space vector;
[0042] Determine the cosine similarity between the target space vector and at least one interference space vector; the interference space vector is a space vector starting from the example starting point and ending at the example interference point;
[0043] If the cosine similarity between the target space vector and the example space vector is less than the cosine similarity between the target space vector and any interference space vector, verification pass indication information of the verification request is returned.
[0044] In one embodiment of the present disclosure, the interactive verification device further includes:
[0045] The second verification unit is used to return verification failure indication information of the verification request and display prompt information if the target space vector and the example space vector do not meet the preset conditions; the prompt information is to prompt the user to re-perform interactive verification.
[0046] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the method described in the first aspect above by executing the executable instructions.
[0047] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method described in the first aspect when executed by a processor.
[0048] In a fifth aspect, according to another aspect of the present disclosure, a computer program product or a computer program is also provided, the computer program product or the computer program comprising a computer instruction, the computer instruction being stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs any of the above-mentioned interactive verification methods.
[0049] An interactive verification method provided by an embodiment of the present disclosure, in response to a verification request, obtains multiple example coordinate points from a pre-established three-dimensional space library, and establishes an example three-dimensional space based on the multiple example coordinate points, and in response to the user's touch operation from the example starting point to the example ending point, obtains a target space vector, and if the target space vector and the example space vector meet the preset conditions, returns the verification pass indication information of the verification request. In the above method, the authenticity of the user is verified in a three-dimensional manner, which increases the complexity of the verification content, and the example coordinate points are obtained from the three-dimensional space library. When establishing the example three-dimensional space, the example coordinate points can be randomly adjusted, and different example coordinate points can be obtained each time, ensuring that each example three-dimensional space is different, increasing the disorder of the verification content. The verification process implemented in this way can effectively guarantee the accuracy of the verification result, and the interactive verification method in the present disclosure makes it difficult for machine-forged requests to pass the verification, which can effectively protect the security of data.
[0050] Further, the method for determining the target space vector in the present disclosure can be: in response to the user touching the example starting point and dragging the operation to the example end point, determine the spatial matching direction with the example starting point as the starting point, obtain the target touch duration of the user touching the drag button, and obtain any one of the correspondences between the touch duration and the length as the target correspondence, determine the spatial touch path of the spatial node movement according to the target correspondence and the target touch duration, take the end point of the spatial touch path as the target end point, and determine the target space vector with the example starting point as the starting point and the target end point as the end point. The above method increases the randomness and uncertainty in each verification process by first determining the matching direction and then determining the spatial touch path through any one of the multiple correspondences, so that the law of the interactive verification method in the present disclosure cannot be accurately understood through artificial intelligence technology, and the accuracy of the verification result can be effectively guaranteed. In addition, the interactive verification method in the present disclosure makes it difficult for machine-forged requests to pass verification, which can effectively protect the security of data.
[0051] 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
[0052] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0053] Figure 1 A schematic diagram showing the structure of an interactive verification system in an embodiment of the present disclosure is shown;
[0054] Figure 2 A schematic diagram showing a flow chart of an interactive verification method in an embodiment of the present disclosure is shown;
[0055] Figure 3 A schematic diagram showing an interface of an example initial point in an embodiment of the present disclosure;
[0056] Figure 4 A schematic diagram showing an example three-dimensional space interface in a verification interface in an embodiment of the present disclosure;
[0057] Figure 5 A schematic diagram showing an interface of a target space vector and an example space vector in an embodiment of the present disclosure;
[0058] Figure 6 A schematic diagram showing a flow chart of another interactive verification method in an embodiment of the present disclosure;
[0059] Figure 7 A schematic diagram showing the structure of an interactive verification device in an embodiment of the present disclosure is shown;
[0060] Figure 8 A schematic structural diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0061] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0062] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0063] Since the current methods for verifying user authenticity on the Internet are two-dimensional one-way dragging, text clicking, or image matching verification methods, with the advancement of artificial intelligence technology, machine-forged requests may also be able to give corresponding processing to the verification methods in the existing technology so that the verification passes, causing the server to also process the forged request, resulting in data loss and other problems, and the security of the data cannot be effectively guaranteed. In addition, the verification process is to ensure the authenticity of the operator currently performing the operation, and the existing technology cannot guarantee the accuracy of the verification results.
[0064] Based on this, the present disclosure provides an interactive verification method, which, in response to a verification request, obtains the coordinate information of multiple example coordinate points from a pre-established three-dimensional space library, and establishes an example three-dimensional space based on the coordinate information of the multiple example coordinate points, and in response to the user's touch operation from the example starting point to the example ending point, obtains the target space vector, and if the target space vector and the example space vector meet the preset conditions, returns the verification request. The authenticity of the user is verified in a three-dimensional manner, which increases the complexity of the content to be verified, and the coordinate information of the example coordinate points is obtained from the three-dimensional space library. When establishing the example three-dimensional space, the coordinate information of the example coordinate points can be randomly adjusted to ensure that each example three-dimensional space is different, increasing the disorder of the verification content. The verification process implemented in this way can effectively guarantee the accuracy of the verification result, and the interactive verification method in the present disclosure makes it difficult for machine-forged requests to pass the verification, which can effectively protect the security of data.
[0065] The interactive verification method in the present disclosure can be applied to electronic devices, and can also be applied to interactive verification systems.
[0066] Figure 1 A schematic diagram of an interactive verification system that can be applied to an interactive verification method or an interactive verification device in an embodiment of the present disclosure is shown.
[0067] like Figure 1 As shown, the interactive verification system 100 may include a terminal device 101 , a network 102 and a server 103 .
[0068] In a possible embodiment, taking the user using the terminal device 101 as an example, in response to a verification request, the terminal device 101 obtains the coordinate information of multiple example coordinate points from the three-dimensional space library stored in the server 103 through the network 102, and establishes an example three-dimensional space based on the coordinate information of the multiple example coordinate points. In response to the user's touch operation from the example starting point to the example ending point, a target space vector is obtained. If the target space vector and the example space vector meet the preset conditions, the verification pass indication information of the verification request is returned.
[0069] The multiple example coordinate points include an example starting point and an example ending point, and the example space vector is a space vector that takes the example starting point as a starting point and takes the example ending point as an end point.
[0070] The network 102 is a medium for providing a communication link between the terminal device 101 and the server 103, and can be a wired network or a wireless network.
[0071] Optionally, the wireless network or wired network described above uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged through the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above data communication technologies.
[0072] The terminal device 101 can be various electronic devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, wearable devices, augmented reality devices, virtual reality devices, etc.
[0073] Optionally, the client of the application installed in different terminal devices 101 is the same, or the client of the same type of application based on different operating systems. Based on the different terminal platforms, the specific form of the client of the application can also be different, for example, the application client can be a mobile client, a PC client, etc.
[0074] The server 103 may be a server that provides various services, such as a background management server that provides support for the device operated by the user using the terminal device 101. The background management server may analyze and process the received request and other data, and feed back the processing results to the terminal device.
[0075] Optionally, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in this disclosure.
[0076] Those skilled in the art will know that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration, and any number of terminal devices, networks and servers may be provided according to actual needs, and the embodiments of the present disclosure do not limit this.
[0077] The present exemplary implementation is described in detail below with reference to the accompanying drawings and embodiments.
[0078] First, an interactive verification method is provided in an embodiment of the present disclosure. The method can be executed by any electronic device with computing and processing capabilities. In the following process, the electronic device is taken as a terminal device as an example.
[0079] Figure 2 A flow chart of an interactive verification method in an embodiment of the present disclosure is shown as follows: Figure 2 As shown, the interactive verification method provided in the embodiment of the present disclosure includes the following steps:
[0080] S202: In response to the verification request, coordinate information of a plurality of example coordinate points is obtained from a pre-established three-dimensional space library, and an example three-dimensional space is established according to the coordinate information of the plurality of example coordinate points.
[0081] The coordinate information of the multiple example coordinate points includes the coordinate information of the example starting point and the coordinate information of the example ending point.
[0082] In a possible embodiment, the verification request in the disclosed embodiment refers to a request sent to distinguish whether the current user is a computer or a person. For example, when a user uses a terminal device to purchase a ticket or uses a mobile phone to log in to certain applications, a login request will be sent to the terminal device. This login request can be a verification request. The terminal device responds to the verification request and a verification interface appears. For example, in response to user login, registration, access and other operations, in order to verify whether the operator currently performing the operation is a real user, the terminal device will obtain multiple example coordinate points from a pre-established three-dimensional space library and establish an example three-dimensional space based on the example coordinate points.
[0083] The three-dimensional space library in the embodiment of the present disclosure may be a database storing three-dimensional coordinate information and background space. The coordinate information of the example coordinate point may be the coordinate information of the coordinate point extracted from the three-dimensional space library and used as a reference for the user.
[0084] The example three-dimensional space in the embodiment of the present disclosure may be a three-dimensional space given to the user as a reference during the user verification process.
[0085] An example starting point in the embodiment of the present disclosure may be a starting point given to the user as a reference during the user verification process. An example ending point may be an ending point given to the user as a reference during the user verification process.
[0086] A large amount of coordinate information can be stored in a pre-established three-dimensional space library. Each time the terminal device receives a verification request, the coordinate information obtained from the three-dimensional space library is the coordinate information of the example coordinate point.
[0087] Furthermore, the pre-established three-dimensional space library does not need to store a large amount of coordinate information. After each verification request is received, the coordinate information of the extracted example coordinate points can be randomly arranged to construct an example three-dimensional space. In this way, the amount of data in the pre-established three-dimensional space library can be reduced, reducing the burden on the memory.
[0088] It should be noted that each time the terminal device establishes an example three-dimensional space, it randomly obtains the coordinate information of the example coordinate points, and randomly distributes and arranges the coordinate information of the example coordinate points, randomly selects one coordinate information from the coordinate information of the example coordinate points as the coordinate information of the example starting point, and selects one coordinate information as the coordinate information of the example ending point. Some background images can also be stored in the three-dimensional space library, and when constructing the example three-dimensional space, the background images are added for rendering to obtain a better display effect.
[0089] It should be noted that, during the interactive verification process, the coordinate information of the example coordinate point may also include the coordinate information of at least one example interference point. Since artificial intelligence will forge requests multiple times when forging requests in order to find out the regularity of the verification method during the interactive verification process, at least one example interference point may be added during each verification process. It can be understood that 5 or 6 example coordinate points may be selected each time, and an example starting point and an example ending point may be selected from them, and the remaining example coordinate points are used as example interference points. In this way, each verification process is irregular and disorderly, which can effectively increase security and better prevent forged requests from passing verification. Figure 3 A schematic diagram of an interface of an example initial point is shown. Figure 3 The example initial point in is P0, and the coordinate information of the example initial point is (x0, y0, z0).
[0090] Figure 4 A schematic diagram of an example three-dimensional space interface is shown, which includes an example initial point P0, an example end point P1, where the coordinate information of P1 is (x1, y1, z1), and multiple example interference points P n ~P m ,by Figure 4 Five sample interference points are included as an example.
[0091] During the verification process, after a sample three-dimensional space is established, the user is intended to construct an expected spatial vector based on the positions of the sample starting point and the sample ending point in the sample three-dimensional space, so that the terminal device can determine that the operator currently performing the operation is a real user.
[0092] S204: In response to the user's touch operation from the example starting point to the example ending point, a target space vector is obtained.
[0093] In a possible embodiment, the touch operation from the example starting point to the example ending point in the embodiment of the present disclosure may be a drag operation, which may be a series of clicks, touches, etc. performed by the user on the touch screen in the display of the terminal device.
[0094] The target space vector in the embodiment of the present disclosure may be a space vector obtained by the terminal device in the example three-dimensional space in response to a touch operation of the user.
[0095] The terminal device responds to the user's touch operation from the example starting point to the example ending point. This touch operation is performed from the example starting point to the direction of the example ending point. Because in the interactive verification process, the verification process is only to verify the authenticity of the user, not to make the user fail the verification, so the terminal device can detect the user's touch operation during the verification process. If it is detected that the direction of the user's touch operation starting from the example starting point is significantly different from the direction of the example ending point, it can directly display failure and prompt the user to re-verify.
[0096] There are many ways to obtain the target space vector in the present disclosure, and the following are two specific ways:
[0097] The first method is: in response to the user's dragging operation from the example starting point to the example ending point, a target space vector is obtained.
[0098] Exemplarily, the target space vector can be obtained in response to a user directly performing a drag operation on the touch screen of the display of the terminal device from the example starting point to the example ending point.
[0099] The second method: in response to the user touching the example starting point and dragging the operation to the example ending point, determine the spatial matching direction starting from the example starting point, obtain the target touch duration of the user touching the drag button, and obtain any one of the pre-established correspondences between the touch duration and the length as the target correspondence, and determine the spatial touch path of the spatial node according to the target correspondence and the target touch duration; the spatial touch path is the spatial node starting from the example starting point and moving in the spatial matching direction for the target touch duration, and the end point of the spatial touch path is used as the target end point to determine the target spatial vector starting from the example starting point and ending at the target end point. Among them, if Figure 5 As shown, Figure 5 FIG. 1 shows a schematic diagram of an interface of a target space vector in an example three-dimensional space. The target end point is represented by P k For example, P k The coordinate information is (x k ,y k ,z k ). Figure 5 Only the coordinate information of the example end point, the example start point, and the target end point are shown. The coordinate information of the example interference point is not reflected here. It should be understood that the example interference point is not reflected here only for the purpose of clearly reflecting the target end point. It does not mean that the example interference point does not exist in the original interface.
[0100] In the above method, in response to the user pressing and holding the example starting point on the mobile phone through a gesture and dragging toward the example end point, the spatial matching direction is dragged out. The spatial matching direction can be determined by clicking any other position in the mobile phone, or a button for determining the spatial matching direction can be clicked. After the spatial matching direction is determined, there is a drag button in the verification interface of the terminal device. In response to the user clicking the drag button, the spatial node will take the example starting point as the starting point and move in the spatial matching direction, leaving a spatial touch path in the example three-dimensional space until the user touches the drag button and the touch ends. The terminal device determines the length of the spatial touch path according to the target touch time of the user touching the drag button, that is, the target spatial vector can be obtained.
[0101] There is a corresponding relationship between the length of the spatial touch path left by the spatial node in the example three-dimensional space and the target touch time.
[0102] It should be noted that the terminal device's memory will store multiple correspondences between touch time and length. For each verification, the terminal device will extract any correspondence from the memory as a condition for calculating the length of the spatial touch path during this verification process.
[0103] For example, a mapping relationship at a certain time may be d=kt, k=2.
[0104] Among them, k represents the moving speed of the spatial node with the touch time; t represents the target touch duration, and d is the length of the spatial touch path.
[0105] Among them, the value of k is randomly assigned during each verification, which can effectively improve the accuracy of verification.
[0106] S206: If the target space vector and the example space vector meet the preset conditions, verification pass indication information of the verification request is returned.
[0107] In a possible embodiment, the example space vector in the embodiment of the present disclosure is a space vector that takes the example starting point as a starting point and takes the example ending point as an end point.
[0108] The present disclosure makes judgments based on the target space vector and the example space vector, including but not limited to the following judgment methods:
[0109] The first method: taking the preset conditions as a first preset threshold and a preset difference range as an example, the cosine similarity between the target space vector and the example space vector is determined. If the cosine similarity between the target space vector and the example space vector is less than or equal to the first preset threshold, and the difference between the length of the target space vector and the length of the example space vector is less than or equal to the preset difference range, the verification pass indication information of the verification request is returned.
[0110] The cosine similarity between the target space vector and the example space vector is determined by the following formula:
[0111]
[0112] in, represents the target space vector; represents the example space vector; ||a|| represents the absolute length of the target space vector; ||b|| represents the absolute length of the example space vector; θ represents the angle between the target space vector and the example space vector; cosθ represents the cosine similarity between the target space vector and the example space vector.
[0113] After the cosine similarity between the target space vector and the example space vector is determined by the above formula, it can be determined whether the value of the cosine similarity is less than or equal to the first preset threshold δ1. If so, it is determined that the difference between the length of the target space vector and the length of the example space vector is less than or equal to the preset difference range. The specific formula is as follows:
[0114] ||a||-||b||≤|Δδ| (2)
[0115] Wherein, |Δδ| represents a preset difference range.
[0116] After judging the target space vector and the example space vector by the above formula (1) and formula (2), it can be determined that the angle between the target space vector and the example space vector is very small, and the lengths of the target space vector and the example space vector are roughly equal, which means that the target space vector obtained by the terminal device in response to the user's touch operation is very close to the example space vector, and the verification request is passed, and the verification request is returned. The verification pass indication information. If not, it means that the verification has not passed, and the verification failure indication information is returned, and a prompt message is displayed to prompt the user to re-interactively verify. In the following process, no unnecessary elaboration is made on the verification failure process.
[0117] The second method: taking the preset condition as the second preset threshold as an example, obtain the coordinate information of the target end point in the target space vector in the example three-dimensional space, determine the spatial distance between the coordinate information of the target end point and the coordinate information of the example end point, and if the spatial distance is less than or equal to the second preset threshold, return the verification pass indication information of the verification request.
[0118] The spatial distance is determined as follows:
[0119]
[0120] Where Δx=(x k-x1) is expressed as the difference between the x-axis coordinate of the target end point and the x-axis coordinate of the example end point; Δy = (y k -y1) is expressed as the difference between the y-axis coordinate of the target end point and the y-axis coordinate of the example end point; Δz=(z k -z1) is expressed as the difference between the z-axis coordinate of the target end point and the z-axis coordinate of the example end point; (x k ,y k ,z k ) indicates P k ; (x1, y1, z1) represents the coordinate information of P1.
[0121] After determining the spatial distance, δ' is compared with a second preset threshold δ2. If the spatial distance is less than or equal to the second preset threshold, verification pass indication information of the verification request is returned.
[0122] After determining the spatial distance between the target end point and the example end point by the above formula, determine whether the spatial distance is less than or equal to the second preset threshold. If so, the verification request is passed, and verification pass indication information of the verification request is returned.
[0123] In addition to the above-mentioned preset conditions, whether the verification is passed can also be judged in other ways, for example, by using example interference points. Specifically, the cosine similarity between the target space vector and the example space vector is determined, and the cosine similarity between the target space vector and at least one interference space vector is determined. If the cosine similarity between the target space vector and the example space vector is less than the cosine similarity between the target space vector and any interference space vector, then the verification request is returned. The verification pass indication information.
[0124] The interference space vector is a space vector that takes the example starting point as the starting point and takes the example interference point as the end point.
[0125] Exemplarily, the cosine similarity between the target space vector and the example space vector needs to be less than the cosine similarity between each interference space vector and the target space vector before the verification pass indication information can be returned. If the cosine similarity between the target space vector and the example space vector is greater than or equal to the cosine similarity between any interference space vector and the target space vector, the verification fails, and the verification failure indication information of the verification request is returned, and a prompt message prompting the user to re-interactively verify is displayed.
[0126] Figure 6 A flow chart of another interactive verification method is shown; Figure 6 As shown, the following steps are included:
[0127] S602: In response to the verification request, coordinate information of a plurality of example coordinate points is obtained from a pre-established three-dimensional space library.
[0128] S604: Select coordinate information of an example initial point, coordinate information of an example end point and coordinate information of one or more example interference points, and randomly arrange the multiple example coordinate points.
[0129] S606: Rendering the example initial point, the example end point, and one or more example interference points into a display interface of the terminal device.
[0130] S608: In response to the user touching the example starting point and dragging the example end point, determining a spatial matching direction starting from the example starting point.
[0131] S610: Obtain the target touch duration of the user touching and dragging the button, and obtain any one correspondence from multiple pre-established correspondences between touch duration and length as the target correspondence, and determine the spatial touch path of the spatial node movement according to the target correspondence and the target touch duration.
[0132] S612: Taking the end point of the spatial touch path as the target end point, determining a target spatial vector having the example start point as the starting point and the target end point as the end point.
[0133] S614: Determine the cosine similarity between the target space vector and the example space vector.
[0134] S616: Determine whether the cosine similarity is less than or equal to a first preset threshold, and whether the difference between the length of the target space vector and the length of the example space vector is less than or equal to a preset difference range; if so, execute S618; if not, execute S620.
[0135] S618: Return verification success indication information of the verification request.
[0136] S620: Return verification failure indication information of the verification request, and display prompt information to prompt the user to re-perform interactive verification.
[0137] Based on the same inventive concept, the present disclosure also provides an interactive verification device, such as the following embodiment. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0138] Figure 7 A schematic diagram of the structure of an interactive verification device in an embodiment of the present disclosure is shown. Figure 7 As shown, the interactive verification device 70 includes:
[0139] The acquisition unit 701 is used to acquire coordinate information of a plurality of example coordinate points from a pre-established three-dimensional space library in response to the verification request, and establish an example three-dimensional space according to the coordinate information of the plurality of example coordinate points; the plurality of example coordinate points include coordinate information of an example starting point and coordinate information of an example ending point;
[0140] A construction unit 702, configured to obtain a target space vector in response to a user's touch operation from an example starting point to an example ending point;
[0141] The first verification unit 703 is used to return verification pass indication information of the verification request if the target space vector and the example space vector meet preset conditions; the example space vector is a space vector with the example starting point as the starting point and the example ending point as the end point.
[0142] In a possible embodiment, the construction unit 702 is further used for:
[0143] In response to a user touching the example starting point and dragging the example end point, determining a spatial matching direction starting from the example starting point;
[0144] Obtain the target touch duration of the user's touch-and-drag button, and obtain any one of the pre-established correspondences between the touch duration and the length as the target correspondence, and determine the spatial touch path of the spatial node according to the target correspondence and the target touch duration; the spatial touch path is obtained by moving the spatial node from the example starting point as the starting point and moving the target touch duration in the spatial matching direction;
[0145] The end point of the spatial touch path is used as the target end point, and a target spatial vector is determined with the example start point as the starting point and the target end point as the end point.
[0146] In a possible embodiment, the construction unit 702 is further used for:
[0147] In response to the user's dragging operation from the example starting point to the example ending point, a target space vector is obtained.
[0148] In a possible embodiment, the first verification unit 703 is further used for:
[0149] determining a cosine similarity between a target space vector and an example space vector;
[0150] If the cosine similarity between the target space vector and the example space vector is less than or equal to a first preset threshold, and the difference between the length of the target space vector and the length of the example space vector is less than or equal to a preset difference range, a verification pass indication message of the verification request is returned.
[0151] In a possible embodiment, the first verification unit 703 is further used for:
[0152] Obtaining coordinate information of a target end point in the target space vector in the example three-dimensional space, and determining a spatial distance between the coordinate information of the target end point and the coordinate information of the example end point;
[0153] If the spatial distance is less than or equal to the second preset threshold, verification pass indication information of the verification request is returned.
[0154] In a possible implementation, the first verification unit 703 is further used to:
[0155] determining a cosine similarity between a target space vector and an example space vector;
[0156] Determine the cosine similarity between the target space vector and at least one interference space vector; the interference space vector is a space vector starting from the example starting point and ending at the example interference point;
[0157] If the cosine similarity between the target space vector and the example space vector is less than the cosine similarity between the target space vector and any interference space vector, verification pass indication information of the verification request is returned.
[0158] In a possible embodiment, the above-mentioned interactive verification device further includes:
[0159] The third verification unit 704 is used to return verification failure indication information of the verification request and display prompt information if the target space vector and the example space vector do not meet the preset conditions; the prompt information is to prompt the user to re-perform interactive verification.
[0160] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0161] Refer to the following Figure 8 The electronic device 800 according to this embodiment of the present disclosure is described. Figure 8 The electronic device 800 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0162] like Figure 8As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include but are not limited to: at least one processing unit 810, at least one storage unit 820, and a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810).
[0163] The storage unit stores program codes, which can be executed by the processing unit 810, so that the processing unit 810 performs the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 810 can perform the following steps in the above method embodiment, for example: S202-206.
[0164] The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 8201 and / or a cache memory unit 8202 , and may further include a read-only memory unit (ROM) 8203 .
[0165] The storage unit 820 may also include a program / utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0166] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0167] The electronic device 800 may also communicate with one or more external devices 840 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 800, and / or communicate with any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 850. Furthermore, the electronic device 800 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 860. As shown, the network adapter 860 communicates with other modules of the electronic device 800 via a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0168] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0169] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs any of the above-mentioned interactive verification methods.
[0170] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. A program product capable of implementing the above method of the present disclosure is stored thereon. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Exemplary Method” section of this specification.
[0171] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0172] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0173] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0174] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0175] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0176] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0177] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0178] 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, which 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 intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. An interactive verification method, characterized in that: The method comprises: In response to the verification request, coordinate information of a plurality of example coordinate points is obtained from a pre-established three-dimensional space library, and an example three-dimensional space is established according to the coordinate information of the plurality of example coordinate points; the plurality of example coordinate points include coordinate information of an example starting point and coordinate information of an example ending point; In response to a user's touch operation from an example starting point to an example ending point, obtaining a target space vector; If the target space vector and the example space vector meet the preset conditions, then return the verification pass indication information of the verification request; the example space vector is a space vector with the example starting point as the starting point and the example ending point as the end point; The step of obtaining the target space vector in response to the user's touch operation from the example starting point to the example ending point includes: In response to a user touching the example starting point and dragging the example end point toward the example end point, determining a spatial matching direction with the example starting point as a starting point; Obtaining the target touch duration of the user performing the drag operation, and obtaining any one correspondence from a plurality of pre-established correspondences between touch duration and length as the target correspondence, and determining a spatial touch path for movement of the spatial node according to the target correspondence and the target touch duration; the spatial touch path is obtained by the spatial node taking the example starting point as the starting point and moving in the spatial matching direction for the target touch duration; The end point of the spatial touch path is used as a target end point, and a target spatial vector is determined with the example starting point as a starting point and the target end point as an end point.
2. The method according to claim 1, characterized in that: The dragging operation includes: touching a drag button or touching a screen.
3. The method according to claim 1, characterized in that The preset condition includes a first preset threshold and a preset difference range; if the target space vector and the example space vector meet the preset condition, returning verification pass indication information of the verification request, including: determining a cosine similarity between the target space vector and the example space vector; If the cosine similarity between the target space vector and the example space vector is less than or equal to the first preset threshold, and the difference between the length of the target space vector and the length of the example space vector is less than or equal to the preset difference range, then the verification pass indication information of the verification request is returned.
4. The method according to claim 1, characterized in that: The preset condition includes a second preset threshold; if the target space vector and the example space vector meet the preset condition, returning verification pass indication information of the verification request, including: Acquire coordinate information of a target end point in the target space vector in the example three-dimensional space, and determine a spatial distance between the coordinate information of the target end point and the coordinate information of the example end point; If the spatial distance is less than or equal to the second preset threshold, verification pass indication information of the verification request is returned.
5. The method according to claim 1, characterized in that The plurality of example coordinate points also include at least one example interference point; The method further comprises: determining a cosine similarity between the target space vector and the example space vector; Determine the cosine similarity between the target space vector and at least one interference space vector; the interference space vector is a space vector starting from the example starting point and ending at the example interference point; If the cosine similarity between the target space vector and the example space vector is less than the cosine similarity between the target space vector and any interference space vector, verification pass indication information of the verification request is returned.
6. The method according to claim 1, characterized in that The method further comprises: If the target space vector and the example space vector do not satisfy the preset conditions, verification failure indication information of the verification request is returned, and prompt information is displayed; the prompt information is to prompt the user to re-perform interactive verification.
7. An interactive verification device, characterized in that: The device comprises: an acquisition unit, configured to acquire coordinate information of a plurality of example coordinate points from a pre-established three-dimensional space library in response to a verification request, and establish an example three-dimensional space according to the coordinate information of the plurality of example coordinate points; the plurality of example coordinate points include coordinate information of an example starting point and coordinate information of an example ending point; A construction unit, configured to obtain a target space vector in response to a user's touch operation from an example starting point to an example ending point; A verification unit, configured to return verification pass indication information of the verification request if the target space vector and the example space vector meet a preset condition; the example space vector is a space vector having the example starting point as a starting point and the example ending point as an end point; Among them, the construction unit is also used to: in response to the user touching the example starting point and dragging the operation to the example ending point, determine the spatial matching direction with the example starting point as the starting point; obtain the target touch duration of the user performing the drag operation, and obtain any one correspondence from multiple pre-established correspondences between touch duration and length as the target correspondence, and determine the spatial touch path of the movement of the spatial node according to the target correspondence and the target touch duration; the spatial touch path is obtained by the spatial node taking the example starting point as the starting point and moving in the spatial matching direction for the target touch duration; taking the end point of the spatial touch path as the target end point, and determining the target spatial vector with the example starting point as the starting point and the target end point as the end point.
8. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 6 by executing the executable instructions.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
