A kind of finger-mark check method and system based on browser
Technical field
A kind of the present invention relates to Internet technical field, more particularly to finger-mark check method and system based on browser.
Background technology
With developing rapidly for Internet technology, biological identification technology is more and more applied in various products, for example,
Convenient use and the fingerprint with uniqueness, are widely used in various subscriber authentications or security system.
In general, the collection and checking based on the user fingerprints under fingerprint identification technology, the overwhelming majority are all based on C/S model
(Client/Server patterns, or Client/Server pattern), that is, need to install special client in terminal;For clear
Look at
Product out) because any special software need not be installed, as long as there is a computer that can be surfed the Net excellent with what is used
Development mode under gesture, therefore the pattern receives the favor of increasing client.
But, under B/S patterns, browser terminal and corresponding server need to obtain the fingerprint of user input and
Corresponding readable code, solution in the prior art include Java Applet technologies and ActiveX technologies, front
Person is because loading velocity is slow, can only support the particular version of some particular browsers and the problem that part is incompatible, it is impossible to real
Arbitrary browser terminal is realized now;The latter then only supports IE browser, and other browsers are not then supported, there is compatibility
Poor problem.
That is, because the restriction of each browser, result in carries out cross-platform fingerprint on browser terminal and adopts
Collection or fingerprint are logged in cannot be realized.
The content of the invention
Based on this, it is to solve in above-mentioned conventional art to carry out cross-platform fingerprint collecting on browser terminal or fingerprint is stepped on
The technical problem that record cannot be realized, spy propose a kind of finger-mark check method based on browser.
A kind of finger-mark check method based on browser, including:
Web server receives the visit of the web reference address of the sensing finger-mark check state displayed page that target terminal sends
Request is asked, finger-mark check state displayed page corresponding with the access request is returned to into the target terminal, the target
Finger-mark check state displayed page described in terminal display;
Include the script file of webservice controls described in asynchronous access on the finger-mark check state displayed page,
Also include the web reference address for pointing to the webservice controls in the script file;
On the target terminal, finger-mark check state displayed page asynchronously accesses institute by performing the script file
State the web reference address of webservice controls;
The target terminal captures fingerprint acquisition device corresponding with the target terminal by webservice controls and adopts
The fingerprint logging data of collection is simultaneously illustrated in the finger-mark check state displayed page.
Optionally, in one embodiment, the target terminal is captured and the target end by webservice controls
Also include before the fingerprint logging data for holding corresponding fingerprint acquisition device collection:
The target terminal installs webservice controls, and in the webservice controls arranges Access-
Control-Allow-Origin;
The interface function for calling the webservice controls is encapsulated in the displaying of finger-mark check state by the target terminal
In the script file of webservice controls described in the asynchronous access included on the page;
The target terminal captures fingerprint acquisition device corresponding with the target terminal by webservice controls and adopts
The fingerprint logging data of collection also includes:
The target terminal calls connecing for the fingerprint collecting of the webservice controls by the Ajax of JavaScript
Mouth function, judges whether fingerprint acquisition device corresponding with the target terminal collects fingerprint, if so, then passes through the fingerprint
The interface function of collection obtains fingerprint logging data corresponding with the fingerprint for collecting.
Optionally, in one embodiment, described acquisition by the interface function of the fingerprint collecting is collected with described
The corresponding fingerprint logging data of fingerprint also include:
The fingerprint typing operation of the fingerprint acquisition device detection user input, obtains corresponding with the fingerprint typing operation
Fingerprint character code information;
The fingerprint character code information is encoded into base64 character strings and returns to the mesh by the fingerprint acquisition device
The fingerprint logging data is carried out interim storage by mark terminal, the target terminal;
The interface function of fingerprint collecting of the target terminal by the webservice controls is from the fingerprint collecting
In device obtain coding after base64 character strings are as fingerprint logging data and are uploaded to web server;
The base64 characters that the fingerprint character code information as fingerprint logging data is encoded into by the web server
String is preserved into the fingerprint masterplate table of the web server data base and is uploaded to fingerprint server simultaneously.
Optionally, in one embodiment, the web server is using the fingerprint character code as fingerprint logging data
The base64 character strings that information is encoded into also include after being uploaded to fingerprint server:
The fingerprint logging data is stored in default fingerprint sample by the web server
In database.
Optionally, in one embodiment, the web server is using the fingerprint character code as fingerprint logging data
The base64 character strings that information is encoded into also include after being uploaded to fingerprint server:
In the web server by the fingerprint logging data with the second sample fingerprint data pre-recorded by calling
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 showing in the finger-mark check state be shown on interface.
Optionally, in one embodiment, methods described also includes:
The target terminal is generated corresponding with the base64 character strings for grabbing by the Canvas paintbrushes of HTML5
Fingerprint image, and be illustrated in the finger-mark check state displayed page.
Additionally, for solving to carry out cross-platform fingerprint collecting or fingerprint login in above-mentioned conventional art on browser terminal
The technical problem that cannot be realized, 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, wherein:
The web server is used for the web of the sensing finger-mark check state displayed page for receiving target terminal transmission and accesses
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 used for showing the finger-mark check state displayed page, the finger-mark check state displayed page
On include the script file of webservice controls described in asynchronous access, also include sensing in the script file described
The web reference address of webservice controls;
The target terminal is additionally operable to the finger-mark check state displayed page on the target terminal and passes through to perform the foot
Presents asynchronously accesses the web reference address of the webservice controls;
The target terminal is additionally operable to capture fingerprint collecting corresponding with the target terminal by webservice controls
The fingerprint logging data of device collection is simultaneously illustrated in the finger-mark check state displayed page.
Optionally, in one embodiment, the target terminal is additionally operable to install webservice controls, and described
In webservice controls, Access-Control-Allow-Origin is set;Connecing for the webservice controls will be called
Mouth function is encapsulated in the script file of webservice controls described in the asynchronous access include on finger-mark check state displayed page
In;By the fingerprint logging data of webservice controls crawl fingerprint acquisition device collection corresponding with the target terminal also
Including:The interface function of the fingerprint collecting of the webservice controls is called by the Ajax of JavaScript, is judged and institute
State whether the corresponding fingerprint acquisition device of target terminal collects fingerprint, if so, then by the interface function of the fingerprint collecting
Obtain fingerprint logging data corresponding with the fingerprint for collecting.
Optionally, in one embodiment, the fingerprint acquisition device is additionally operable to detect the fingerprint typing behaviour of user input
Make, obtain fingerprint character code information corresponding with the fingerprint typing operation;The fingerprint character code information is encoded into
Base64 character strings simultaneously return to the target terminal, and the fingerprint logging data is carried out interim storage by the target terminal;
The target terminal is additionally operable to the interface function of the fingerprint collecting by the webservice controls from the finger
In stricture of vagina harvester obtain coding after base64 character strings are as fingerprint logging data and are uploaded to web server;
The web server is additionally operable to be encoded into the fingerprint character code information as fingerprint logging data
Base64 character strings are preserved into the fingerprint masterplate table of the web server data base and while are uploaded to fingerprint server.
Optionally, in one embodiment, the web server is additionally operable to the fingerprint logging data as the first sample
This finger print data is stored in default sample fingerprint data base.
Optionally, in one embodiment, the web server is additionally operable to the fingerprint in the web server
Logging data is carried out by calling the fingerprint comparison interface function of the fingerprint server with the second sample fingerprint data pre-recorded
Compare, and fingerprint authentication result is generated according to comparison result;The fingerprint authentication result is returned to into the target terminal, it is described
Target terminal is shown according to the fingerprint authentication result for receiving and on finger-mark check state displaying interface.
Optionally, in one embodiment, the target terminal is additionally operable to be generated and grabbed by the Canvas paintbrushes of HTML5
The corresponding fingerprint image of the base64 character strings got, and be illustrated in the finger-mark check state displayed page.
Implement the embodiment of the present invention, will have the advantages that:
After employing the above-mentioned finger-mark check method and system based on browser, web server receives target terminal and sends out
The access request of the web reference address of the sensing finger-mark check state displayed page for sending, will finger corresponding with the access request
Stricture of vagina verification state displayed page returns to the target terminal, and the target terminal shows that the finger-mark check state shows page
Face;Include the script file of webservice controls described in asynchronous access on the finger-mark check state displayed page, it is described
Also include the web reference address for pointing to the webservice controls in script file;The fingerprint school on the target terminal
Test the web reference address that state displayed page asynchronously accesses the webservice controls by performing the script file;
The target terminal captures the fingerprint of fingerprint acquisition device collection corresponding with the target terminal by webservice controls
Logging data is simultaneously illustrated in the finger-mark check state displayed page.That is, employing the above-mentioned finger based on browser
After stricture of vagina method of calibration and system, the interface function of webservice controls can be called to gather by the Ajax of JavaScript
The finger print information of user input, compared to the OCX used by old scheme, is no longer influenced by the restriction of browser, realizes not
With fingerprint and fingerprint login is gathered in browser, the suitability that fingerprint collecting and fingerprint based on browser are logged in is improve;
Meanwhile, compared to the ActiveX used by old scheme, improve the safety of system and data.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying 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 schematic flow sheet 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
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Cannot for carrying out cross-platform fingerprint collecting or fingerprint login in the above-mentioned conventional art of solution on browser terminal
The technical problem of realization, in the present embodiment, spy proposes 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, is mounted with the target terminal of browser
20 and the fingerprint acquisition device 30 of typing fingerprint.In the present embodiment, it is mounted with that webservice is controlled in web server
Part, that is, be mounted with that Secuirty ISSOnline Service are serviced, so that web server can call webservice
The interface function of control.Further, in target terminal, corresponding webservice controls are there are also installed, is mounted with
Secuirty ISSOnline Service are serviced, and for example, user can download webservice controls manually by browser
Exe files and installed, after the installation is complete, target terminal can directly call webservice to control in a browser
The correlation function of part.
It should be noted that in the present embodiment, communication link is established between fingerprint acquisition device 30 and target terminal 20
Connect, that is to say, that can carry out data transmission therebetween, for example, the finger print data for collecting is passed by fingerprint acquisition device 30
Give target terminal.In the present embodiment, fingerprint acquisition device 30 can be built in target terminal, for example, installed in pen
Remember the fingerprint sensor on this computer or the fingerprint sensor on smart mobile phone, panel computer, can also be and pass through
Wired mode or wireless mode (WIFI, bluetooth etc.) establish the fingerprint collecting device of communication connection and target terminal between.
Specifically, as shown in figure 1, the above-mentioned finger-mark check method based on browser comprises the steps:
Step S102:Web server receives the web of the sensing finger-mark check state displayed page that target terminal sends and accesses
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 by install be manually entered in one hurdle of address of browser on a target terminal the address that needs to access or
Person clicks on the link for pointing to reference address, you can send an access request to web server corresponding with reference address.At this
In embodiment, what user was input on a target terminal is directed to the access of the web reference address of finger-mark check state displayed page
The access request is uploaded to corresponding web server after the access request is detected by request, target terminal.Need
Bright, in the present embodiment, web server refers exclusively to the corresponding web server of finger-mark check state displayed page.
In being embodied as, web server is in the sensing finger-mark check state displayed page for receiving target terminal transmission
After the access request of web reference address, according to access request, obtain 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
Show.
It should be noted that in the present embodiment, web server returns to the finger-mark check state of target terminal and shows page
Face is script file corresponding with the finger-mark check state displayed page, and target terminal leads to after the script file is received
Cross browser to perform 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 for example, can gather fingerprint corresponding with ID by the page typing finger print information
Information;Can also be fingerprint login page corresponding with finger-mark check.
Optionally, in the present embodiment, optional step also includes:The target terminal is drawn by the Canvas of HTML5
Pen generates corresponding fingerprint image, and is illustrated in the finger-mark check state displayed page.
Specifically, for example when finger-mark check state displayed page is the sample fingerprint typing page, can be by HTML5's
Canvas paintbrushes generate fingerprint image corresponding with single fingerprint or palm;Show that interface is stepped on for fingerprint in finger-mark check state
During the record page, corresponding fingerprint image can be generated by the Canvas paintbrushes of HTML5, that is to say, that it is right that user can pass through
The visual displayed page of fingerprint image completes the gatherer 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
Figure, is being display area corresponding with the fingerprint image of typing shown in the region shown in numbering P1, in the diagram, is illustrating
In a specific embodiment in fingerprint login page, the region shown in numbering P2 shows the fingerprint image pair with typing
The display area answered.Further, the region shown in numbering Q in figure 3, is the feelings of the finger print data in the multiple fingers of typing
Under condition, the progress bar of the fingerprint collecting corresponding with multiple fingers generated using Canvas paintbrushes is gathered successful finger and then will
The viewing area of corresponding finger becomes green.
Step S104:On the target terminal, finger-mark check state displayed page is asynchronous by performing the script file
Ground accesses the web reference address of the webservice controls.
In specific embodiment, target terminal passes through perform script document presentation finger-mark check state displayed page, that is,
Say, web server returns to the finger-mark check state displayed page of target terminal and contains and shows page with the finger-mark check state
The corresponding script file in face, target terminal refer to after script file corresponding with finger-mark check state displayed page is received
Stricture of vagina verifies state displayed page by performing 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 presents, webservice controls described in the asynchronous access for enabling target terminal successful access webservice control are further comprises
The script file of part, also, further, in script file, also include the web access for pointing to the webservice controls
Address, therefore, web reference address of the target terminal by the asynchronous access webservice controls of perform script file.
Step S106:The target terminal captures fingerprint corresponding with the target terminal by webservice controls and adopts
The fingerprint logging data of acquisition means collection is simultaneously illustrated in the finger-mark check state displayed page.
In the present embodiment, target terminal is illustrating finger-mark check state displaying page by performing corresponding script file
After face, user needs to be input into corresponding finger print information by above-mentioned displayed page.In the present embodiment, user can by
Above-mentioned finger-mark check status page clicks on 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 performs phase after the fingerprint crawl instruction that user is input into by target terminal is received
The operation of the fingerprint crawl answered.In the present embodiment, target terminal captures the operation of fingerprint, can be by the fingerprint of user input
It is crawl instruction triggers, or that target terminal is triggered after successful presentation finger-mark check state displayed page automatically.
Specifically, in the present embodiment, target terminal is captured and mesh by the webservice controls installed in terminal
The fingerprint logging data of the corresponding fingerprint acquisition device collection of mark terminal.
It should be noted that because web server or target terminal directly invoke the interface letter of webservice controls
Number belongs to cross-domain access, and this access module is forbidden by origin policy, in order that accessing webservice controls
The access of interface function is normally carried out, in the present embodiment, it is possible to use the CORS (cross-domain resource is shared) of HTML5,
Access-Control-Allow-Origin is set in webservice controls, after success is set, it is possible to allow
JavaScript carries out cross-domain access by Ajax, that is, allow JavaScript to call connecing for webservice controls by Ajax
Mouth function.
Further, in order that target terminal is opened up script file corresponding with finger-mark check state displayed page is performed
On the finger-mark check state displayed page for showing, target terminal can also get corresponding fingerprint logging data, and this requires target
In terminal execution script file, corresponding arrange parameter is also contains.Specifically, the interface of webservice controls will be called
Function is encapsulated in the script file for asynchronously accessing web server included on finger-mark check state displayed page, that is,
Say, target terminal is when corresponding script file is performed, it is also possible to access the interface function of above-mentioned webservice controls.Need
Illustrate, in the present embodiment, on a target terminal, in order to be able to make target terminal show finger-mark check state displayed page
During, associative operation corresponding with webservice controls are called in energy successful execution script file, on a target terminal
In the browser of installation, in addition to webservice controls will be installed, in addition it is also necessary to enter in the webservice controls installed
The corresponding Access-Control-Allow-Origin of row is arranged.
It is that is, in web server and target terminal, be respectively mounted webservice controls, and corresponding
Carry out corresponding Access-Control-Allow-Origin to arrange in webservice controls, to allow to access
The web reference address of webservice controls.
After the setting for being allowed cross-domain access accordingly, it is possible to captured by webservice controls and target
The fingerprint logging data of the corresponding fingerprint acquisition device collection of terminal.It should be noted that in the present embodiment, fingerprint typing number
According to can user be input into by the fingerprint acquisition device being connected with target terminal, specifically, fingerprint acquisition device can be
Fingerprint sensor on a target terminal is installed, or 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 input fingerprint
Afterwards, obtain the corresponding finger print data of fingerprint with fingerprint typing operation corresponding operating parameter, i.e. user input.
It should be noted that in the present embodiment, above-mentioned finger print data may refer to print image, it is also possible to 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 is encoded into base64 character strings, using the fingerprint logging data that base64 character strings are captured as web server.
Specifically, the fingerprint typing operation of the fingerprint acquisition device detection user input, obtains and the fingerprint typing
Operate corresponding fingerprint character code information;The fingerprint character code information is encoded into base64 characters by the fingerprint acquisition device
String returns to the target terminal, and the fingerprint logging data is carried out interim storage by the target terminal;Institute's target terminal leads to
Cross the fingerprint collecting of the webservice controls interface function obtain from the fingerprint acquisition device coding after
Base64 character strings are as fingerprint logging data and upload to web server, and web server is using the finger as fingerprint logging data
The base64 character strings that stricture of vagina condition code information is encoded into preserve into the fingerprint masterplate table of the web server data base and while
It is uploaded to fingerprint server.
In an optional embodiment, target terminal captures finger corresponding with target terminal by webservice controls
During the fingerprint logging data of stricture of vagina harvester collection, can also be and called by the Ajax of JavaScript
Corresponding interface function corresponding with fingerprint collecting in webservice controls, also, the return value by interface function, it is determined that
Whether obtain successfully with fingerprint logging data, that is, whether successful acquisition is to finger to judge the fingerprint acquisition device being connected with target terminal
Stricture of vagina, if gathering successfully, the return value of above-mentioned interface function corresponding with fingerprint collecting is fingerprint logging data, that is, pass through
The interface function of the fingerprint collecting of webservice controls, obtains the corresponding fingerprint logging data of fingerprint for collecting.
Further, in the present embodiment, target terminal is after fingerprint logging data is grabbed, in the clear of target terminal
Look at and show the fingerprint logging data for grabbing in the finger-mark check state displayed page shown on device interface.
Optionally, in the present embodiment, the finger-mark check state for showing on the browser interface of above-mentioned target terminal shows
Show the process of the fingerprint logging data for grabbing in the page, can be the Canvas paintbrushes by HTML5, generate and grab
The corresponding fingerprint image of fingerprint logging data, in the present embodiment, fingerprint logging data for base64 character strings process
In, fingerprint image corresponding with the base64 character strings can be generated by the Canvas paintbrushes of HTML5, and Canvas is drawn
The fingerprint image that pen is generated is illustrated in finger-mark check state displayed page.
The area shown in numbering P2 in region and Fig. 4 in a specific embodiment, as shown in numbering P1 of Fig. 3
Shown in domain, in P1 and P2, illustrate according to the generation of Canvas paintbrushes and fingerprint logging data (the base64 words for grabbing
Symbol string) corresponding fingerprint image, that is to say, that the condition code information coding of the fingerprint image collected according to fingerprint acquisition device
Into base64 character strings, by Canvas paintbrushes, generate fingerprint image corresponding with base64 character strings, it is possible to use family is straight
The situation for checking fingerprint typing seen.
Optionally, after fingerprint logging data is grabbed, the fingerprint logging data to grabbing is processed, also,
In the present embodiment, different process are 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 process for carrying out.For example, finger-mark check state displayed page be fingerprint
During the sample typing page, the fingerprint logging data for grabbing is stored in into default sample fingerprint as first sample finger print data
In data base, also, with first sample finger print data together preserve also include ID, that is to say, that 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 same user can more than one
Individual, for example, the corresponding first sample finger print data of the 10 of both hands fingers can be stored in default fingerprint sample by user
In database, and finger numbering is saved in into default sample fingerprint data base in the lump with corresponding first sample finger print data
In.
Further, in the present embodiment, before first sample finger print data is preserved, in addition it is also necessary to for same finger
Fingerprint carries out multi collect, for example, it is desired to the process of 3 fingerprint collectings is successively carried out, after three fingerprint collectings are completed, then
According to the fingerprint character code information for collecting for three times, webservice interfaces are called by the Ajax of JavaScript, by three times
The fingerprint character code information for collecting synthesizes a new fingerprint character code information, that is to say, that the new fingerprint characteristic of synthesis
Code information will be saved in default sample fingerprint data base as final first sample finger print data;Further, in web
In the case that the fingerprint logging data of server crawl is base64 character strings, with the new fingerprint character code information pair after synthesis
The base64 character strings answered will be saved in default sample fingerprint data base 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 user and are referring in advance
In grain pattern this typing page typing and preserve it is corresponding with ID and be saved in default sample fingerprint data base
Fingerprint logging data or first sample finger print data.During fingerprint login is carried out, according to ID, in default fingerprint
Search the second sample fingerprint data corresponding with the ID in sample database, and by the second sample fingerprint data and crawl
To fingerprint logging data compare.Further, comparison result is fingerprint authentication result, that is to say, that if fingerprint ratio
To success, then the authentication success of fingerprint authentication success, i.e. user is judged.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 fingerprint authentication result is received
Show the page corresponding with fingerprint authentication result on face.For example, if being proved to be successful, web server will number corresponding with ID
According to target terminal is returned to, target terminal is received and shows related data corresponding with ID accordingly.
Additionally, for solving to carry out cross-platform fingerprint collecting or fingerprint login in above-mentioned conventional art on browser terminal
The technical problem that cannot be realized, in one embodiment, as shown in Figure 1, it is proposed that the fingerprint verifying device based on browser
Including the fingerprint acquisition device 30 being connected including target terminal 20, web server 10 and with the target terminal 20, wherein:
The web server 10 is used for the web of the sensing finger-mark check state displayed page for receiving 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 reference address
End 20;
The target terminal 20 is used for showing the finger-mark check state displayed page that the finger-mark check state to show page
Include the script file of webservice controls described in asynchronous access on face, also include sensing in the script file described
The web reference address of webservice controls;
The target terminal 20 is additionally operable to the finger-mark check state displayed page on the target terminal 20 and passes through to perform institute
State the web reference address that script file asynchronously accesses the webservice controls;
The target terminal 20 is additionally operable to capture and 20 corresponding fingerprint of the target terminal by webservice controls
The fingerprint logging data of the collection of harvester 30 is simultaneously illustrated in the finger-mark check state displayed page.
Optionally, in one embodiment, the target terminal 20 is additionally operable to install webservice controls, and described
In webservice controls, Access-Control-Allow-Origin is set;Connecing for the webservice controls will be called
Mouth function is encapsulated in the script file of webservice controls described in the asynchronous access include on finger-mark check state displayed page
In;Fingerprint typing number with the collection of 20 corresponding fingerprint acquisition device of the target terminal 30 is captured by webservice controls
According to also including:The interface function of the fingerprint collecting of the webservice controls is called by the Ajax of JavaScript, is judged
Whether fingerprint is collected with 20 corresponding fingerprint acquisition device 30 of the target terminal, if so, then by the fingerprint collecting
Interface function obtains fingerprint logging data corresponding with the fingerprint for collecting.
Optionally, in one embodiment, fingerprint acquisition device 30 is additionally operable to detect the fingerprint typing operation of user input,
Obtain fingerprint character code information corresponding with the fingerprint typing operation;The fingerprint character code information is encoded into into base64 words
Symbol is gone here and there and returns to the target terminal 20, and the fingerprint logging data is carried out interim storage by the target terminal 20;
The target terminal 20 is additionally operable to the interface function of the fingerprint collecting by the webservice controls from described
In fingerprint acquisition device 30 obtain coding after base64 character strings are as fingerprint logging data and are uploaded to web server 10;
The web server 10 is additionally operable to be encoded into the fingerprint character code information as fingerprint logging data
Base64 character strings are preserved into the fingerprint masterplate table of 10 data base of the web server and while are uploaded to fingerprint server.
Optionally, in one embodiment, web server 10 is additionally operable to the fingerprint logging data as first sample
Finger print data is stored in default sample fingerprint data base.
Optionally, in one embodiment, web server 10 is additionally operable to the fingerprint in the web server 10
Logging data is carried out by calling the fingerprint comparison interface function of the fingerprint server with the second sample fingerprint data pre-recorded
Compare, and fingerprint authentication result is generated according to comparison result;The fingerprint authentication result is returned to into the target terminal 20, institute
Target terminal 20 is stated according to the fingerprint authentication result for receiving and is shown in the finger-mark check state and be shown on interface.
Optionally, in one embodiment, target terminal 20 is additionally operable to generate and crawl by the Canvas paintbrushes of HTML5
The corresponding fingerprint image of the base64 character strings for arriving, and be illustrated in the finger-mark check state displayed page.
Implement the embodiment of the present invention, will have the advantages that:
After employing the above-mentioned finger-mark check method and system based on browser, web server receives target terminal 20
The access request of the web reference address of the sensing 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;Include the script file of webservice controls described in asynchronous access on the finger-mark check state displayed page,
Also include the web reference address for pointing to the webservice controls in the script file;On the target terminal 20
Finger-mark check state displayed page asynchronously accesses the web of the webservice controls and accesses by performing the script file
Address;The target terminal 20 is adopted with 20 corresponding fingerprint acquisition device of the target terminal by the crawl of webservice controls
The fingerprint logging data of collection is simultaneously illustrated in the finger-mark check state displayed page.That is, employing above-mentioned based on clear
Look at after the finger-mark check method and system of device, the interface of webservice controls can be called by the Ajax of JavaScript
Function gathers the finger print information of user input, compared to the OCX used by old scheme, is no longer influenced by the restriction of browser, real
Show and gathered fingerprint and fingerprint login in different browsers, improve what fingerprint collecting and fingerprint based on browser were logged in
The suitability;Meanwhile, compared to the ActiveX used by old scheme, improve the safety of system and data.
Above disclosed is only present pre-ferred embodiments, can not limit certainly the right model of the present invention with this
Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope covered by the present invention.