Giter Club home page Giter Club logo

fingerprint's Introduction

FingerPrint

This is the driver (or interface) for the fingerprint sensor on my laptop (LG Gram 2018). This script should work on other laptops and even desktops with fingerprint sensors as well.

Principles

Call Windows Biometric Framework API to interact with the sensor. Technically, you can use the API to access any WBF devices, including facial recognition and iris recognition.

How to use

You can integrate this interface with other command line and GUI programs to serve as an authentication.

myFP = FingerPrint()
try:
    myFP.open()
    print("Please touch the fingerprint sensor")
    if myFP.verify():
        print("Hello! Master")
    else:
        print("Sorry! Man")
finally:
    myFP.close()

Available APIs

  • WinBioOpenSession
  • WinBioCloseSession
  • WinBioIdentify
    • get the information of unit_id, subtype and identity
  • WinBioVerify
    • verify using the given identity and subtype
  • WinBioLocateSensor
    • get the unit_id by touching your sensor in case you have multiple sensors

To Do

  • WinBioAcquireFocus
  • WinBioReleaseFocus
  • WinBioAsyncOpenSession
  • WinBioCancel
  • WinBioIdentifyWithCallback
  • WinBioVerifyWithCallback
  • fix the focus issue
  • organize Constants

Issues

Currently the program needs to be called in the top-level window. So use the command line instead of IDEs to call the program, otherwise the sensor will ignore your touch.

python fingerprint.py

Reference

fingerprint's People

Contributors

luspock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

fingerprint's Issues

Nothing is happening

Hi,
I don't know if windows 11 breaks everything, but for me nothing happens, it is hanging at myFP.verify().

on my dell xps 15 9510 and my desktop computer.

Any Idea on how to fix that ?
thanks

EDIT: My friend tried the script with his computer wich as the same finger print sensor and it worked but he is still on windows 10, maybe this can be the culprit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.