Coder Social home page Coder Social logo

codeprincess / funkyverfication Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 8 KB

This function take an image of an identification card and returns the type of the card (passport, national id card or any other category).

License: MIT License

C# 100.00%

funkyverfication's Introduction

license

ID Verification made simple

The function implemented in this repo helps you verify the type of an identification card. Currently it works for German passports and national identification cards (Personalausweis) but it is easily extendable to other types of cards.

Identification card verification

You can fire up your own Azure Function if you want to host the logic in your own environment or just use the following url for a first try.

https://idverificationapp.azurewebsites.net/api/cardVerification

How to use it:

  1. Attach an image to the body of POST request to the URL https://idverificationapp.azurewebsites.net/api/cardVerification
  2. Get a JSON based response with the info enclosed, what type your identification card is

Response

A JSON dictionary with the return code (HTTP OK if everything went fine) and an ID value

enum id_type {
    case PASSPORT
    case PERSO
    case UNKNOWN
}

Test images

The prototype can be tested with those two images of a German passport and an national ID card

Keep in mind

  • As soon as you want to host this service in your own function, you have to get a key for the Microsoft Cognitive Service Computer Vision APIs and enter it in the functions "appKey" variable. If you don't have an account for Cognitive Services yet just visit https://www.microsoft.com/cognitive-services and create one for free.
  • The usage of the Computer Vision API is quite low on the costs - and the first 5000 calls are completely free of charge - yey!

Disclaimer

This is just a first version to illustrate the idea for verification card validation based on the coordinates of text boxes. To make the service work reliable with different cards further checks are needed. Stay tuned!

So have fun and get back to me if you encounter some issues :)

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.