NAV Navbar
  • Verifai Windows SDK (v 2.0)
  • Verifai Windows SDK (v 2.0)

    Welcome to the Verifai for Windows implementation guide. Because this version has been written with a special usecase in mind it is a little
    different than other SDKs.

    This documentation will be updated as we add extra features.

    Older versions

    If you're looking for documentation for previous versions of Verifai then check below:

    Version Link
    1.1 Documentation


    You can for example use a Microsoft Surface Pro.

    A suitable device

    Install the software

    You can download the latest SDK from our portal. If you have done that you will be guided through the installation.

    Setting the licence

    If you open the Verifai.exe that is located in the path you gave when installing (probably in C:\Program Files\Verifai\), you will be prompted for a licence.

    You can paste the licence in that textfield and it wil instant validate.

    If you need to change the licence, you can do so by clicking the "gear" icon in the bottom left corner of the window.

    Launching Verifai

    // The plugin is attached to the "window" object.
    // To test if the plugin has loaded you can paste below in
    // the browser JavaScript console.

    To start scanning document you need to call the JavaScript function verifai.launch().

    This will start the app containing a camera preview with instructions to the user.

    The app will allow you to take a picture from the front and back of a document and tries to recognize the document and read the MRZ if it contains any.

    id scanning

    Handle incoming results

    // You need to define this function so Verifai knows what to do when
    // it's finished processing.
    function hasResult(mrz, frontImage, backImage) {
        var decode = "data:image/jpeg;base64,";
        document.getElementById("frontImage").src = decode + frontImage;
        document.getElementById("backImage").src = decode + backImage;
    <pre id="mrz">
    <!-- The MRZ will be placed here after scanning -->
    <!-- The hasResult function replaces the source of the images below. -->
        <td><img id="frontImage" src=""></td>
        <td><img id="backImage" src=""></td>

    When the user is finished in the Verifai flow, he will return back to the browser instance. The plugin calls a function that you have to define (a callback).

    That function has to be named hasResult, and it must accept the following parameters:

    id result

    Note that this script also JSON decodes the data.

    A full working example is available.

    Take photos

    // Launch the camera
    verifai.launchCamera('Take a picture of tha bank statement');
    // Get the results back
    function hasCameraResult(image) {
        var decode = "data:image/jpeg;base64,";
        document.getElementById('bankstatement-image').src = decode + image;

    Because Microsoft had discontinued camera support for Internet Explorer 11 with the introduction of Windows 8.1 (it worked in 8.0) we implemented a similar functionality into the Verifai for Windows SDK.

    It is heavily inspired by the ID Scanning flow, so it shouldn't be hard to implement this.

    The launch function is called launchCamera, and the callback is hasCameraResult. You can however send a string parameter to launchCamera so you can provide the user with instructions.

    For example: verifai.launchCamera('Take a picture of the debit card').

    The hasCameraResult has a base64 image as it's only parameter.

    Installing on a network

    You can install Verifai on network connected computers using a Group Policy.

    Microsoft has great documentation on the subject: How to use Group Policy to remotely install software in Windows Server 2008 and in Windows Server 2003

    It comes down to this: * Share the msi file on your network * Make a Group Policy that includes installing Verifai * Set the registry key HKEY_CURRENT_USER\Software\Verifai with the proper contents. See Loading licence from registry for more details.

    Loading licence from register

    It is possible to set the licence in the Windows Registry. The licence should be without the header line and new lines.

    We recommend to only use this in combination with network deployments.

    Windows Registry Editor Version 5.00


    Because the Windows version is developed for a special use case it is possible that it does not fit your needs.

    Please contact our sales department if you have any additional requests. Chances are that we might add that functionality so you can use our product.

    Happy coding!