Summary of the invention
The embodiment of the present invention provides the verification mode for increasing verifying sliding block in validation region when a kind of verifying, is tested by obscuring
It demonstrate,proves sliding block and verifies the corresponding relationship between notch, increase AI and crack difficulty, to guarantee sliding block verification method, the dress of verifying safety
It sets, computer equipment and storage medium.
In order to solve the above technical problems, the technical solution that the embodiment of the invention uses is: providing a kind of cunning
Block verification method, comprising:
Obtain pending user instruction;
The verifying page is generated in preset validation region according to the user instruction, wherein set in the verifying page
Verifying notch and multiple verifying sliding blocks are set, the size of one and only one verifying sliding block is tested with described in the multiple verifying sliding block
The size for demonstrate,proving notch is identical, and the multiple verifying sliding block storage is in the local database;
The verify data in the verifying page is acquired, and the verify data is sent to server end and is verified.
It optionally, further include background image on the verifying page, the background image is stored in the local data base
In, the verifying page that generated in preset validation region according to the user instruction includes:
Screen multiple verifying sliding blocks and background image respectively in the local database according to the user instruction;
First object is selected to verify sliding block in the multiple verifying sliding block according to preset picking rule;
The verifying notch that there is identical size with first object verifying sliding block is opened up in the background image;
The multiple verifying sliding block is arranged in the background image and generates the verifying page, wherein each verifying sliding block
The distance between verifying notch is different.
Optionally, the verify data in the acquisition verifying page, and the verify data is sent to server
Before end is verified, comprising:
Obtain the coordinate position of the first object verifying sliding block and the coordinate position of the verifying notch;
Calculate first between the coordinate position of the first object verifying sliding block and the coordinate position of the verifying notch
Coordinate distance;
First coordinate distance is sent to server end.
Optionally, the verify data in the acquisition verifying page, and the verify data is sent to server
End carries out verifying
The coordinate position of the second target verification sliding block is obtained in the validation region, wherein second target verification
Sliding block is that user chooses the verifying sliding block verified in the multiple verifying sliding block;
Calculate second between the coordinate position of the second target verification sliding block and the coordinate position of the verifying notch
Coordinate distance;
Second coordinate distance is sent to server end, so that the server end is according to first coordinate distance
It is verified with second coordinate distance.
Optionally, described that second coordinate distance is sent to server end, so that the server end is according to
Before first coordinate distance and second coordinate distance are verified, comprising:
Acquire the movement routine of the second target verification sliding block;
The movement routine is compared with preset threshold value path;
When the movement routine is identical as the threshold value path, preset authentication failed information is called to be shown;It is no
Then, then confirm to the server end and send second coordinate distance.
Optionally, described that second coordinate distance is sent to server end, so that the server end is according to
Before first coordinate distance and second coordinate distance are verified, comprising:
Acquire the screenshot picture in the validation region;
The screenshot picture is input in preset verifying judgment models, wherein the verifying judgment models are preparatory
Training is to convergence state, for judging whether the image of the second target verification sliding block characterization is covered on the verifying notch
Neural network model;
Obtain the classification results of the verifying judgment models output, and by the classification results and preset judgment threshold into
Row compares;
When the classification results and the judgment threshold are inconsistent, preset authentication failed information is called to be shown;
Otherwise, then confirm to the server end and send second coordinate distance.
Optionally, the screenshot picture in the acquisition validation region includes:
Obtain the display data in frame buffer memory;
It is extracted in the display data according to the position of the validation region and characterizes the validation region display content
Target data;
The target data is converted into picture format and generates the screenshot picture.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of sliding block verifying device, comprising: a kind of sliding block is tested
Card device, comprising:
Module is obtained, for obtaining pending user instruction;
Processing module, for generating the verifying page in preset validation region according to the user instruction, wherein described
Setting verifying notch and multiple verifying sliding blocks in the page are verified, one and only one verifying sliding block in the multiple verifying sliding block
Size is identical as the verifying size of notch, and the multiple verifying sliding block storage is in the local database;
The verify data for acquiring the verify data in the verifying page, and is sent to service by execution module
It is verified at device end.
It optionally, further include background image on the verifying page, the background image is stored in the local data base
In, the sliding block verifies device further include:
First processing submodule, for screening multiple verifying sliding blocks respectively in the local database according to the user instruction
And background image;
Second processing submodule, for selecting first object in the multiple verifying sliding block according to preset picking rule
Verify sliding block;
First rendering submodule, for being opened up in the background image with first object verifying sliding block with identical
The verifying notch of size;
First processing submodule generates verifying page for being arranged the multiple verifying sliding block in the background image
Face, wherein each verifying sliding block is different from the distance between verifying notch.
Optionally, the sliding block verifies device further include:
First acquisition submodule, for obtaining the coordinate position and the verifying notch of the first object verifying sliding block
Coordinate position;
First computational submodule, for calculating the coordinate position and the verifying notch of the first object verifying sliding block
The first coordinate distance between coordinate position;
Second implementation sub-module, for first coordinate distance to be sent to server end.
Optionally, the sliding block verifies device further include:
Second acquisition submodule, for obtaining the coordinate position of the second target verification sliding block in the validation region,
In, the second target verification sliding block is that user chooses the verifying sliding block verified in the multiple verifying sliding block;
Second computational submodule, for calculating the coordinate position and the verifying notch of the second target verification sliding block
The second coordinate distance between coordinate position;
Third implementation sub-module, for second coordinate distance to be sent to server end, so that the server end
It is verified according to first coordinate distance and second coordinate distance.
Optionally, the sliding block verifies device further include:
First acquisition submodule, for acquiring the movement routine of the second target verification sliding block;
Third handles submodule, for the movement routine to be compared with preset threshold value path;
4th implementation sub-module, for calling preset verifying when the movement routine is identical as the threshold value path
Failure information is shown;Otherwise, then confirm to the server end and send second coordinate distance.
Optionally, the sliding block verifies device further include:
Second acquisition submodule, for acquiring the screenshot picture in the validation region;
Fourth process submodule, for the screenshot picture to be input in preset verifying judgment models, wherein described
Verifying judgment models is training in advance to convergence state, for judging whether the image of the second target verification sliding block characterization covers
Cover the neural network model on the verifying notch;
Third acquisition submodule for obtaining the classification results of the verifying judgment models output, and the classification is tied
Fruit is compared with preset judgment threshold;
5th implementation sub-module, for calling preset test when the classification results and the judgment threshold are inconsistent
Card failure information is shown;Otherwise, then confirm to the server end and send second coordinate distance.
Optionally, the sliding block verifies device further include:
4th acquisition submodule, for obtaining the display data in frame buffer memory;
5th processing submodule, for being extracted in the display data according to the position of the validation region described in characterization
Validation region shows the target data of content;
6th implementation sub-module generates the screenshot picture for the target data to be converted to picture format.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of computer equipment, including memory and processing
Device is stored with computer-readable instruction in the memory, when the computer-readable instruction is executed by the processor, so that
The processor executes the step of sliding block verification method described above.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of storage Jie for being stored with computer-readable instruction
Matter, when the computer-readable instruction is executed by one or more processors, so that one or more processors execute above-mentioned institute
The step of stating sliding block verification method.
The beneficial effect of the embodiment of the present invention is: multiple verifying sliding blocks being arranged in validation region, are provided with along region
In verifying notch one and only one verifying sliding block it is corresponding, user select correctly verifying sliding block after, by the verifying
Sliding block is dragged to verifying gap position and completes verifying.Because therefore validation region, which is provided with multiple verifying sliding blocks, have been obscured and tested
One-to-one rule, the breaking techniques for verifying AI image recognition automatically between sliding block and verifying notch are demonstrate,proved to cause to do
Disturb, improve the degree of safety of verifying, can effectively guarantee verifying be artificial progress, restrained the automatic brush ticket in internet or
Person gets the behavior of commission.Verifying sliding block is stored in the local database, terminal can be made in user's operation, generated in time
The page is verified, the response speed of verifying is improved, reduces the consumption to Internet resources.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
In some processes of the description in description and claims of this specification and above-mentioned attached drawing, contain according to
Multiple operations that particular order occurs, but it should be clearly understood that these operations can not be what appears in this article suitable according to its
Sequence is executed or is executed parallel, and serial number of operation such as 101,102 etc. is only used for distinguishing each different operation, serial number
It itself does not represent and any executes sequence.In addition, these processes may include more or fewer operations, and these operations can
To execute or execute parallel in order.It should be noted that the description such as " first " herein, " second ", is for distinguishing not
Same message, equipment, module etc., does not represent sequencing, does not also limit " first " and " second " and be different type.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication
The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and emitting hardware
Equipment, have on bidirectional communication link, can execute two-way communication reception and emit hardware equipment.This equipment
It may include: honeycomb or other communication equipments, shown with single line display or multi-line display or without multi-line
The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), can
With combine voice, data processing, fax and/or communication ability;PDA (PersonalDigital Assistant, it is personal
Digital assistants), it may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day
It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm
Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its
His equipment." terminal " used herein above, " terminal device " can be it is portable, can transport, be mounted on the vehicles (aviation,
Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth
And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on
Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet
Equipment) and/or mobile phone with music/video playing function, it is also possible to the equipment such as smart television, set-top box.
It is the basic procedure schematic diagram of the present embodiment sliding block verification method referring specifically to Fig. 1, Fig. 1.
As shown in Figure 1, a kind of sliding block verification method, comprising:
S1100, pending user instruction is obtained;
When user's operation computer equipment enters application program or when some functional module of starting application program, the use
Family instruction can trigger corresponding authentication function.For example, application program logs in, all kinds of ticket of online purchase or the submission of electric business platform are ordered
The user behaviors such as single, can trigger user authentication feature.
S1200, the verifying page is generated in preset validation region according to the user instruction, wherein the verifying page
Setting verifying notch and multiple verifying sliding blocks in face, in the multiple verifying sliding block the size of one and only one verifying sliding block with
The size of the verifying notch is identical, and the multiple verifying sliding block storage is in the local database;
After authentication function is triggered, computer page can jump to the verifying page, or the part in the existing page
Position shows validation region.In present embodiment, the verifying page is the page for being provided with validation region, comprising: in page part
Position is equipped with the page of validation region, also includes in full page only including the page of validation region.
The verifying content that validation region is shown in present embodiment is image document required for sliding is verified.
It include: background image, the verifying notch being provided on background image and setting in validation region in background image
On multiple verifying sliding blocks, and it is multiple verifying sliding block in one and only one verifying sliding block figure and/or size and verifying lack
The figure of mouth is consistent with size.
Computer equipment chooses a conduct in multiple verifying sliding blocks in the instruction for receiving user according to user instructions
Second target verification sliding block, wherein the second target verification sliding block may be adapted to verifying notch, it is also possible to verify notch not phase
Matching, i.e., the verifying sliding block that user chooses are likely to be accurate it could also be possible that wrong.The second target is tested according to instruction
Card sliding block is dragged on verifying notch, is covered to verifying notch.If the second target verification sliding block is adapted to verifying notch,
The verification result for the certificate parameter characterization then verified is to be verified;If the second target verification sliding block and verifying notch are not
It is adapted, then the verification result for the certificate parameter characterization verified is authentication failed.
For example, referring to Fig. 2, Fig. 2 is a kind of display schematic diagram of the present embodiment sliding block verifying.
As shown in Fig. 2, being equipped with 4 each verifying sliding blocks in validation region, verifying sliding block is arranged in the matrix-style of 2*2 to be tested
Region left end is demonstrate,proved, the verifying notch that the triangle that one is placed vertically is hit then is offered on the right side of validation region, verifies notch and 4
Verify a shape, size and the identical trigonal slider of placement angle in sliding block.User chooses the second mesh of dragging
For mark verifying sliding block if it is trigonal slider, the verification result obtained after covering is to be verified, otherwise, then after covering or
The verification result obtained after the poly- coin covering of person is authentication failed.It is to be noted that the quantity of verifying sliding block is not limited to 4, root
According to the difference of concrete application scene, in some embodiments, the quantity for verifying sliding block can be (being not limited to): 2,3,5,6 or
Person more.And verify the placement position of sliding block and placement regulation does not also limit to be arranged and in state determines region and fixed format, one
In a little embodiments, verifying putting for sliding block can be put at random in validation region.
It should be pointed out that verifying sliding block all in present embodiment and background image are stored in computer equipment
In local data base, after authentication function is triggered, the multiple verifying sliding blocks of random screening and background image in the local database.
Verify data in S1300, the acquisition verifying page, and the verify data is sent to server end and is carried out
Verifying.
After user instruction is performed, the parameter of verifying is acquired.Certificate parameter can be (being not limited to)
The starting coordinate position of two target verification sliding blocks, terminal point coordinate location and shape;Verify the shape and coordinate position of notch;Second
The motion track and movement speed of target verification sliding block;The information such as the image of validation region that user instruction acquires when completing;The
The distance between two target verification sliding blocks and verifying notch.It can be by computer equipment or server end after above- mentioned information are collected
For calculating verification result.
It should be pointed out that the coordinate position of the second target verification sliding block and verifying notch can be one, i.e. the second mesh
Mark verifying sliding block and verify notch characterization figure center point coordinate, also can be it is multiple, for example, the second target verification sliding block and
When verifying notch is triangle, in addition to center point coordinate, it is also necessary to which therefore three apex coordinates for obtaining triangle work as figure
When shape is polygon, also need to extract the coordinate on each vertex in addition to central point, when graphics shape is oval, it is also necessary to extract
The coordinate on oval vertex.Reference coordinate zero point when coordinate is extracted, can be at any point specified in display area
Position coordinates.
Multiple verifying sliding blocks are arranged in above embodiment in validation region, and being provided with has along the verifying notch in region
And only one verifying sliding block is corresponding, which is dragged to verifying after selecting correctly verifying sliding block by user
Gap position completes verifying.Since validation region is provided with multiple verifying sliding blocks, therefore, has obscured verifying sliding block and verifying lacks
One-to-one rule, the breaking techniques verified automatically to AI image recognition interfere between mouthful, improve verifying
Degree of safety, can effectively guarantee verifying is artificial progress, has restrained the automatic brush ticket in internet or has got the row of commission
For.Verifying sliding block is stored in the local database, terminal can be made in user's operation, the verifying page is generated in time, improves
The response speed of verifying, reduces the consumption to Internet resources.
In some embodiments, the setting for verifying notch is that setting is selected in multiple verifying sliding blocks.Please refer to figure
3, Fig. 3 generate the flow diagram of the verifying page for the present embodiment.
As shown in figure 3, the step of S1200 shown in FIG. 1, includes:
S1211, multiple verifying sliding blocks and background image are screened respectively in the local database according to the user instruction;
Computer equipment is after receiving validation task and being triggered, and computer equipment is in local preset sliding block database
Multiple verifying sliding blocks are selected at random, wherein verifying sliding block of different shapes is stored in sliding block database, meanwhile, in picture
Picture is randomly selected in database as background image, then by multiple verifying sliding block rules or random setting in Background
Blank position as upper, and in background image selects a coordinate as the position where verifying notch central point.
S1212, first object is selected to verify sliding block in the multiple verifying sliding block according to preset picking rule;
Computer equipment is chosen in multiple verifying sliding blocks one of as the first mesh according to preset picking rule
Mark verifying sliding block.Wherein, picking rule is to select at random, and the mode selected at random can be (being not limited to): simple random sampling
The methods of method, equidistant method of random sampling or random sampling by classification method extract one of them as first in multiple verifying sliding blocks
Target verification sliding block.
Computer equipment verifies the shape and ruler of sliding block according to first object after being drawn into first object verifying sliding block
Very little, opening up in the preset first area of background image with first object verifying sliding block there is the verifying of same shape and specification to lack
Mouthful.
S1213, opened up in the background image with the first object verifying sliding block have identical size verifying lack
Mouthful;
Computer equipment verifies the shape and ruler of sliding block according to first object after being drawn into first object verifying sliding block
Very little, opening up in the preset first area of background image with first object verifying sliding block there is the verifying of same shape and specification to lack
Mouthful.Identical size refers to verifying sliding block in present embodiment and verifying notch is of similar shape and identical specification.
When opening up verifying notch on background image, the shape using first object verifying sliding block characterization is clipping boundary the
Shearing is carried out in one region and forms notch, which is to verify notch.
S1214, the multiple verifying sliding block is arranged in the background image to generate and verifies the page, wherein is each to test
It is different to demonstrate,prove the distance between sliding block and verifying notch.
After verifying notch opens up, multiple verifying sliding blocks are arranged in background image, include in multiple verifying sliding blocks
First object verifies sliding block.Multiple verifying sliding blocks are different from the distance between verifying notch when setting, wherein verify sliding block and test
Demonstrate,prove the distance between notch are as follows: the coordinate distance between the distance between verifying sliding block and verifying notch central point.
By that terminal can be made in user's operation in the generation for locally carrying out the verifying page, the verifying page is generated in time,
The response speed for improving verifying reduces the consumption to Internet resources.
In some embodiments, after generating and verifying the page, need verify in the page first object verifying sliding block and
The distance between verifying notch is sent to server end, so that server end has verifying reference information.Referring to Fig. 4, Fig. 4 is
The present embodiment sends the flow diagram of verifying reference information to server end.
Referring to Fig. 4, before S1300 step shown in FIG. 1, comprising:
The coordinate position of S1221, the coordinate position for obtaining the first object verifying sliding block and the verifying notch;
After multiple verifying sliding blocks are arranged on background image, the coordinate position of first object verifying sliding block is read.It reads
Coordinate be coordinate that first object verifies center point, but the selection of coordinate position is not limited to this, according to specifically answering
With the difference of scene, in some embodiments, first object verifying sliding block (being not limited to) is extracted: center of gravity, hang down point or vertex
Coordinate.
After the coordinate position for obtaining first object sliding block, the same coordinate position for obtaining verifying notch.Obtain verifying notch
Coordinate position and first object the verifying coordinate position of sliding block it is identical, e.g., the center for obtaining first object verifying sliding block is sat
Mark is then also required to obtain the center of verifying notch;The barycentric coodinates for obtaining first object verifying sliding block, then be also required to obtain
Take the position of centre of gravity of verifying notch.
Reference coordinate zero point when coordinate is extracted, can be that the position at any point specified in background graphics is sat
Mark.
Between S1222, the coordinate position for calculating the first object verifying sliding block and the coordinate position of the verifying notch
The first coordinate distance;
After the coordinate position for reading the coordinate position and verifying notch that obtain first object verifying sliding block, the first mesh is calculated
Coordinate distance between the coordinate position of mark verifying sliding block and the coordinate position for verifying notch, and defining the coordinate distance is first
Coordinate distance.
S1223, first coordinate distance is sent to server end.
After the first coordinate distance is calculated, the first coordinate distance is sent to server end, server end will be used as and test
Demonstrate,prove reference information.
In present embodiment, by first object verifying sliding block coordinate position and verify notch coordinate position between away from
It is sent to server end from as verifying reference information, due to, the distance between each verifying sliding block and verifying notch differ,
Therefore, the distance between the coordinate position of first object verifying sliding block and the coordinate position of verifying notch have uniqueness, meet
Verify the standard of reference information.Simultaneously as the data volume that range information occupies is smaller, more Internet resources can be saved,
Verifying cost is reduced, the pressure of server end can be also alleviated.For example, using coordinate as verifying reference information, first object is tested
The data volume that the coordinate position of the coordinate position and verifying notch of demonstrate,proving sliding block is included is larger, occupies compared to range information more
Internet resources.
In some embodiments, when user chooses some verifying sliding block to carry out stroke verifying, sliding block is chosen in acquisition
The coordinate position of coordinate position and verifying notch, calculates the distance between two coordinate positions, generates verify data and is verified.
Referring to Fig. 5, Fig. 5 is the flow diagram that the present embodiment is verified by the distance between coordinate position.
As shown in figure 5, after S1300 step shown in FIG. 1, comprising:
S1311, the coordinate position that the second target verification sliding block is obtained in the validation region, wherein second mesh
Mark verifying sliding block is that user chooses the verifying sliding block verified in the multiple verifying sliding block;
After verifying page generation, user selects a verifying sliding block to carry out stroke verifying, definition in multiple verifying sliding blocks
The verifying sliding block that user chooses is the second target verification sliding block.Second target verification sliding block is identical as first object verifying sliding block,
Then indicate that user chooses correctly verifying sliding block;Otherwise the unselected correct verifying sliding block of user is then indicated.
The coordinate of reading is the coordinate of the second target verification center point, but the selection of coordinate position is not limited to
This, is according to the difference of concrete application scene, in some embodiments, the second target verification sliding block (being not limited to) of extraction: center of gravity,
Vertical point or the coordinate on vertex.Obtain the coordinate position phase of the coordinate position and first object verifying sliding block of the second target verification sliding block
Together.
After the coordinate position for obtaining the second target sliding block, the same coordinate position for obtaining verifying notch.Obtain verifying notch
Coordinate position it is identical as the coordinate position of the second target verification sliding block, e.g., obtain the second target verification sliding block center sit
Mark is then also required to obtain the center of verifying notch;The barycentric coodinates for obtaining the second target verification sliding block, then be also required to obtain
Take the position of centre of gravity of verifying notch.
Between S1312, the coordinate position for calculating the second target verification sliding block and the coordinate position of the verifying notch
The second coordinate distance;
After the coordinate position for reading the coordinate position for obtaining the second target verification sliding block and verifying notch, the second mesh is calculated
Coordinate distance between the coordinate position of mark verifying sliding block and the coordinate position for verifying notch, and defining the coordinate distance is second
Coordinate distance.
S1313, second coordinate distance is sent to server end, so that the server end is sat according to described first
Subject distance and second coordinate distance are verified.
After the second coordinate distance is calculated, the second coordinate distance is sent to server end, server end will be used as and test
Demonstrate,prove information.
Server end is compared after obtaining the second coordinate distance, by the second coordinate distance with the first coordinate distance, if
Two coordinate distances are identical, then are verified;If two coordinate distance differences, authentication failed.
In some embodiments, the second target verification sliding block of acquisition stops coordinate position when dragging, and calculates the coordinate
The distance between position and verifying notch coordinate position, defining the distance is third coordinate distance.Third coordinate distance is for sentencing
Whether disconnected second target verification sliding block is covered on verifying notch, by third verifying distance and preset distance threshold (for example,
It 0.05cm) is compared, if third verifying distance is less than or equal to distance threshold, shows that the second target verification sliding block is covered on
It verifies on notch, otherwise, then authentication failed.
Due to, the data volume that range information occupies is smaller, can save more Internet resources, verifying cost is reduced,
The pressure of server end can be alleviated.
In some embodiments, it when judging whether slide verification process is manual operation, can be dragged according to user
The track of verifying sliding block is judged.Referring to Fig. 6, Fig. 6 is that the present embodiment is carried out according to the movement routine of first object sliding block
A kind of flow diagram of verifying.
As shown in fig. 6, before S1313 step shown in fig. 5, comprising:
The movement routine of S1321, acquisition the second target verification sliding block;
It is at predetermined intervals information collection when execution user instruction drags the second target verification sliding block
Point acquires the motion track of the second target verification sliding block, for example, using 0.05s as time interval, to the second target verification sliding block
Shift position is recorded, and shift position refers to the moving coordinate of the second target verification center point.When user instruction executes
It finishes, after stopping the second target verification sliding block of dragging, the second target is generated after the position coordinates of above-mentioned acquisition are attached and is tested
The movement routine of sliding block is demonstrate,proved, which is the behavioural information of user.
S1322, the movement routine is compared with preset threshold value path;
A path threshold is set, which is at the second target verification sliding block midpoint to verifying notch midpoint
Straight line path.The movement routine of generation is compared with threshold value path, alignments are the length for comparing path.
S1323, when the movement routine is identical as the threshold value path, call preset authentication failed information to be shown
Show;Otherwise, then confirm to the server end and send second coordinate distance.
When due to dragging the second target verification sliding block manually, user it is almost impossible walk shortest straight line path, even if walking
Straight line path, which also will appear the phenomenon that shake, causes path to be bent, and therefore, shows when movement routine is identical as threshold value path
The dragging behavior is not normal artificial verifying behavior.The information for calling directly authentication failed is shown, is only verified
When, just the certificate parameter of acquisition (the second coordinate distance) is uploaded.
By the verifying link local in terminal setting, it can effectively slow down the verifying pressure of server end, meanwhile, pass through
User behavior verifies verifying behavior, can be improved the accuracy rate of verifying, improves the security level of verifying.
In some embodiments, the verification mode of the unartificial verifying in part directly extracts the verify data on backstage, passes through
Certificate parameter is simulated after calculating to be uploaded, and verifying is completed.For the behavior for limiting the simplation verification, need through image classification
Verifying picture when method completes verifying judges, to determine whether to have carried out true stroke verifying.Referring to Fig. 7,
Fig. 7 is the flow diagram that the present embodiment carries out image authentication by neural network model.
As shown in fig. 7, before S1313 step shown in fig. 5, comprising:
Screenshot picture in S1331, the acquisition validation region;
When terminal shows verification information, needs for all display contents in display area to be stored in frame buffering and deposit
It in reservoir, i.e., is a direct image of picture shown by screen, also known as bit map (Bit in frame buffer memory
Map).Therefore, when having executed user instruction, the content in frame buffer memory at this time is read, is just obtained shown by screen
The bit map of picture, the picture that validation region is intercepted in bit map form screenshot picture.
S1332, the screenshot picture is input in preset verifying judgment models, wherein the verifying judgment models
To be trained in advance to convergence state, for judging whether the image of the second target sliding block characterization is covered on the verifying notch
On neural network model;
Screenshot picture is input in preset verifying judgment models, verifying judgment models are to be trained in advance to convergence state
The neural network model whether being covered on verifying notch for judging the image of the second target verification sliding block characterization.Verifying judgement
Model can be the trained convolutional neural networks model (CNN) to convergence state, still, not limited to this, verifying judgement
Model can also be: deep neural network model (DNN), Recognition with Recurrent Neural Network model (RNN) or above-mentioned three kinds of network models
Distorted pattern.
Initial neural network model as verifying judgment models verifies picture in training, by collecting a large amount of sliding block
As training sample, behind the position manually between the middle verifying sliding block for observing training sample and verifying notch, to each
A training sample is demarcated (calibration refers to whether the verifying sliding block of training sample truly expressed is overlapped with verifying notch).Then
Training sample is input in initial neural network model, and obtain model output classification results (classification results are model
Whether the verifying sliding block that the state classification of obtained training sample, i.e. model judge to obtain training sample expression weighs with verifying notch
Close), and by the loss function of neural network model calculate the distance between the classification results and calibration result (such as: Euclidean
Distance, mahalanobis distance or COS distance etc.), calculated result is compared with the distance threshold of setting, if calculated result is less than
Then pass through verifying equal to distance threshold, continue the training of next training sample, if calculated result is greater than distance threshold
Difference between the two is then calculated by loss function, and the weight in neural network model is corrected by backpropagation, makes mind
It can be improved the pixel that can accurately express verifying sliding block in training sample and verify distance relation between notch through network model
The weight of point increases the accuracy rate of judgement with this.After executing above scheme and the training of a large amount of training sample by circulation, instruction
The neural network model got is to verifying sliding block and verifies that the judging nicety rate whether covered between notch is greater than certain numerical value
, for example, 95%, then neural network model training to convergence state, then the training to convergent neural network is to verify
Judgment models.
The verifying judgment models of training to convergence state can accurately judge to verify whether sliding block is overlapped with verifying notch.
S1333, the classification results for obtaining the verifying judgment models output, and by the classification results and preset judgement
Threshold value is compared;
After screenshot picture is input to verifying judgment models, verifying judgment models export corresponding classification results, and will divide
Class result is compared with preset judgment threshold.Classification results be verify judgment models judgement the second target verification sliding block with
The distance between notch is verified, judgment threshold is then the distance values of setting, such as 0.05cm.
S1334, when the classification results and the judgment threshold are inconsistent, call preset authentication failed information to carry out
Display;Otherwise, then confirm to the destination server end and send the certificate parameter.
Show that authentication failed calls directly the information progress of authentication failed when classification results are inconsistent with judgment threshold
Display when only classification results are consistent with judgment threshold, then shows that being proved to be successful ability uploads the certificate parameter of acquisition.
It should be pointed out that if terminal is not provided in frame buffer memory or frame buffer memory in data call,
When without any image data or existing image data not being the picture in validation region, the result directly resulted in is also to test
Card failure, the information for calling directly authentication failed are shown.
By the verifying link local in terminal setting, it can effectively slow down the verifying pressure at destination server end, meanwhile,
It is verified by the screen shot of validation region, the verifying by the carry out data upload virtually verified can be effectively prevented
Loophole greatly increases the safety of verifying.
In some embodiments, the screenshot picture needs in validation region are extracted out of frame buffer memory.Please
It is flow diagram of the present embodiment by acquisition screenshot picture in frame buffer memory refering to Fig. 8, Fig. 8.
As shown in figure 8, S1341 further include:
Display data in S1341, acquisition frame buffer memory;
When terminal shows verification information, needs for all display contents in display area to be stored in frame buffering and deposit
It in reservoir, i.e., is a direct image of picture shown by screen, also known as bit map (Bit in frame buffer memory
Map), namely display data.
S1342, it the characterization validation region is extracted in the display data according to the position of the validation region shows
The target data of content;
Since the region with setting of the validation region in bit map is reflected in place according to the information of setting regions
The local bit map of data area generation that figure extracts characterization validation region content is penetrated, that is, characterizes the mesh that validation region shows content
Mark data.
S1343, the target data is converted to the picture format generation screenshot picture.
Target data is finally converted to the formats such as conventional picture format, such as (being not limited to) JPG, PNG or TIF,
Generate screenshot picture.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of sliding block verifying device.
It is that the present embodiment sliding block verifies device basic structure schematic diagram referring specifically to Fig. 9, Fig. 9.
As shown in figure 9, a kind of sliding block verifies device, comprising: obtain module 2100, processing module 2200 and execution module
2300.Wherein, module 2100 is obtained for obtaining pending user instruction;Processing module 2200 for existing according to user instructions
The verifying page is generated in preset validation region, wherein setting verifying notch and multiple verifying sliding blocks in the verifying page, it is multiple to test
The size for demonstrate,proving one and only one verifying sliding block in sliding block is identical as the verifying size of notch, and multiple verifying sliding blocks are stored in local
In database;Execution module 2300 is used to acquire the verify data in the verifying page, and verify data is sent to server end
It is verified.
Multiple verifying sliding blocks are arranged in above embodiment in validation region, and being provided with has along the verifying notch in region
And only one verifying sliding block is corresponding, which is dragged to verifying after selecting correctly verifying sliding block by user
Gap position completes verifying.Since validation region is provided with multiple verifying sliding blocks, therefore, has obscured verifying sliding block and verifying lacks
One-to-one rule, the breaking techniques verified automatically to AI image recognition interfere between mouthful, improve verifying
Degree of safety, what is be able to verify that is artificial progress, has restrained the automatic brush ticket in internet or has got the effectively guarantee row of commission
For.Verifying sliding block is stored in the local database, terminal can be made in user's operation, the verifying page is generated in time, improves
The response speed of verifying, reduces the consumption to Internet resources.
In some embodiments, verifying further includes background image on the page, and background image stores in the local database,
Sliding block verifies device further include: the first processing submodule, second processing submodule, the first rendering submodule and the first processing submodule
Block.Wherein, the first processing submodule for screening multiple verifying sliding blocks and back respectively in the local database according to user instructions
Scape image;Second processing submodule according to preset picking rule in multiple verifying sliding blocks for selecting first object verifying to slide
Block;First rendering submodule, which is used to open up in background image, with first object verifying sliding block there is the verifying of identical size to lack
Mouthful;First processing submodule, which is used to for multiple verifying sliding blocks being arranged in background image, generates the verifying page, wherein each verifying
Sliding block is different from the distance between verifying notch.
In some embodiments, sliding block verifies device further include: the first acquisition submodule, the first computational submodule and the
Two implementation sub-modules.Wherein, the first acquisition submodule is used to obtain the coordinate position and verifying notch of first object verifying sliding block
Coordinate position;First computational submodule is used to calculate the coordinate position of first object verifying sliding block and the coordinate bit of verifying notch
The first coordinate distance between setting;Second implementation sub-module is used to the first coordinate distance being sent to server end.
In some embodiments, sliding block verifies device further include: the second acquisition submodule, the second computational submodule and the
Three implementation sub-modules.Wherein, the second acquisition submodule is used to obtain the coordinate bit of the second target verification sliding block in validation region
It sets, wherein the second target verification sliding block is that user chooses the verifying sliding block verified in multiple verifying sliding blocks;Second calculates
Submodule be used for calculates the second target verification sliding block coordinate position and verifying notch coordinate position between the second coordinate away from
From;Third implementation sub-module is used to the second coordinate distance being sent to server end so that server end according to the first coordinate away from
It is verified from the second coordinate distance.
In some embodiments, sliding block verifies device further include: the first acquisition submodule, third processing submodule and the
Four implementation sub-modules.Wherein, the first acquisition submodule is used to acquire the movement routine of the second target verification sliding block;Third processing
Module is for movement routine to be compared with preset threshold value path;4th implementation sub-module is used to work as movement routine and threshold value
When path is identical, preset authentication failed information is called to be shown;Otherwise, then confirm to server end send the second coordinate away from
From.
In some embodiments, sliding block verifies device further include: the second acquisition submodule, fourth process submodule, the
Three acquisition submodules and the 5th implementation sub-module.Wherein, the second acquisition submodule is used to acquire the screenshot picture in validation region;
Fourth process submodule is for screenshot picture to be input in preset verifying judgment models, wherein verifying is judged as preparatory instruction
Practice to convergence state, the neural network whether being covered on verifying notch for judging the image of the second target verification sliding block characterization
Model;Third acquisition submodule is used to obtain the classification results of verifying judgment models output, and classification results are sentenced with preset
Disconnected threshold value is compared;5th implementation sub-module is used to call preset verifying when classification results and judgment threshold are inconsistent
Failure information is shown;Otherwise, then confirm to server end and send the second coordinate distance.
In some embodiments, sliding block verifies device further include: the 4th acquisition submodule, the 5th processing submodule and the
Six implementation sub-modules.Wherein, the 4th acquisition submodule is used to obtain the display data in frame buffer memory;5th processing submodule
Block is used to extract the target data that characterization validation region shows content in display data according to the position of validation region;6th holds
Row submodule, which is used to being converted to target data into picture format, generates screenshot picture.
In order to solve the above technical problems, the embodiment of the present invention also provides computer equipment.Referring specifically to Figure 10, Tu10Wei
The present embodiment computer equipment basic structure block diagram.
As shown in Figure 10, the schematic diagram of internal structure of computer equipment.The computer equipment includes being connected by system bus
Processor, non-volatile memory medium, memory and the network interface connect.Wherein, the non-volatile memories of the computer equipment
Media storage has operating system, database and computer-readable instruction, can be stored with control information sequence in database, the calculating
When machine readable instruction is executed by processor, processor may make to realize a kind of sliding block verification method.The processing of the computer equipment
Device supports the operation of entire computer equipment for providing calculating and control ability.It can be deposited in the memory of the computer equipment
Computer-readable instruction is contained, when which is executed by processor, processor may make to execute a kind of sliding block and test
Card method.The network interface of the computer equipment is used for and terminal connection communication.It will be understood by those skilled in the art that in Figure 10
The structure shown, only the block diagram of part-structure relevant to application scheme, does not constitute and is applied to application scheme
The restriction of computer equipment thereon, specific computer equipment may include than more or fewer components as shown in the figure,
Perhaps certain components are combined or with different component layouts.
Processor obtains module 2100, processing module 2200 and execution module for executing in present embodiment in Fig. 9
2300 concrete function, program code and Various types of data needed for memory is stored with the above-mentioned module of execution.Network interface is used for
To the data transmission between user terminal or server.Memory in present embodiment is stored with facial image critical point detection
Program code needed for executing all submodules in device and data, server are capable of the program code and data of invoking server
Execute the function of all submodules.
Multiple verifying sliding blocks are arranged in computer equipment in validation region, be provided with along the verifying notch in region have and
Only one verifying sliding block is corresponding, which is dragged to verifying and lacked by user after selecting correctly verifying sliding block
Complete verifying in mouth position.Since validation region is provided with multiple verifying sliding blocks, therefore, has obscured verifying sliding block and verifying notch
Between one-to-one rule, the breaking techniques verified automatically to AI image recognition interfere, and improve the peace of verifying
Whole step, can effectively guarantee verifying is artificial progress, has restrained the automatic brush ticket in internet or has got the behavior of commission.
The present invention also provides a kind of storage medium for being stored with computer-readable instruction, computer-readable instruction by one or
When multiple processors execute, so that the step of one or more processors execute any of the above-described embodiment sliding block verification method.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, which can be stored in a computer-readable storage and be situated between
In matter, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium above-mentioned can be
The non-volatile memory mediums such as magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random storage note
Recall body (Random Access Memory, RAM) etc..
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other
At least part of the sub-step or stage of step or other steps executes in turn or alternately.