Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one
Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
The above-mentioned corresponding information processing method of two kinds of preset conditions will be described in detail respectively below.
Fig. 1 is the process of authentication provided by the embodiments of the present application, specifically includes the following steps:
S101: server sends authentication question information and multiple alternative answer informations to terminal.
In the embodiment of the present application, server, can be in the certification that itself is pre-saved when carrying out authentication to user
One or more authentication question information are randomly choosed in problem base, alternatively, the user certification specified in registration may be selected
Problem information, and the corresponding each alternative answer information of authentication question information for generating selection, wherein wrapped in the alternative answer information
Include at least one correct option and at least one wrong answer, finally, server by the authentication question information of selection and generate
Each alternative answer information is sent to the terminal where the user, makes the terminal display authentication question information and each alternative answer.
Specifically, user before obtaining service to server, can first log in its pre-registered account, and pass through the account
Number service acquisition request (e.g., transfer request, payment request, account opening request or other requests), then server are sent to server
The corresponding authentication question information of the account can be determined according to the corresponding relationship of the account and authentication question information for pre-saving,
The corresponding correct option information of the authentication question information pre-saved is determined again, and generates several wrong answer information, it will
Correct option information and wrong answer information as each alternative answer information, server can also according to the acquisition request received,
It determines the mark of the terminal where the user, finally according to the mark of terminal, the authentication question information and each alternative answer is believed
Breath is sent to the terminal and is shown.
For example, user is in register account number, preset authentication question information is " may I ask after your license plate three is? ", in advance
If the authentication question information corresponding correct option information be " 123 ", then server is sent by the account receiving
When service acquisition is requested, first determine that authentication question information is " may I ask after your license plate three is? ", then determine that its is corresponding correct
Answer information is " 123 ", regenerates three wrong answer information " ABC ", " 911 ", " XYZ ", finally " asks authentication question information
Ask that three are after your license plate? " and each alternative answer information " 123 ", " ABC ", " 911 ", " XYZ " are sent to where the user
Terminal be shown.
S102: the motion images that server receiving terminal is acquired and returned.
After terminal receives the authentication question information and multiple alternative answer informations of server transmission, then the certification can be shown
Problem information and multiple alternative answer informations, and acquire the motion images of user.
Motion images described in the embodiment of the present application refer to user's terminal acquired image when making certain movements, should
Motion images are for making server determine user by acting selected alternative answer information.Terminal is showing authentication question letter
When breath and alternative answer information, user can be prompted to make specified movement, to select alternative answer information.
Further, in order to further increase the reliability of authentication, terminal is used in addition to acquisition in the embodiment of the present application
Except the motion images at family, the biometric image of user can be also acquired, specifically, the motion images of terminal acquisition and biology are special
Levying image can be on same piece image, by the motion images comprising the user and biometric image in the embodiment of the present application
Piece image is known as realtime graphic.That is, terminal receives the authentication question information of server transmission and multiple alternative answers are believed
After breath, the realtime graphic including the biometric image comprising the user and motion images can be acquired, and return to server.Its
In, which includes but is not limited to facial image, fingerprint image, palmprint image, iris image of user etc..
It is illustrated so that biometric image is facial image as an example below.
Fig. 2 is the schematic diagram that terminal provided by the embodiments of the present application acquires realtime graphic, as shown in Fig. 2, terminal receives
After authentication question information and multiple alternative answer informations that server is sent, image acquisition interface can be shown, the Image Acquisition
It include non-acquired region, biometric image pickup area and multiple motion images pickup areas in interface, wherein non-acquired area
Domain color is fixed, and biometric image pickup area is not overlapped with multiple motion images pickup areas.
After authentication question information and multiple alternate informations are sent to terminal by step S101 by server, end can be indicated
Multiple alternative answer informations are shown in motion images pickup area different in Image Acquisition interface that terminal is then with one by end
The mode that an alternative answer information is shown in motion images pickup area shows the multiple alternative answer informations received
In each motion images pickup area.
In Fig. 2, motion images pickup area is located at the quadrangle at Image Acquisition interface, biological characteristic there are four being total to
Image is located at the centre at Image Acquisition interface.
Continue to use the example above and be illustrated, four in Fig. 2 motion images pickup area respectively shows alternative answer letter
" 123 ", " ABC ", " 911 ", " XYZ " are ceased, non-acquired region is fixed as grey (it is of course also possible to be other face such as black, white
Color).Terminal can prompt user that facial image is moved to biometric image acquisition zone when acquiring realtime graphic, by hand
Image is moved to the motion images acquisition zone where correct option information, and acquires user's by biometric image acquisition zone
Biometric image acquires the motion images of user by each motion images pickup area, wherein each motion images acquisition zone
As soon as the relatively small image in collected of domain is known as subgraph, each subgraph constitutes motion images, finally will be by acquiring
The image that the motion images and non-acquired region that biometric image, each subgraph arrived is constituted are constituted, is determined as collecting
Realtime graphic, and return to server.
S103: server determines the alternative answer information of user selection, as having selected answer to believe according to the motion images
Breath.
It, can be according to the action diagram after server receives the motion images (may include in realtime graphic) of terminal return
Picture determines the alternative answer information of user selection.Specifically, since the color of the hand of people is relatively fixed, server
The pixel of each subgraph in the motion images can be compared with the pixel of preset manpower color, be determined and manpower
The maximum subgraph of the pixel similarity of color, by alternative answer shown in the motion images pickup area where the subgraph
Information be determined as the user selection selected answer information.
It is illustrated in the realtime graphic that motion images include below, as shown in Figure 3.
Fig. 3 is that server provided by the embodiments of the present application determines that the schematic diagram for having selected answer information, server receive packet
After realtime graphic containing motion images, the subgraph in realtime graphic in each motion images pickup area can extract, and will mention
The pixel of each subgraph taken is compared with the pixel of preset manpower color, determines the pixel with preset manpower color
The maximum subgraph of similarity, finally by alternative answer shown in the motion images pickup area where the subgraph determined
Information be determined as the user selection selected answer information.
Assuming that hand images are moved to the motion images pickup area in the upper left corner by user in Fig. 2, that is, user uses
Hand has sheltered from the motion images pickup area in the upper left corner, and therefore, the collected realtime graphic of terminal is just as shown in figure 3, service
Each subgraph in the realtime graphic of device according to Fig.3, determine subgraph in the motion images pickup area in the upper left corner with
The pixel similarity of preset manpower color is maximum, accordingly, it is determined that alternative shown in the motion images pickup area in the upper left corner
Answer information " 123 " is to have selected answer information.
S104: server has selected answer information according to this, carries out authentication to the user.
Determined user selection selected answer information after, server then can determine the corresponding benchmark of authentication question information
Answer information, and selected answer information to compare with benchmark answer information this, it is no by verifying if the two is identical
Verifying is not passed through then.
If what server received is the realtime graphic comprising motion images and biometric image, server according to
Motion images have determined selected answer information after, can be using the biometric image in realtime graphic as biological characteristic figure to be certified
Picture, and the corresponding benchmark biometric image of the account is obtained, by biometric image to be certified and benchmark biometric image
It compares, both determining similarity is as the first comparing result, then determines the corresponding benchmark answer letter of authentication question information
Breath, has selected answer information to compare with benchmark answer information determining, obtains the second comparing result, if the first comparison knot
In fruit, the similarity of biometric image to be certified and benchmark biometric image is greater than preset threshold, and the second comparing result
In selected answer information identical as benchmark answer information, it is determined that the user by verifying, otherwise determine that the user does not pass through and test
Card.
Wherein, server can be obtained when obtaining the corresponding benchmark biometric image of the account from third party system
Benchmark biometric image.Specifically, user is in register account number, registrable its certificate information (e.g., ID card No., passport
Deng), server then can be according to the certificate information in the village account Zhong Bao, and obtaining from the third party systems such as public security net system should
The corresponding biological information image (e.g., facial image) of certificate information, the benchmark biological characteristic as the user got
Image.
By the above method as it can be seen that user is to by verifying, needing to be implemented specified movement (e.g., will be correct with hand
Motion images pickup area where alternative answer information shelters from), server then passes through motion images and determines user's selection
Answer, and judge whether the answer of its selection is correct, it is possible thereby to determine that " user " that is currently being authenticated is script etc.
De-authentication program or true user can effectively prevent de-authentication program to pass through the methods of exhaustion to answer authentication question.Into
One step, user also needs to acquire its biometric image (such as facial image), and server, can be true by biometric image
The user authenticated before settled is the user or other illegal users, thus can effectively prevent unauthorized person
The information such as the password by normal users carry out illegal operation, and therefore, identity identifying method provided by the present application can effectively improve
The safety of user.
Further, server is when determining the alternative answer of user's selection according to motion images, it is contemplated that if by every
The pixel of subgraph in a motion images pickup area is compared with the pixel of preset manpower color, then operation is complicated
Spend higher, will increase the pressure of server, and in certain scenes user may and it is inconvenient go to block motion images with hand adopt
Collect region, therefore, in the embodiment of the present application, terminal can specifically acquire several motion images when acquiring motion images, this is more
Width motion images are equivalent to be each frame image in one section of action video of the user of acquisition.The then reality that server receives
It is exactly several motion images that terminal returns on border.
It, can for each motion images pickup area in each motion images after server receives several motion images
The subgraph in each motion images in the motion images pickup area is compared, to determine the subgraph in the motion images pickup area
The variation degree of picture, finally, server determines alternative answer letter shown in the maximum motion images pickup area of variation degree
Breath, as the alternative answer information of user selection, as shown in Fig. 4 A~C, wherein Fig. 4 A~C is still comprising motion images
Be illustrated for the realtime graphic of biometric image, it will be understood by those skilled in the art that in realtime graphic
Biometric image will not influence according in the realtime graphic motion images determine selected answer information method,
That is, being determined if removing the biometric image in realtime graphic shown in Fig. 4 A~C according only to remaining motion images
The method for selecting answer information is also identical with following methods.
Fig. 4 A~C is the schematic diagram that another terminal provided by the embodiments of the present application acquires realtime graphic, in Figure 4 A, eventually
Hold the Image Acquisition interface shown identical as Image Acquisition interface shown in Fig. 2, positioned at four motion images acquisition zones of quadrangle
Domain shows " 123 ", " ABC ", " 911 ", " XYZ " this four alternative answer informations respectively, is located in the middle biometric image and adopts
Collection region is used to acquire the facial image of user, other regions in image acquisition region are exactly that color is fixed as the non-of grey and adopts
Collect region.
By Image Acquisition interface as shown in Figure 4 A, terminal can acquire several by way of recorded video and scheme in real time
Picture all includes biometric image and motion images in every width realtime graphic, and in figure 4b, user blocks the upper left corner with hand
Motion images pickup area, but do not shelter from completely also, in figure 4 c, user has sheltered from the movement in the upper left corner completely
Image acquisition region.
Assuming that several realtime graphics of such as Fig. 4 A~C are returned to server by terminal, server is then directed to the movement in the upper left corner
Image acquisition region compares the subgraph in the motion images pickup area in the upper left corner in these realtime graphics, to determine these
The variation degree of the motion images pickup area neutron image in the upper left corner in realtime graphic.Specifically, server can determine difference
The similarity of the subgraph in motion images pickup area in realtime graphic at same position (such as upper left corner), similarity are got over
Low, variation degree is higher.Similar, for the motion images pickup area in the upper right corner, the lower left corner, the lower right corner, server
It can determine its variation degree, last server is by alternative answer shown in the maximum motion images pickup area of variation degree
Information be determined as user selection selected answer information.
In Fig. 4 A~C, due to user block be the upper left corner motion images pickup area, other three are dynamic
The variation degree for making image acquisition region is very low, substantially unchanged (being the background of user), and the motion images in the upper left corner are adopted
Collection region then experienced the variation never blocked, it is clear that its variation degree is maximum, and therefore, server is by the upper left corner
Motion images pickup area shown in alternative answer information " 123 " be determined as user's selection selected answer information.
The method for having selected answer information by above-mentioned determination, server need to only compare several motion images, and (motion images can
Included in realtime graphic) in subgraph in motion images pickup area at same position, that is, can determine that and selected answer,
Computational complexity can be reduced, the pressure of server is reduced, moreover, user need not also be gone to block motion images pickup area with hand,
Other articles can be used to block, such as blocked with book, mobile phone and other items, also improve the convenience of user.
It should be noted that using the motion images pickup area at same position in several motion images of above-mentioned comparison
When answer information has been selected in method determination, each action diagram of the terminal in a verification process, in the Image Acquisition interface of displaying
As the relative position of pickup area and biometric image pickup area is fixed and invariable, each motion images pickup area institute
The alternative answer information shown is also fixed and invariable.And in different verification process, the Image Acquisition interface of terminal display
In each motion images pickup area and the relative position of biometric image pickup area can change.
The above are identity authentication methods provided by the embodiments of the present application, are based on identical thinking, present invention also provides
The device of authentication, as shown in Figure 5, Figure 6.
Fig. 5 is a kind of apparatus structure schematic diagram of authentication provided by the embodiments of the present application, is specifically included:
Sending module 501, for sending authentication question information and multiple alternative answer informations to terminal;
Receiving module 502, the motion images of user for acquiring and returning for receiving the terminal;
Determining module 503, for determining the alternative answer information of user's selection according to the motion images, as
Answer information is selected;
Authentication module 504 carries out authentication to the user for having selected answer information according to described.
The receiving module 502 is specifically used for, and receives the realtime graphic that the terminal is acquired and returned, wherein the reality
When image in include the user biometric image and motion images;
The authentication module 504 is specifically used for, according to the biometric image and it is described selected answer information, to described
User carries out authentication.
The biometric image includes the facial image of the user.
The sending module 501 is specifically used for, and sends authentication question information and multiple alternate informations to terminal, and indicate
The terminal shows the multiple alternative answer information in motion images pickup area different in Image Acquisition interface,
In, for acquiring motion images, each motion images pickup area does not overlap the motion images pickup area;
The receiving module 502 is specifically used for, and receives several motion images of user that the terminal is acquired and returned;
The determining module 503 is specifically used for, and for each motion images pickup area, compares several described motion images
In subgraph in the motion images pickup area, determine the variation degree of the subgraph in the motion images pickup area, really
Alternative answer information shown in the maximum motion images pickup area of variation degree is determined, as alternatively answering for user selection
Case information.
The authentication module 504 is specifically used for, using the biometric image as biometric image to be certified, from
The benchmark biometric image of the user is obtained in three method, systems, compares the biometric image to be certified and the benchmark
Biometric image obtains the first comparing result, determines the corresponding benchmark answer information of the authentication question information, the benchmark
Answer information is at least one of the multiple alternative answer, and comparison is described to have selected answer information and the benchmark answer to believe
Breath obtains the second comparing result, according to first comparing result and second comparing result, carries out identity to the user
Certification.
Specifically, above-mentioned device as shown in Figure 5 can be located in server.
Fig. 6 is the apparatus structure schematic diagram of another authentication provided by the embodiments of the present application, is specifically included:
Display module 601 is received, for receiving and showing authentication question information and multiple alternatively answer that server is sent
Case information;
Acquisition module 602, for acquiring the motion images of user;
Sending module 603, the motion images for that will acquire return to the server, make the server according to described dynamic
The alternative answer information of user's selection is determined as image, and according to the alternative answer information of user selection to the use
Family carries out authentication.
The acquisition module 602 is specifically used for, and acquires the realtime graphic of user, wherein includes institute in the realtime graphic
State the biometric image and motion images of user.
The reception display module 601, for receiving the authentication question information and multiple alternative answers of server transmission
Information shows image acquisition interface, include in described image acquisition interface non-acquired region, biometric image pickup area and
Multiple motion images pickup areas, wherein the non-acquired field color is fixed, and biometric image pickup area is moved with multiple
It is not overlapped as image acquisition region;Multiple alternative answer informations are shown in each motion images pickup area, wherein one
An alternative answer information is shown in motion images pickup area;
The acquisition module 602 is specifically used for, and the motion images of the user are acquired by each motion images pickup area,
The biometric image of the user is acquired by the biometric image pickup area, it will be by collected biological characteristic figure
The image that picture, each motion images and non-acquired region are constituted, is determined as collected realtime graphic.
The acquisition module 602 is specifically used for, and acquires several motion images.
The biometric image includes the facial image of the user.
Specifically, above-mentioned device as shown in FIG. 6 can be located in server.
The embodiment of the present application provides a kind of identity authentication method and device, and this method server sends certification to terminal and asks
Topic and multiple alternative answers, the motion images of terminal acquisition user simultaneously return to server, and server is determined according to motion images should
The alternative answer of user's selection, as having selected answer, and according to having selected answer to carry out authentication to the user.In the above method
In, server determines the answer that user selects by motion images, and judges whether the answer of its selection is correct, can determine and work as
Whether the preceding certification request side authenticated is the de-authentication program such as script, and de-authentication program can be effectively prevent to pass through exhaustion
The methods of answer authentication question, thus can effectively improve the safety of user.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.