Verification method and device, computer equipment and storage medium
By using the three-dimensional verification model and the comparison method of operation information, the problem of low security of traditional verification codes is solved, and the accurate distinction between human and machine login requests is achieved, which significantly improves network security.
Patent Information
- Application Number
- CN202411003445.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-12-27
AI Technical Summary
Traditional image verification codes are low in security and are easy to be cracked, making it difficult to effectively distinguish between human and machine login requests.
The three-dimensional verification model is used as the verification code. By outputting the three-dimensional verification model and operation information, the user's verification data is obtained and compared with the standard verification data to determine whether to respond to the login request, and improve the difficulty of cracking the verification code.
It significantly improves the security of verification codes, can more accurately distinguish between human and machine login requests, and enhances network security.
Smart Images

Figure CN119203109A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network security technology, and in particular to a verification method, apparatus, computer equipment and storage medium. Background Art
[0002] With the development of Internet technology, more and more websites use graphic verification codes as a security verification method to distinguish whether the user who obtains the login request is a computer or a human, so as to prevent network attackers from maliciously registering or logging in through program automation, thereby affecting the normal operation of the website.
[0003] Traditional image verification codes are mainly verified by users inputting letters, numbers, Chinese characters, etc. in the picture. However, the security factor of the verification code is low and it is easy to be cracked. Therefore, there is a problem of low security of the verification code in the traditional technology. Summary of the invention
[0004] Based on this, it is necessary to provide a verification method, device, computer equipment and storage medium that can improve the security of the verification code in response to the above technical problems.
[0005] In a first aspect, the present application provides a verification method. The method comprises:
[0006] When receiving a login request triggered by a user, outputting a three-dimensional verification model and operation information corresponding to the three-dimensional verification model;
[0007] Acquire verification data of the three-dimensional verification model triggered by the user based on the operation information;
[0008] Determine whether to respond to the login request based on the verification data and standard verification data corresponding to the three-dimensional verification model.
[0009] In one embodiment, the method further comprises:
[0010] When receiving the login request, selecting point cloud data of the target three-dimensional model from a preset three-dimensional model point cloud database;
[0011] Generate the three-dimensional verification model according to the point cloud data and the type of the target three-dimensional model; the type of the target three-dimensional model includes a regular model and an irregular model;
[0012] The operation information is generated according to the type of the three-dimensional verification model.
[0013] In one embodiment, generating the three-dimensional verification model according to the point cloud data and the type of the target three-dimensional model includes:
[0014] If the type of the target three-dimensional model is the regular model, generating a plurality of three-dimensional sub-models corresponding to the target three-dimensional model according to the point cloud data, and determining the plurality of three-dimensional sub-models as the three-dimensional verification model;
[0015] If the type of the target three-dimensional model is the irregular model, the target three-dimensional model is generated according to the point cloud data, and the target three-dimensional model is determined as the three-dimensional verification model.
[0016] In one embodiment, generating the operation information according to the type of the three-dimensional verification model includes:
[0017] If the type of the three-dimensional verification model is the rule model, first operation information is generated; the first operation information includes performing translation processing, rotation processing, drag processing and combination processing on the multiple three-dimensional sub-models;
[0018] If the three-dimensional verification model is the irregular model, second operation information is generated; the second operation information includes clicking on the uneven edge of the three-dimensional verification model.
[0019] In one embodiment, if the operation information is the first operation information, the verification data includes the fitting formula and fitting parameters corresponding to the processing operation performed by the user on the multiple three-dimensional sub-models; if the operation information is the second operation information, the verification data includes the coordinate value of the midpoint of the three-dimensional verification model clicked by the user.
[0020] In one embodiment, the method further comprises:
[0021] If the type of the target three-dimensional model is the regular model, fitting the point cloud data using a model fitting method, obtaining a fitting formula corresponding to the target three-dimensional model and parameters of the fitting formula, and determining the fitting formula and the parameters of the fitting formula as the standard verification data;
[0022] If the type of the target three-dimensional model is the irregular model, the point cloud data is segmented into two categories based on a normal vector distance algorithm to obtain binary data corresponding to the target three-dimensional model, and the binary data is determined as the standard verification data.
[0023] In one embodiment, determining whether to respond to the login request based on the verification data and standard verification data corresponding to the three-dimensional verification model includes:
[0024] Obtaining the similarity between the verification data and the standard verification data;
[0025] If the similarity is greater than a preset threshold, responding to the login request;
[0026] If the similarity is less than or equal to the preset threshold, the login request is not responded to.
[0027] In a second aspect, the present application also provides a verification device. The device comprises:
[0028] An output module, configured to output a three-dimensional verification model and operation information corresponding to the three-dimensional verification model when receiving a login request triggered by a user;
[0029] An acquisition module, used for acquiring verification data of the three-dimensional verification model triggered by the user based on the operation information;
[0030] The first determination module is used to determine whether to respond to the login request according to the verification data and standard verification data corresponding to the three-dimensional verification model.
[0031] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect is implemented.
[0032] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0033] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0034] The above-mentioned verification method, device, computer equipment and storage medium, when receiving a login request triggered by the user, output a three-dimensional verification model and operation information corresponding to the three-dimensional verification model, and obtain verification data of the three-dimensional verification model triggered by the user based on the operation information, and determine whether to respond to the login request based on the verification data and the standard verification data corresponding to the three-dimensional verification model. Compared with traditional technologies, since the three-dimensional verification model is used as a verification code to verify the user's login request, the difficulty of cracking the verification code is increased. Therefore, after obtaining the verification data triggered by the user based on the operation information, it is possible to determine whether to respond to the login request based on the verification data and the corresponding standard verification data, which can improve the security of the verification method. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] FIG1 is a diagram of an application environment of a verification method in one embodiment;
[0036] FIG2 is a schematic diagram of a flow chart of a verification method in one embodiment;
[0037] FIG3 is a schematic diagram of a flow chart of a verification method in another embodiment;
[0038] FIG4 is a schematic flow chart of a verification method in another embodiment;
[0039] FIG5 is a schematic flow chart of a verification method in another embodiment;
[0040] FIG6 is a structural block diagram of a verification device in one embodiment;
[0041] FIG. 7 is a structural block diagram of a verification device in another embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] It should be noted that the verification method, device, computer equipment, storage medium and program product of the present invention can be used in the field of network security technology, and can also be used in any technical field other than the field of network security technology. The present invention does not limit the application field of the verification method, device, computer equipment, storage medium and program product.
[0044] A three-dimensional model is a polygonal representation of an object. It can represent an object in the real world or a fictional object. Anything that exists in the physical nature can be represented by a three-dimensional model. With the development of computer technology, three-dimensional models of objects can be modeled and drawn through technologies such as a 3D drawing protocol such as the Web Graphics Library (WebGL) and the Open Graphics Library (OpenGL). Generally, the complexity of a three-dimensional model needs to be evaluated by the number of faces, the number of vertices, the curvature, etc. of the three-dimensional model. Therefore, the complexity of the verification code generated using a three-dimensional model is higher than the complexity of a two-dimensional graphic verification code. Based on this, the present application proposes a verification method using a three-dimensional model as a verification code to improve the security of the verification code.
[0045] The verification method provided in the embodiment of the present application can be applied in the application environment shown in Figure 1. Figure 1 provides a computer device, which can be a terminal, and its internal structure diagram can be shown in Figure 1. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a verification method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0046] In one embodiment, as shown in FIG. 2 , a verification method is provided, which is described by taking the method applied to the computer device in FIG. 1 as an example, and includes the following steps:
[0047] S201 : upon receiving a login request triggered by a user, outputting a three-dimensional verification model and operation information corresponding to the three-dimensional verification model.
[0048] Among them, the three-dimensional verification model refers to a model that uses a three-dimensional model to verify the identity of the user. In this embodiment, in order to distinguish whether the user who triggers the login request is a machine or a human, it is necessary to obtain the user's operation data on the three-dimensional verification model. Therefore, when outputting the three-dimensional verification model, it is also necessary to synchronously output the operation information corresponding to the three-dimensional verification model to instruct the user to operate the three-dimensional verification model through the operation information, for example, to perform splicing operations on the three-dimensional verification model, etc. Optionally, the operation information can be output on the display screen in the form of text, or the operation information can also be output on the display screen in the form of voice.
[0049] In this embodiment, the user can trigger a login request through the display screen. When the computer device receives the login request, it can select a target three-dimensional model from the preset three-dimensional models, thereby generating a three-dimensional verification model based on the point cloud data of the selected target three-dimensional model, and generating operation information corresponding to the three-dimensional verification model based on the correspondence between the preset three-dimensional verification model and the operation information. It can be understood that the three-dimensional verification model is generated based on the point cloud data of the selected three-dimensional model, and the three-dimensional model corresponding to the three-dimensional verification model can be obtained by converting the three-dimensional verification model.
[0050] S202: Acquire verification data of the three-dimensional verification model triggered by the user based on operation information.
[0051] The verification data refers to the data corresponding to the operation performed by the user on the three-dimensional verification model according to the operation information. In this embodiment, the computer device can obtain the operation triggered by the user through the display screen, and obtain the corresponding verification data according to the triggered operation. For example, if the operation information is to click on the horizontal edge in the three-dimensional verification model, the user selects and clicks the horizontal edge in the three-dimensional verification model according to the operation information, and the computer device can obtain the coordinate value of the edge selected and clicked by the user according to the operation triggered by the user, and use the obtained coordinate value as the verification data of the three-dimensional verification model triggered by the user based on the operation information.
[0052] S203: Determine whether to respond to the login request based on the verification data and the standard verification data corresponding to the three-dimensional verification model.
[0053] The standard verification data refers to data obtained by operating the three-dimensional verification model in advance according to the operation information. For example, if the operation information is clicking on a vertex of the three-dimensional verification model, the standard verification data refers to the coordinate value of the vertex in the three-dimensional verification model.
[0054] In this embodiment, the verification data corresponding to the operation triggered by the user based on the operation information can be compared with the standard verification data, and the user can be determined whether to be a human or a machine according to the comparison result, so as to determine whether to respond to the login request. For example, if the verification data is consistent with the standard verification data, it is determined to respond to the login request; if the verification data is inconsistent with the standard verification data, it is determined not to respond to the login request.
[0055] In the above-mentioned verification method, when a login request triggered by the user is received, the three-dimensional verification model and the operation information corresponding to the three-dimensional verification model are output, and the verification data of the three-dimensional verification model triggered by the user based on the operation information is obtained. According to the verification data and the standard verification data corresponding to the three-dimensional verification model, it is determined whether to respond to the login request. Compared with the traditional technology, since the three-dimensional verification model is used as the verification code to verify the user's login request, the difficulty of cracking the verification code is improved. Therefore, after obtaining the verification data triggered by the user based on the operation information, it is possible to determine whether to respond to the login request based on the verification data and the corresponding standard verification data, which can improve the security of the verification method.
[0056] In the above scenario where, upon receiving a login request triggered by a user, the 3D verification model and the operation information corresponding to the 3D verification model are output, the 3D verification model can be generated based on the point cloud data of the 3D model. In one embodiment, as shown in FIG3 , the above S201 includes:
[0057] S301, when a login request is received, point cloud data of a target three-dimensional model is selected from a preset three-dimensional model point cloud database.
[0058] The preset 3D model point cloud database is a database for storing each 3D model and the point cloud data corresponding to each 3D model. The 3D model and the corresponding point cloud data can be obtained from the database through the identification of the 3D model. In this embodiment, the point cloud data of the target 3D model is the point cloud data selected by the computer device as the 3D verification model. Optionally, the computer device can randomly select a certain 3D model as the target 3D model, or select each 3D model in turn as the target 3D model according to the number of the 3D model in the 3D model database.
[0059] In this embodiment, the computer device can receive a trigger operation on the display screen, and obtain a user's login request based on the trigger operation, so that a three-dimensional model can be selected as the target three-dimensional model from a preset three-dimensional model point cloud database based on the login request, and the point cloud data corresponding to the target three-dimensional model can be obtained.
[0060] S302, generating a three-dimensional verification model according to the point cloud data and the type of the target three-dimensional model; the type of the target three-dimensional model includes a regular model and an irregular model.
[0061] It can be understood that objects can be divided into regular shapes and irregular shapes according to their shapes. Therefore, three-dimensional models of regular models and three-dimensional models of irregular models can be constructed according to the different shapes of objects. When the computer device receives a login request, it can select point cloud data of the target three-dimensional model of the regular model from the three-dimensional model point cloud database, and it can also select point cloud data of the target three-dimensional model of the irregular model from the three-dimensional model point cloud database.
[0062] In this embodiment, the type of the three-dimensional model can be determined according to the point cloud data of the selected target three-dimensional model, and thus the three-dimensional verification model can be determined according to the type of the three-dimensional model.
[0063] As an optional implementation, if the target three-dimensional model is a regular model, multiple three-dimensional sub-models corresponding to the target three-dimensional model can be generated according to the point cloud data, and the multiple three-dimensional sub-models can be determined as three-dimensional verification models. Specifically, in this embodiment, the target three-dimensional model can be segmented to obtain several three-dimensional sub-models, and several three-dimensional group models can be generated respectively according to the point cloud data corresponding to the several three-dimensional sub-models, so that the multiple three-dimensional sub-models can be determined as three-dimensional verification models. Exemplarily, for a target three-dimensional model with a spherical shape, the target three-dimensional model can be divided into two hemispheres, and the two hemispheres can be translated and flipped, so that the two translated and flipped hemispheres are used as three-dimensional verification models, and then the two hemispheres can be output and displayed on a display screen according to the point cloud data corresponding to the two translated and flipped hemispheres.
[0064] As another optional implementation, if the target three-dimensional model is an irregular model, the target three-dimensional model can be generated based on the point cloud data, and the target three-dimensional model can be determined as a three-dimensional verification model. Specifically, in the present embodiment, since different three-dimensional models can be generated based on the same point cloud data, the smoothness of the edges in the three-dimensional model can be used to represent the feature information of the three-dimensional model, so that the target three-dimensional model can be directly used as a three-dimensional verification model, and the user's login request can be verified based on the feature information of the three-dimensional verification model. Exemplarily, for a target three-dimensional model with an irregular shape, the target three-dimensional model can be directly used as a three-dimensional verification model, so that the target three-dimensional model can be output and displayed on a display screen based on the point cloud data of the target three-dimensional model.
[0065] S303: Generate operation information according to the type of the three-dimensional verification model.
[0066] The operation information refers to information about operating the three-dimensional verification model, and is used to instruct the user who triggers the login request to perform corresponding operations on the three-dimensional verification model.
[0067] As an optional implementation, if the type of the three-dimensional verification model is a regular model, since the several three-dimensional sub-models obtained after segmentation are used as three-dimensional verification models, the user can be instructed to translate, rotate, drag and combine several sub-target three-dimensional models to obtain an assembled target three-dimensional model, so that the operation information can be determined as translation, rotation, drag and combination of multiple three-dimensional sub-models, and the operation information corresponding to the regular model is determined as the first operation information.
[0068] It can be understood that for the three-dimensional verification model of the rule model, the fitting formula and parameters of the fitting formula can be obtained based on the point cloud data of the three-dimensional verification model. Therefore, according to the determined first operation information, it can be determined that the verification data of the three-dimensional verification model of the rule model may include the fitting formula and fitting parameters corresponding to the processing operations performed by the user on multiple three-dimensional sub-models.
[0069] As another optional implementation, if the type of the three-dimensional verification model is an irregular model, since it is possible to determine whether to respond to the user's login request and use the target three-dimensional model as the three-dimensional verification model based on the classification result of the smoothness of all edges in the three-dimensional model, the user can be instructed to select the uneven edges in the target three-dimensional model, so that the second operation information can be determined as a click on the uneven edges of the three-dimensional verification model, and the operation information corresponding to the irregular model can be determined as the second operation information.
[0070] It can be understood that, for the 3D verification model of the irregular model, the verification data of the 3D verification model of the irregular model can be determined according to the determined second operation information and can include the coordinate value of the point in the 3D verification model clicked by the user.
[0071] In the present embodiment, when a login request is received, point cloud data of the target three-dimensional model is selected from a preset three-dimensional model point cloud database, and a three-dimensional verification model is generated according to the point cloud data and the type of the target three-dimensional model; the types of the target three-dimensional models include regular models and irregular models, and operation information is generated according to the type of the three-dimensional verification model. Since different three-dimensional verification models can be generated according to the different types of the target three-dimensional models, corresponding operation information can be generated according to the three-dimensional verification model, so that the user can operate the three-dimensional verification model according to the accurate operation information, avoiding the problem of user operation errors caused by confusion of operation information, and then the user's login request can be verified according to the verification data corresponding to different operation processes, thereby improving the accuracy of user verification.
[0072] In the above scenario of determining whether to respond to a login request based on the verification data and the standard verification data corresponding to the three-dimensional verification model, it is necessary to first determine the standard verification data of the three-dimensional verification model. In one embodiment, as shown in FIG4 , the above method further includes:
[0073] S401, if the type of the target three-dimensional model is a regular model, a model fitting method is used to fit the point cloud data, a fitting formula and parameters of the fitting formula corresponding to the target three-dimensional model are obtained, and the fitting formula and parameters of the fitting formula are determined as standard verification data.
[0074] Among them, the model fitting method refers to a method of analyzing and fitting the relationship between various data by simulating based on the observed data through approximate criteria and analyzing the mapping relationship between independent variables and dependent variables.
[0075] In this embodiment, the target three-dimensional model of the regular model can be described by a mathematical formula. Therefore, the model fitting method can be used to fit the point cloud data of the target three-dimensional model to obtain the fitting formula of the target three-dimensional model and the parameters of the fitting formula. It should be noted that the fitting formulas corresponding to three-dimensional models of the same shape are the same, but the parameters of the fitting formulas may be different. Therefore, the fitting formula corresponding to the target three-dimensional model and the parameters of the fitting formula should be jointly determined as standard verification data. For example, if the target three-dimensional model is spherical, the fitting formula for the sphere obtained by model fitting is the volume formula of the sphere: , the formula parameter is R, then the above formula and parameter R can be used as standard verification data for the spherical three-dimensional model.
[0076] S402: If the type of the target three-dimensional model is an irregular model, the point cloud data is segmented into two categories based on a normal vector distance algorithm to obtain binary classification data corresponding to the target three-dimensional model, and the binary classification data is determined as standard verification data.
[0077] Among them, the normal vector distance algorithm refers to an algorithm for finding the distance from a point to a plane in a known space.
[0078] In this embodiment, for an irregular target three-dimensional model, a normal vector distance algorithm can be used to calculate the normal vector distance of each point in the target three-dimensional model, thereby performing binary classification segmentation on the point cloud data of the target three-dimensional model according to the normal vector distance, and using the point cloud data of the target three-dimensional model after the binary classification segmentation as standard verification data for the target three-dimensional model.
[0079] In this embodiment, if the type of the target three-dimensional model is a regular model, the model fitting method is used to fit the point cloud data, and the fitting formula and parameters of the fitting formula corresponding to the target three-dimensional model are obtained, and the fitting formula and the parameters of the fitting formula are determined as standard verification data. If the type of the target three-dimensional model is an irregular model, the point cloud data is binary-segmented based on the normal vector distance algorithm to obtain the binary data corresponding to the target three-dimensional model, and the binary data is determined as standard verification data. The standard verification data can be determined according to the different types of target three-dimensional models, so that the verification data can be accurately verified, thereby improving the security of verifying the user's login request using the three-dimensional verification model.
[0080] In the above scenario of determining whether to respond to the login request based on the verification data and the standard verification data corresponding to the three-dimensional verification model, whether to respond to the login request can be determined based on the similarity between the verification data and the standard verification data. In one embodiment, as shown in FIG5 , the above S203 includes:
[0081] S501, obtaining the similarity between the verification data and the standard verification data.
[0082] Here, similarity refers to the degree of similarity between two data sets. The higher the similarity, the closer the two data sets are. Optionally, the method for calculating the similarity can be the Euclidean distance method, the Manhattan distance method, or the cosine similarity method, which is not limited in this embodiment.
[0083] For a three-dimensional verification model of the rule model type, the cosine similarity between the coordinate value of each point in the verification data and the coordinate value of each corresponding point in the standard verification data can be calculated, and the average of each cosine similarity is determined as the similarity between the verification data and the standard verification data.
[0084] For a three-dimensional verification model of an irregular model type, the cosine similarity between the formula parameters of the fitting formula of the three-dimensional verification model in the verification data and the formula parameters of the corresponding fitting formula in the standard verification data can be calculated, and the value of the cosine similarity can be determined as the similarity between the verification data and the standard verification data.
[0085] S502: If the similarity is greater than a preset threshold, respond to the login request.
[0086] Among them, the preset threshold is a condition for judging the similarity between the verification data and the standard verification data. Optionally, for a three-dimensional verification model of a regular model type, the preset threshold can be the similarity between the model fitting formula and formula parameters obtained by the user after operating the three-dimensional verification model according to the first operation information and the model fitting formula and formula parameters of a pre-stored three-dimensional verification model. The range of the preset threshold of similarity can be [50%, 100%]; for a three-dimensional verification model of an irregular model type, the preset threshold can be the similarity between the coordinate value of the selected point obtained by the user after operating the three-dimensional verification model according to the second operation information and the coordinate value of the corresponding point of the pre-stored three-dimensional verification model. The range of the preset threshold of similarity can be [50%, 100%].
[0087] In this embodiment, if the similarity between the verification data and the standard verification data is greater than a preset threshold, it means that the accuracy of the verification data obtained according to the verification operation meets the verification condition, and the computer device can respond to the user's login request.
[0088] S503: If the similarity is less than or equal to the preset threshold, the login request is not responded to.
[0089] In this embodiment, if the similarity between the verification data and the standard verification data is less than or equal to the preset threshold, it means that the accuracy of the verification data obtained according to the verification operation does not meet the verification condition, and the computer device may not respond to the user's login request.
[0090] In this embodiment, by obtaining the similarity between the verification data and the standard verification data, the accuracy of the verification data can be verified. If the similarity is greater than a preset threshold, the login request is responded to. If the similarity is less than or equal to the preset threshold, the login request is not responded to. In this way, the accuracy of the verification data can be accurately determined based on the verification result, thereby improving the security of the response to the user's login request.
[0091] To facilitate understanding by those skilled in the art, the verification method provided by the present application is described in detail below. The method may include:
[0092] S1, uses a depth camera to collect point cloud data of the 3D model.
[0093] S2, constructing a 3D model point cloud database based on the collected point cloud data.
[0094] S3, for the three-dimensional verification model of the regular model, the point cloud data is fitted by a model fitting method, the fitting formula and the parameters of the fitting formula corresponding to the target three-dimensional model are obtained, and the fitting formula and the parameters of the fitting formula are determined as standard verification data.
[0095] S4, for the three-dimensional verification model of the irregular model, the point cloud data is segmented into two categories based on the normal vector distance algorithm, the binary classification data corresponding to the target three-dimensional model is obtained, and the binary classification data is determined as the standard verification data.
[0096] S5, when receiving the login request, selecting point cloud data of the target three-dimensional model from a preset three-dimensional model point cloud database.
[0097] S6, generating a three-dimensional verification model according to the point cloud data and the type of the target three-dimensional model.
[0098] S7, generating operation information according to the type of the three-dimensional verification model.
[0099] S8, obtaining verification data of the three-dimensional verification model triggered by the user based on the operation information.
[0100] S9, determining whether to respond to the login request based on the verification data and the standard verification data corresponding to the three-dimensional verification model.
[0101] S10, obtaining the similarity between the verification data and the standard verification data, and responding to the login request if the similarity is greater than a preset threshold, and not responding to the login request if the similarity is less than or equal to the preset threshold.
[0102] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0103] Based on the same inventive concept, the embodiment of the present application also provides a verification device for implementing the verification method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more verification device embodiments provided below can refer to the limitations on the verification method above, and will not be repeated here.
[0104] In one embodiment, as shown in FIG6 , a verification device is provided, including: an output module 10, an acquisition module 11 and a determination module 12, wherein:
[0105] The output module 10 is used to output the three-dimensional verification model and operation information corresponding to the three-dimensional verification model when receiving a login request triggered by the user.
[0106] The acquisition module 11 is used to acquire verification data of the three-dimensional verification model triggered by the user based on operation information.
[0107] The first determination module 12 is used to determine whether to respond to the login request according to the verification data and the standard verification data corresponding to the three-dimensional verification model.
[0108] The verification device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0109] In one embodiment, as shown in FIG7 , the apparatus further includes: a selection module 13, a first generation module 14, and a second generation module 15, wherein:
[0110] The selection module 13 is used to select point cloud data of a target three-dimensional model from a preset three-dimensional model point cloud database when a login request is received.
[0111] The first generating module 14 is used to generate a three-dimensional verification model according to the point cloud data and the type of the target three-dimensional model; the types of the target three-dimensional model include regular models and irregular models.
[0112] The second generating module 15 is used to generate operation information according to the type of the three-dimensional verification model.
[0113] The verification device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0114] In one embodiment, please continue to refer to FIG. 7 , the first generating module 14 includes: a first generating unit 141 and a second generating unit 142 , wherein:
[0115] The first generating unit 141 is configured to generate a plurality of three-dimensional sub-models corresponding to the target three-dimensional model according to the point cloud data if the type of the target three-dimensional model is a regular model, and determine the plurality of three-dimensional sub-models as three-dimensional verification models.
[0116] The second generating unit 142 is configured to generate the target three-dimensional model according to the point cloud data if the type of the target three-dimensional model is an irregular model, and determine the target three-dimensional model as a three-dimensional verification model.
[0117] The verification device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0118] In one embodiment, please continue to refer to FIG. 7 , the second generating module 15 includes: a third generating unit 151 and a fourth generating unit 152, wherein:
[0119] The third generation unit 151 is used to generate first operation information if the type of the three-dimensional verification model is a regular model; the first operation information includes translation processing, rotation processing, drag processing and combination processing of multiple three-dimensional sub-models; if the operation information is the first operation information, the verification data includes the fitting formula and fitting parameters corresponding to the processing operations performed by the user on the multiple three-dimensional sub-models.
[0120] The fourth generating unit 152 is used to generate second operation information if the three-dimensional verification model is an irregular model; the second operation information includes clicking on the uneven edge of the three-dimensional verification model; if the operation information is the second operation information, the verification data includes the coordinate value of the point in the three-dimensional verification model clicked by the user.
[0121] The verification device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0122] In one embodiment, please continue to refer to FIG. 7 , the above device further includes: a second determination module 16 and a third determination module 17, wherein:
[0123] The second determination module 16 is used to fit the point cloud data using a model fitting method if the type of the target three-dimensional model is a regular model, obtain the fitting formula and parameters of the fitting formula corresponding to the target three-dimensional model, and determine the fitting formula and parameters of the fitting formula as standard verification data.
[0124] The third determination module 17 is used to perform binary classification segmentation on the point cloud data based on the normal vector distance algorithm if the type of the target three-dimensional model is an irregular model, obtain the binary classification data corresponding to the target three-dimensional model, and determine the binary classification data as standard verification data.
[0125] The verification device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0126] In one embodiment, please continue to refer to FIG. 7 , the first determination module 12 includes: an acquisition unit 121 , a first processing unit 122 and a second processing unit 123 , wherein:
[0127] The obtaining unit 121 is used to obtain the similarity between the verification data and the standard verification data.
[0128] The first processing unit 122 is configured to respond to the login request if the similarity is greater than a preset threshold.
[0129] The second processing unit 123 is configured to not respond to the login request if the similarity is less than or equal to a preset threshold.
[0130] The verification device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0131] Each module in the above verification device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0132] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0133] When receiving a login request triggered by a user, outputting a three-dimensional verification model and operation information corresponding to the three-dimensional verification model;
[0134] Acquire verification data of the three-dimensional verification model triggered by the user based on operation information;
[0135] Determine whether to respond to the login request based on the verification data and standard verification data corresponding to the three-dimensional verification model.
[0136] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0137] When receiving the login request, selecting point cloud data of the target three-dimensional model from a preset three-dimensional model point cloud database;
[0138] Generate a 3D verification model according to the point cloud data and the type of the target 3D model; the type of the target 3D model includes a regular model and an irregular model;
[0139] Depending on the type of the 3D verification model, operation information is generated.
[0140] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0141] If the type of the target three-dimensional model is a regular model, multiple three-dimensional sub-models corresponding to the target three-dimensional model are generated according to the point cloud data, and the multiple three-dimensional sub-models are determined as three-dimensional verification models;
[0142] If the type of the target three-dimensional model is an irregular model, the target three-dimensional model is generated according to the point cloud data, and the target three-dimensional model is determined as a three-dimensional verification model.
[0143] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0144] If the type of the three-dimensional verification model is a rule model, first operation information is generated; the first operation information includes translation processing, rotation processing, drag processing and combination processing of multiple three-dimensional sub-models; if the operation information is the first operation information, the verification data includes fitting formulas and fitting parameters corresponding to the processing operations performed by the user on the multiple three-dimensional sub-models;
[0145] If the 3D verification model is an irregular model, second operation information is generated; the second operation information includes clicking on the uneven edge of the 3D verification model; if the operation information is the second operation information, the verification data includes the coordinate value of the point in the 3D verification model clicked by the user.
[0146] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0147] If the type of the target three-dimensional model is a regular model, the point cloud data is fitted using a model fitting method to obtain a fitting formula and parameters of the fitting formula corresponding to the target three-dimensional model, and the fitting formula and the parameters of the fitting formula are determined as standard verification data;
[0148] If the type of the target 3D model is an irregular model, the point cloud data is segmented into two categories based on the normal vector distance algorithm to obtain the binary data corresponding to the target 3D model, and the binary data is determined as the standard verification data.
[0149] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0150] Obtain the similarity between the verification data and the standard verification data;
[0151] If the similarity is greater than a preset threshold, respond to the login request;
[0152] If the similarity is less than or equal to the preset threshold, the login request will not be responded to.
[0153] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0154] When receiving a login request triggered by a user, outputting a three-dimensional verification model and operation information corresponding to the three-dimensional verification model;
[0155] Acquire verification data of the three-dimensional verification model triggered by the user based on operation information;
[0156] Determine whether to respond to the login request based on the verification data and standard verification data corresponding to the three-dimensional verification model.
[0157] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0158] When receiving the login request, selecting point cloud data of the target three-dimensional model from a preset three-dimensional model point cloud database;
[0159] Generate a 3D verification model according to the point cloud data and the type of the target 3D model; the type of the target 3D model includes a regular model and an irregular model;
[0160] Depending on the type of the 3D verification model, operation information is generated.
[0161] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0162] If the type of the target three-dimensional model is a regular model, multiple three-dimensional sub-models corresponding to the target three-dimensional model are generated according to the point cloud data, and the multiple three-dimensional sub-models are determined as three-dimensional verification models;
[0163] If the type of the target three-dimensional model is an irregular model, the target three-dimensional model is generated according to the point cloud data, and the target three-dimensional model is determined as a three-dimensional verification model.
[0164] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0165] If the type of the three-dimensional verification model is a rule model, first operation information is generated; the first operation information includes translation processing, rotation processing, drag processing and combination processing of multiple three-dimensional sub-models; if the operation information is the first operation information, the verification data includes fitting formulas and fitting parameters corresponding to the processing operations performed by the user on the multiple three-dimensional sub-models;
[0166] If the 3D verification model is an irregular model, second operation information is generated; the second operation information includes clicking on the uneven edge of the 3D verification model; if the operation information is the second operation information, the verification data includes the coordinate value of the point in the 3D verification model clicked by the user.
[0167] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0168] If the type of the target three-dimensional model is a regular model, the point cloud data is fitted using a model fitting method to obtain a fitting formula and parameters of the fitting formula corresponding to the target three-dimensional model, and the fitting formula and the parameters of the fitting formula are determined as standard verification data;
[0169] If the type of the target 3D model is an irregular model, the point cloud data is segmented into two categories based on the normal vector distance algorithm to obtain the binary data corresponding to the target 3D model, and the binary data is determined as the standard verification data.
[0170] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0171] Obtain the similarity between the verification data and the standard verification data;
[0172] If the similarity is greater than a preset threshold, respond to the login request;
[0173] If the similarity is less than or equal to the preset threshold, the login request will not be responded to.
[0174] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0175] When receiving a login request triggered by a user, outputting a three-dimensional verification model and operation information corresponding to the three-dimensional verification model;
[0176] Acquire verification data of the three-dimensional verification model triggered by the user based on operation information;
[0177] Determine whether to respond to the login request based on the verification data and standard verification data corresponding to the three-dimensional verification model.
[0178] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0179] When receiving the login request, selecting point cloud data of the target three-dimensional model from a preset three-dimensional model point cloud database;
[0180] Generate a 3D verification model according to the point cloud data and the type of the target 3D model; the type of the target 3D model includes a regular model and an irregular model;
[0181] Depending on the type of the 3D verification model, operation information is generated.
[0182] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0183] If the type of the target three-dimensional model is a regular model, multiple three-dimensional sub-models corresponding to the target three-dimensional model are generated according to the point cloud data, and the multiple three-dimensional sub-models are determined as three-dimensional verification models;
[0184] If the type of the target three-dimensional model is an irregular model, the target three-dimensional model is generated according to the point cloud data, and the target three-dimensional model is determined as a three-dimensional verification model.
[0185] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0186] If the type of the three-dimensional verification model is a rule model, first operation information is generated; the first operation information includes translation processing, rotation processing, drag processing and combination processing of multiple three-dimensional sub-models; if the operation information is the first operation information, the verification data includes fitting formulas and fitting parameters corresponding to the processing operations performed by the user on the multiple three-dimensional sub-models;
[0187] If the 3D verification model is an irregular model, second operation information is generated; the second operation information includes clicking on the uneven edge of the 3D verification model; if the operation information is the second operation information, the verification data includes the coordinate value of the point in the 3D verification model clicked by the user.
[0188] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0189] If the type of the target three-dimensional model is a regular model, the point cloud data is fitted using a model fitting method to obtain a fitting formula and parameters of the fitting formula corresponding to the target three-dimensional model, and the fitting formula and the parameters of the fitting formula are determined as standard verification data;
[0190] If the type of the target 3D model is an irregular model, the point cloud data is segmented into two categories based on the normal vector distance algorithm to obtain the binary data corresponding to the target 3D model, and the binary data is determined as the standard verification data.
[0191] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0192] Obtain the similarity between the verification data and the standard verification data;
[0193] If the similarity is greater than a preset threshold, respond to the login request;
[0194] If the similarity is less than or equal to the preset threshold, the login request will not be responded to.
[0195] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0196] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0197] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0198] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A verification method, characterized in that: The method comprises: When receiving a login request triggered by a user, outputting a three-dimensional verification model and operation information corresponding to the three-dimensional verification model; Acquire verification data of the three-dimensional verification model triggered by the user based on the operation information; Determine whether to respond to the login request based on the verification data and standard verification data corresponding to the three-dimensional verification model.
2. The method according to claim 1, characterized in that The method further comprises: When receiving the login request, selecting point cloud data of the target three-dimensional model from a preset three-dimensional model point cloud database; Generate the three-dimensional verification model according to the point cloud data and the type of the target three-dimensional model; the type of the target three-dimensional model includes a regular model and an irregular model; The operation information is generated according to the type of the three-dimensional verification model.
3. The method according to claim 2, characterized in that The step of generating the three-dimensional verification model according to the point cloud data and the type of the target three-dimensional model includes: If the type of the target three-dimensional model is the regular model, generating a plurality of three-dimensional sub-models corresponding to the target three-dimensional model according to the point cloud data, and determining the plurality of three-dimensional sub-models as the three-dimensional verification model; If the type of the target three-dimensional model is the irregular model, the target three-dimensional model is generated according to the point cloud data, and the target three-dimensional model is determined as the three-dimensional verification model.
4. The method according to claim 3, characterized in that The generating the operation information according to the type of the three-dimensional verification model includes: If the type of the three-dimensional verification model is the rule model, first operation information is generated; the first operation information includes performing translation processing, rotation processing, drag processing and combination processing on the multiple three-dimensional sub-models; If the three-dimensional verification model is the irregular model, second operation information is generated; the second operation information includes clicking on the uneven edge of the three-dimensional verification model.
5. The method according to claim 4, characterized in that If the operation information is the first operation information, the verification data includes fitting formulas and fitting parameters corresponding to the processing operations performed by the user on the multiple three-dimensional sub-models; If the operation information is the second operation information, the verification data includes the coordinate value of the point in the three-dimensional verification model clicked by the user.
6. The method according to claim 2, characterized in that The method further comprises: If the type of the target three-dimensional model is the regular model, fitting the point cloud data using a model fitting method, obtaining a fitting formula corresponding to the target three-dimensional model and parameters of the fitting formula, and determining the fitting formula and the parameters of the fitting formula as the standard verification data; If the type of the target three-dimensional model is the irregular model, the point cloud data is segmented into two categories based on a normal vector distance algorithm to obtain binary data corresponding to the target three-dimensional model, and the binary data is determined as the standard verification data.
7. The method according to any one of claims 1 to 6, characterized in that: The determining whether to respond to the login request according to the verification data and standard verification data corresponding to the three-dimensional verification model includes: Obtaining the similarity between the verification data and the standard verification data; If the similarity is greater than a preset threshold, responding to the login request; If the similarity is less than or equal to the preset threshold, the login request is not responded to.
8. A verification device, characterized in that: The device comprises: An output module, configured to output a three-dimensional verification model and operation information corresponding to the three-dimensional verification model when receiving a login request triggered by a user; An acquisition module, used for acquiring verification data of the three-dimensional verification model triggered by the user based on the operation information; The first determination module is used to determine whether to respond to the login request according to the verification data and standard verification data corresponding to the three-dimensional verification model.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
