A kind of finger-mark check method and system based on browser
Technical field
The present invention relates to Internet technical field more particularly to a kind of finger-mark check method and system based on browser.
Background technique
With the rapid development of Internet technology, biological identification technology is more and more applied in various products, for example,
Fingerprint convenient to use and with uniqueness, is widely used in various subscriber authentications or security system.
In general, acquisition and verifying, the overwhelming majority based on the user fingerprints under fingerprint identification technology are all based on C/S model
(Client/Server mode or Client/Server pattern) needs to install special client at the terminal;For clear
It lookes at for the client of device terminal (i.e. based on being developed under B/S mode or Browser/Server mode or Browser/Server Mode
Product out) because not needing to install any special software, as long as there have the computer that can be surfed the Internet to use to be excellent
Gesture, therefore the development mode under the mode receives the favor of more and more clients.
But under B/S mode, browser terminal and corresponding server need to obtain user's input fingerprint and
Corresponding readable code, solution in the prior art include Java Applet technology and ActiveX technology, preceding
Person is because loading velocity is slow, can only support the incompatible problem of the particular version of certain particular browsers and part, Wu Fashi
Arbitrary browser terminal is realized now;The latter then only supports IE browser, and other browsers are not supported then, and there are compatibility
The problem of difference.
That is, resulting in because of the limitation of each browser and carrying out cross-platform fingerprint on browser terminal and adopt
Collection or fingerprint login cannot achieve.
Summary of the invention
Based on this, stepped on to carry out cross-platform fingerprint collecting or fingerprint on browser terminal in the above-mentioned traditional technology of solution
The technical issues of record cannot achieve, spy propose a kind of finger-mark check method based on browser.
A kind of finger-mark check method based on browser, comprising:
Web server receives the visit of the web access address for the direction finger-mark check state displayed page that target terminal is sent
It asks request, finger-mark check state displayed page corresponding with the access request is returned into the target terminal, the target
Finger-mark check state displayed page described in terminal display;
It include the script file of webservice control described in asynchronous access on the finger-mark check state displayed page,
It also include the web access address for being directed toward the webservice control in the script file;
Finger-mark check state displayed page asynchronously accesses institute by executing the script file on the target terminal
State the web access address of webservice control;
The target terminal grabs fingerprint acquisition device corresponding with the target terminal by webservice control and adopts
The fingerprint logging data of collection is simultaneously shown in the finger-mark check state displayed page.
Optionally, in one embodiment, the target terminal is whole by the crawl of webservice control and the target
Before the fingerprint logging data for holding corresponding fingerprint acquisition device acquisition further include:
The target terminal installs webservice control, and Access- is arranged in the webservice control
Control-Allow-Origin;
The interface function for calling the webservice control is encapsulated in finger-mark check state and shown by the target terminal
In the script file of webservice control described in the asynchronous access for including on the page;
The target terminal grabs fingerprint acquisition device corresponding with the target terminal by webservice control and adopts
The fingerprint logging data of collection further include:
The target terminal calls the fingerprint collecting of the webservice control to connect by the Ajax of JavaScript
Mouth function, judges whether fingerprint acquisition device corresponding with the target terminal collects fingerprint, if so, passing through the fingerprint
The interface function of acquisition obtains fingerprint logging data corresponding with the collected fingerprint.
Optionally, in one embodiment, the interface function by the fingerprint collecting is obtained collects with described
The corresponding fingerprint logging data of fingerprint further include:
The fingerprint typing operation of fingerprint acquisition device detection user's input, obtains corresponding with the fingerprint typing operation
Fingerprint character code information;
The fingerprint character code information coding at base64 character string and is returned to the mesh by the fingerprint acquisition device
Terminal is marked, the target terminal is temporarily stored the fingerprint logging data;
The target terminal is by the interface function of the fingerprint collecting of the webservice control from the fingerprint collecting
Base64 character string after obtaining coding in device as fingerprint logging data and is uploaded to web server;
The web server by the fingerprint character code information coding as fingerprint logging data at base64 character
String saves into the fingerprint template table of the web server database and is uploaded to fingerprint server simultaneously.
Optionally, in one embodiment, the web server is by the fingerprint character code as fingerprint logging data
Information coding at base64 character string be uploaded to after fingerprint server further include:
The fingerprint logging data is stored in preset fingerprint sample by the web server
In database.
Optionally, in one embodiment, the web server is by the fingerprint character code as fingerprint logging data
Information coding at base64 character string be uploaded to after fingerprint server further include:
The fingerprint logging data is passed through into calling institute with the second sample fingerprint data pre-recorded in the web server
The fingerprint comparison interface function for stating fingerprint server is compared, and generates fingerprint authentication result according to comparison result;
The fingerprint authentication result is returned to the target terminal by the web server, and the target terminal is according to connecing
The fingerprint authentication result that receives and showing in the finger-mark check state is shown on interface.
Optionally, in one embodiment, the method also includes:
The target terminal is generated corresponding with the base64 character string grabbed by the Canvas paintbrush of HTML5
Fingerprint image, and show in the finger-mark check state displayed page.
In addition, being logged in solve to carry out cross-platform fingerprint collecting or fingerprint on browser terminal in above-mentioned traditional technology
The technical issues of cannot achieve, spy propose a kind of finger-mark check system based on browser.
A kind of finger-mark check system based on browser, including target terminal, web server and with the target terminal
Connected fingerprint acquisition device, in which:
The web server is used to receive the web access of the direction finger-mark check state displayed page of target terminal transmission
Finger-mark check state displayed page corresponding with the access request is returned to the target terminal by the access request of address;
The target terminal is for showing the finger-mark check state displayed page, the finger-mark check state displayed page
On include webservice control described in asynchronous access script file, also include described in direction in the script file
The web access address of webservice control;
The target terminal is also used to the finger-mark check state displayed page on the target terminal and passes through the execution foot
This document asynchronously accesses the web access address of the webservice control;
The target terminal is also used to grab fingerprint collecting corresponding with the target terminal by webservice control
The fingerprint logging data of device acquisition is simultaneously shown in the finger-mark check state displayed page.
Optionally, in one embodiment, the target terminal is also used to install webservice control, and described
Access-Control-Allow-Origin is set in webservice control;Connecing for the webservice control will be called
Mouth function is encapsulated in the script file of webservice control described in the asynchronous access on finger-mark check state displayed page included
In;The fingerprint logging data of fingerprint acquisition device acquisition corresponding with the target terminal is grabbed also by webservice control
It include: the interface function that the fingerprint collecting of the webservice control is called by the Ajax of JavaScript, judgement and institute
State whether the corresponding fingerprint acquisition device of target terminal collects fingerprint, if so, passing through the interface function of the fingerprint collecting
Obtain fingerprint logging data corresponding with the collected fingerprint.
Optionally, in one embodiment, the fingerprint acquisition device is also used to detect the fingerprint typing behaviour of user's input
Make, obtains fingerprint character code information corresponding with the fingerprint typing operation;By the fingerprint character code information coding at
Base64 character string simultaneously returns to the target terminal, and the target terminal is temporarily stored the fingerprint logging data;
The target terminal is also used to through the interface function of the fingerprint collecting of the webservice control from the finger
Base64 character string after obtaining coding in line acquisition device as fingerprint logging data and is uploaded to web server;
The web server be also used to by the fingerprint character code information coding as fingerprint logging data at
Base64 character string saves into the fingerprint template table of the web server database and is uploaded to fingerprint server simultaneously.
Optionally, in one embodiment, the web server is also used to using the fingerprint logging data as the first sample
This finger print data is stored in preset sample fingerprint database.
Optionally, in one embodiment, the web server is also used to the fingerprint in the web server
Logging data is with the second sample fingerprint data pre-recorded by calling the fingerprint comparison interface function of the fingerprint server to carry out
It compares, and fingerprint authentication result is generated according to comparison result;The fingerprint authentication result is returned into the target terminal, it is described
Target terminal is shown according to the fingerprint authentication result received and on finger-mark check state displaying interface.
Optionally, in one embodiment, the target terminal is also used to generate and grab by the Canvas paintbrush of HTML5
The corresponding fingerprint image of the base64 character string got, and show in the finger-mark check state displayed page.
Implement the embodiment of the present invention, will have the following beneficial effects:
After the above-mentioned finger-mark check method and system based on browser, web server receives target terminal hair
The access request of the web access address of the direction finger-mark check state displayed page sent, will finger corresponding with the access request
Line verification state displayed page returns to the target terminal, and the target terminal shows that the finger-mark check state shows page
Face;It include the script file of webservice control described in asynchronous access on the finger-mark check state displayed page, it is described
It also include the web access address for being directed toward the webservice control in script file;The fingerprint school on the target terminal
Test the web access address that state displayed page asynchronously accesses the webservice control by executing the script file;
The target terminal grabs the fingerprint of fingerprint acquisition device acquisition corresponding with the target terminal by webservice control
Logging data is simultaneously shown in the finger-mark check state displayed page.That is, using the above-mentioned finger based on browser
After line method of calibration and system, the interface function of webservice control can be called to acquire by the Ajax of JavaScript
The finger print information of user's input is no longer influenced by the limitation of browser, realizes not compared to OCX used in old scheme
With fingerprint and fingerprint login is acquired in browser, the applicability that fingerprint collecting and fingerprint based on browser log in is improved;
Meanwhile compared to ActiveX used in old scheme, the safety of system and data is improved.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Wherein:
Fig. 1 is a kind of composition schematic diagram of the finger-mark check system based on browser in one embodiment;
Fig. 2 is a kind of flow diagram of the finger-mark check method based on browser in one embodiment;
Fig. 3 is a kind of interface schematic diagram of the sample fingerprint typing page in one embodiment;
Fig. 4 is a kind of interface schematic diagram of fingerprint login page in one embodiment.
Specific embodiment
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, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Fingerprint collecting or fingerprint login to carry out cross-platform in the above-mentioned traditional technology of solution on browser terminal can not
The technical issues of realization, in the present embodiment, spy, propose a kind of finger-mark check system based on browser, specifically, can be such as
Shown in Fig. 1, the above-mentioned finger-mark check system based on browser includes web server 10, the target terminal for being mounted with browser
20 and typing fingerprint fingerprint acquisition device 30.In the present embodiment, it is mounted with that webservice is controlled in web server
Part is mounted with that Secuirty ISSOnline Service is serviced, so that web server can call webservice
The interface function of control.Further, in target terminal, there are also installed corresponding webservice controls, are mounted with
Secuirty ISSOnline Service service, for example, user can download webservice control manually by browser
Exe file and installed, after the installation is complete, target terminal directly can call webservice to control in a browser
The correlation function of part.
It should be noted that in the present embodiment, establishing communication link between fingerprint acquisition device 30 and target terminal 20
It connects, that is to say, that can carry out data transmission therebetween, for example, fingerprint acquisition device 30 passes collected finger print data
Give target terminal.In the present embodiment, fingerprint acquisition device 30, which can be, is built in target terminal, for example, being mounted on pen
Remember the fingerprint sensor on this computer or be mounted on smart phone, the fingerprint sensor on tablet computer, can also be and pass through
The fingerprint acquisition instrument of communication connection is established between wired mode or wireless mode (WIFI, bluetooth etc.) and target terminal.
Specifically, as shown in Figure 1, the above-mentioned finger-mark check method based on browser includes the following steps:
Step S102:web server receives the web access for the direction finger-mark check state displayed page that target terminal is sent
Finger-mark check state displayed page corresponding with the access request is returned to the target terminal by the access request of address,
The target terminal shows the finger-mark check state displayed page.
User be manually entered in one column of address by installation browser on a target terminal the address for needing to access or
Person clicks the link for being directed toward access address, can send an access request to web server corresponding with access address.At this
In embodiment, what user inputted on a target terminal is directed to the access of the web access address of finger-mark check state displayed page
Request, target terminal are uploaded to corresponding web server after detecting the access request, by the access request.It needs
Bright, in the present embodiment, web server refers exclusively to the corresponding web server of finger-mark check state displayed page.
In specific implementation, web server is in the direction finger-mark check state displayed page for receiving target terminal transmission
After the access request of web access address, according to access request, obtains finger-mark check state corresponding with the access request and show
The page simultaneously returns to target terminal, target terminal receive with after finger-mark check state displayed page, in target terminal
It shows and shows that the finger-mark check state shows interface on interface.
It should be noted that in the present embodiment, the finger-mark check state that web server returns to target terminal shows page
Face is script file corresponding with the finger-mark check state displayed page, and target terminal leads to after receiving the script file
It crosses browser and executes the script file to show above-mentioned finger-mark check state displayed page.
Further, in the present embodiment, above-mentioned finger-mark check state displayed page can be corresponding with finger-mark check
The sample fingerprint typing page, i.e. user can be by the page typing finger print informations, for example, acquisition fingerprint corresponding with User ID
Information;It can also be fingerprint login page corresponding with finger-mark check.
Optionally, in the present embodiment, optional step further include: the target terminal is drawn by the Canvas of HTML5
Pen generates corresponding fingerprint image, and shows in the finger-mark check state displayed page.
Specifically, for example can pass through HTML5's when finger-mark check state displayed page is the sample fingerprint typing page
Canvas paintbrush generates fingerprint image corresponding with single fingerprint or palm;Show that interface is stepped on for fingerprint in finger-mark check state
When recording the page, corresponding fingerprint image can be generated by the Canvas paintbrush of HTML5, that is to say, that user can be by right
The visual displayed page of fingerprint image completes the collection process of fingerprint.
As shown in Figure 3 and Figure 4, Fig. 3 illustrates the showing interface of the sample fingerprint typing page in a specific embodiment
Scheme, is that display area corresponding with the fingerprint image of typing illustrates in Fig. 4 shown in the region shown in number P1
In a specific embodiment in fingerprint login page, region shown in number P2 shows the fingerprint image pair with typing
The display area answered.Further, region shown in the number Q in Fig. 3 is the feelings in the finger print data of the multiple fingers of typing
Under condition, the progress bar of the fingerprint collecting corresponding with multiple fingers generated using Canvas paintbrush is acquired successful finger and then will
The display area of corresponding finger becomes green.
Step S104: finger-mark check state displayed page is asynchronous by executing the script file on the target terminal
Ground accesses the web access address of the webservice control.
In specific embodiment, target terminal passes through perform script document presentation finger-mark check state displayed page, that is,
It says, the finger-mark check state displayed page that web server returns to target terminal, which is contained, shows page with the finger-mark check state
The corresponding script file in face, target terminal refer to after receiving script file corresponding with finger-mark check state displayed page
Line verifies state displayed page by executing above-mentioned script file to show finger-mark check state displayed page.
It should be noted that returning to the corresponding foot of finger-mark check state displayed page of target terminal in web server
In this document, the control of webservice described in the asynchronous access for enabling target terminal successful access webservice control is further comprised
The script file of part, also, it is further, it also include the web access for being directed toward the webservice control in script file
Address, therefore, the web access address that target terminal passes through the asynchronous access webservice control of perform script file.
Step S106: the target terminal grabs fingerprint corresponding with the target terminal by webservice control and adopts
The fingerprint logging data of acquisition means acquisition is simultaneously shown in the finger-mark check state displayed page.
In the present embodiment, target terminal is illustrating finger-mark check state displaying page by executing corresponding script file
After face, user needs to input corresponding finger print information by above-mentioned displayed page.In the present embodiment, user can by
Above-mentioned finger-mark check status page clicks control button corresponding with typing fingerprint is started, and sends a fingerprint to target terminal and grabs
Instruction fetch, that is to say, that target terminal executes phase after receiving the fingerprint fetching instruction that user is inputted by target terminal
The operation for the fingerprint crawl answered.In the present embodiment, the operation of target terminal crawl fingerprint, can be fingerprint input by user
Fetching instruction triggering, it is also possible to target terminal automatic trigger after successful presentation finger-mark check state displayed page.
Specifically, in the present embodiment, target terminal passes through the webservice control installed at the terminal, crawl and mesh
Mark the fingerprint logging data of the corresponding fingerprint acquisition device acquisition of terminal.
It should be noted that because web server or target terminal call directly the interface letter of webservice control
Number belongs to cross-domain access, and this access module is forbidden by origin policy, in order to make to access webservice control
The access of interface function is normally carried out, and in the present embodiment, the CORS (cross-domain resource is shared) of HTML5 can be used,
Access-Control-Allow-Origin is set in webservice control, after being arranged successfully, so that it may allow
JavaScript carries out cross-domain access by Ajax, i.e. permission JavaScript calls connecing for webservice control by Ajax
Mouth function.
Further, in order to open up target terminal executing corresponding with finger-mark check state displayed page script file
On the finger-mark check state displayed page shown, target terminal can also get corresponding fingerprint logging data, and this requires targets
In terminal execution script file, corresponding setting parameter is also contained.Specifically, the interface that webservice control will be called
Function is encapsulated in the script file for asynchronously accessing web server for including on finger-mark check state displayed page, that is,
It says, target terminal is when executing corresponding script file, the also interface function of accessible above-mentioned webservice control.It needs
Illustrate, in the present embodiment, on a target terminal, in order to make target terminal show finger-mark check state displayed page
During, relevant operation corresponding with webservice control is called in energy successful execution script file, on a target terminal
In the browser of installation, other than webservice control to be installed, it is also necessary in the webservice control of installation into
The corresponding Access-Control-Allow-Origin setting of row.
That is, being respectively mounted webservice control, and corresponding in web server and target terminal
Corresponding Access-Control-Allow-Origin setting is carried out in webservice control, to allow to access
The web access address of webservice control.
After the setting for being allowed cross-domain access accordingly, so that it may be grabbed by webservice control and target
The fingerprint logging data of the corresponding fingerprint acquisition device acquisition of terminal.It should be noted that in the present embodiment, fingerprint typing number
According to can be what user was inputted by the fingerprint acquisition device being connected with target terminal, specifically, fingerprint acquisition device can be
Installation fingerprint sensor on a target terminal, is also possible to by way of wired or wireless communication connection and target terminal
Establish the fingerprint acquisition device of communication connection.Fingerprint acquisition device operates it in the fingerprint typing for detecting user's input fingerprint
Afterwards, operating parameter corresponding with fingerprint typing operation, the i.e. corresponding finger print data of fingerprint of user's input are obtained.
It should be noted that in the present embodiment, above-mentioned finger print data can be fingerprint image, it can also be with fingerprint image
Characteristic information can also be fingerprint character code information corresponding with fingerprint image, in the present embodiment, can also be by fingerprint characteristic
Code information coding is at base64 character string, the fingerprint logging data that is grabbed using base64 character string as web server.
Specifically, the fingerprint typing operation of fingerprint acquisition device detection user's input, obtains and the fingerprint typing
Operate corresponding fingerprint character code information;The fingerprint acquisition device is by the fingerprint character code information coding at base64 character
String returns to the target terminal, and the target terminal is temporarily stored the fingerprint logging data;Institute's target terminal is logical
The interface function of the fingerprint collecting of the webservice control is crossed after obtaining coding in the fingerprint acquisition device
Base64 character string is as fingerprint logging data and uploads to web server, and web server is by the finger as fingerprint logging data
Line condition code information coding at base64 character string save into the fingerprint template table of the web server database and simultaneously
It is uploaded to fingerprint server.
In an alternative embodiment, target terminal grabs finger corresponding with target terminal by webservice control
During the fingerprint logging data of line acquisition device acquisition, the Ajax calling by JavaScript can also be
Corresponding interface function corresponding with fingerprint collecting in webservice control, also, by the return value of interface function, it determines
Success whether is obtained with fingerprint logging data, i.e., whether successful acquisition is to finger for the fingerprint acquisition device that is connected with target terminal of judgement
Line, if acquiring successfully, the return value of above-mentioned interface function corresponding with fingerprint collecting is fingerprint logging data, that is, is passed through
The interface function of the fingerprint collecting of webservice control obtains the corresponding fingerprint logging data of collected fingerprint.
Further, in the present embodiment, target terminal is after grabbing fingerprint logging data, in the clear of target terminal
It lookes on device interface in the finger-mark check state displayed page shown and shows the fingerprint logging data grabbed.
Optionally, in the present embodiment, the finger-mark check state shown on the browser interface of above-mentioned target terminal is shown
The process that the fingerprint logging data grabbed is shown in the page can be the Canvas paintbrush by HTML5, generate and grab
The corresponding fingerprint image of fingerprint logging data, in the present embodiment, fingerprint logging data be base64 character string process
In, fingerprint image corresponding with the base64 character string can be generated by the Canvas paintbrush of HTML5, and Canvas is drawn
The fingerprint image that pen generates is shown in finger-mark check state displayed page.
In a specific embodiment, area shown in the region as shown in the number P1 of Fig. 3 and the number P2 in Fig. 4
Shown in domain, in P1 and P2, illustrate generated according to Canvas paintbrush with fingerprint logging data (the base64 word that grabs
Symbol string) corresponding fingerprint image, that is to say, that according to the condition code information coding of the collected fingerprint image of fingerprint acquisition device
At base64 character string generate fingerprint image corresponding with base64 character string, it is straight that family can be used by Canvas paintbrush
The case where checking fingerprint typing of sight.
Optionally, after grabbing fingerprint logging data, the fingerprint logging data grabbed is handled, also,
In the present embodiment, different processing is carried out respectively according to different application scenarios.Specifically, can be according to finger-mark check state
The particular content of displayed page determines the concrete operations of the processing carried out.For example, being fingerprint in finger-mark check state displayed page
When the sample typing page, the fingerprint logging data grabbed is stored in preset sample fingerprint as first sample finger print data
In database, also, what is saved together with first sample finger print data further includes User ID, that is to say, that User ID and first
It is corresponding between sample fingerprint data.
Optionally, in the present embodiment, the quantity of the corresponding first sample finger print data of the same user can more than one
It is a, for example, the corresponding first sample finger print data of 10 fingers of both hands can be stored in preset fingerprint sample by user
In database, and finger is numbered and is saved in preset sample fingerprint database together with corresponding first sample finger print data
In.
Further, in the present embodiment, before saving first sample finger print data, it is also necessary to for same finger
Fingerprint carry out multi collect, for example, it is desired to successively carry out 3 fingerprint collectings process, fingerprint collecting three times complete and then
According to collected fingerprint character code information three times, webservice interface is called by the Ajax of JavaScript, it will three times
Collected fingerprint character code information synthesizes a new fingerprint character code information, that is to say, that the new fingerprint characteristic of synthesis
Code information will be saved in preset sample fingerprint database as final first sample finger print data;Further, in web
In the case that the fingerprint logging data of server crawl is base64 character string, with the new fingerprint character code information pair after synthesis
The base64 character string answered will be saved in preset sample fingerprint database as first sample finger print data.
When finger-mark check state displayed page is fingerprint login page, by the fingerprint logging data that grabs with pre-record
Second sample fingerprint data are compared.In the present embodiment, the second sample fingerprint data pre-recorded are that user is referring in advance
In grain pattern this typing page typing and save it is corresponding with User ID and be saved in preset sample fingerprint database
Fingerprint logging data or first sample finger print data.During carrying out fingerprint login, according to User ID, in preset fingerprint
The second sample fingerprint data corresponding with the User ID are searched in sample database, and by the second sample fingerprint data and are grabbed
To fingerprint logging data be compared.Further, comparison result is fingerprint authentication result, that is to say, that if fingerprint ratio
To success, then fingerprint authentication success, i.e. the authentication success of user are determined.In the present embodiment, web server is by fingerprint inspection
Card result returns to target terminal, and target terminal is showing boundary in finger-mark check state after receiving fingerprint authentication result
The page corresponding with fingerprint authentication result is shown on face.For example, web server will number corresponding with User ID if being proved to be successful
According to target terminal is returned to, target terminal receives and shows related data corresponding with User ID accordingly.
In addition, being logged in solve to carry out cross-platform fingerprint collecting or fingerprint on browser terminal in above-mentioned traditional technology
The technical issues of cannot achieve, in one embodiment, as shown in Figure 1, the fingerprint verifying device based on browser proposed
Including including target terminal 20, web server 10 and the fingerprint acquisition device 30 being connected with the target terminal 20, in which:
The web server 10 is used to receive the web of the direction finger-mark check state displayed page of the transmission of target terminal 20
Finger-mark check state displayed page corresponding with the access request is returned to the target end by the access request of access address
End 20;
For the target terminal 20 for showing the finger-mark check state displayed page, the finger-mark check state shows page
Include the script file of webservice control described in asynchronous access on face, also includes described in direction in the script file
The web access address of webservice control;
The target terminal 20 is also used to the finger-mark check state displayed page on the target terminal 20 and passes through execution institute
State the web access address that script file asynchronously accesses the webservice control;
The target terminal 20 is also used to grab fingerprint corresponding with the target terminal 20 by webservice control
The fingerprint logging data and displaying that acquisition device 30 acquires are in the finger-mark check state displayed page.
Optionally, in one embodiment, the target terminal 20 is also used to install webservice control, and described
Access-Control-Allow-Origin is set in webservice control;Connecing for the webservice control will be called
Mouth function is encapsulated in the script file of webservice control described in the asynchronous access on finger-mark check state displayed page included
In;The fingerprint typing number that fingerprint acquisition device 30 corresponding with the target terminal 20 acquires is grabbed by webservice control
According to further include: the interface function of the fingerprint collecting of the webservice control is called by the Ajax of JavaScript, is judged
Whether fingerprint acquisition device 30 corresponding with the target terminal 20 collects fingerprint, if so, passing through the fingerprint collecting
Interface function obtains fingerprint logging data corresponding with the collected fingerprint.
Optionally, in one embodiment, fingerprint acquisition device 30 is also used to detect the fingerprint typing operation of user's input,
Obtain fingerprint character code information corresponding with the fingerprint typing operation;By the fingerprint character code information coding at base64 word
Symbol goes here and there and returns to the target terminal 20, and the target terminal 20 is temporarily stored the fingerprint logging data;
The target terminal 20 is also used to through the interface function of the fingerprint collecting of the webservice control from described
Base64 character string after obtaining coding in fingerprint acquisition device 30 as fingerprint logging data and is uploaded to web server 10;
The web server 10 be also used to by the fingerprint character code information coding as fingerprint logging data at
Base64 character string saves into the fingerprint template table of 10 database of web server and is uploaded to fingerprint server simultaneously.
Optionally, in one embodiment, web server 10 is also used to using the fingerprint logging data as first sample
Finger print data is stored in preset sample fingerprint database.
Optionally, in one embodiment, web server 10 is also used to the fingerprint in the web server 10
Logging data is with the second sample fingerprint data pre-recorded by calling the fingerprint comparison interface function of the fingerprint server to carry out
It compares, and fingerprint authentication result is generated according to comparison result;The fingerprint authentication result is returned into the target terminal 20, institute
Target terminal 20 is stated to be shown according to the fingerprint authentication result received and on finger-mark check state displaying interface.
Optionally, in one embodiment, target terminal 20 is also used to generate and grab by the Canvas paintbrush of HTML5
The corresponding fingerprint image of the base64 character string arrived, and show in the finger-mark check state displayed page.
Implement the embodiment of the present invention, will have the following beneficial effects:
After the above-mentioned finger-mark check method and system based on browser, web server receives target terminal 20
The access request of the web access address of the direction finger-mark check state displayed page of transmission, will be corresponding with the access request
Finger-mark check state displayed page returns to the target terminal 20, and the target terminal 20 shows the finger-mark check state exhibition
Show the page;It include the script file of webservice control described in asynchronous access on the finger-mark check state displayed page,
It also include the web access address for being directed toward the webservice control in the script file;On the target terminal 20
Finger-mark check state displayed page asynchronously accesses the web access of the webservice control by executing the script file
Address;The target terminal 20 grabs fingerprint acquisition device corresponding with the target terminal 20 by webservice control and adopts
The fingerprint logging data of collection is simultaneously shown in the finger-mark check state displayed page.That is, using above-mentioned based on clear
It lookes at after the finger-mark check method and system of device, the interface of webservice control can be called by the Ajax of JavaScript
The finger print information of function acquisition user's input is no longer influenced by the limitation of browser compared to OCX used in old scheme, real
Show and acquired fingerprint and fingerprint login in different browsers, has improved what fingerprint collecting and fingerprint based on browser logged in
Applicability;Meanwhile compared to ActiveX used in old scheme, the safety of system and data is improved.
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.