Skip to content

nguyen-tho/ID-card-extract-module

Repository files navigation

ID-card-extract-module


This is a program to extract information from Vietnamese ID card

The program extract basic information such as name, ID number, date of birth,.... are extracted from ID card and issue date is extracted from QR code

  1. Download model file follow link: https://hub.ultralytics.com/models/hgfIRTQBokYdGBQS7orm (Model 1 - use for extract text on front side of IDcard except portrait and QR code) Update new model: https://api.ultralytics.com/v1/predict/je3LTBqoLDRiZBtYRSYQ (Model 2 - use for extract QR code except text fields)

  2. Dataset:

  3. Clone the module:

    git clone https://github.com/nguyen-tho/ID-card-extract-module.git
  4. Install dependencies

pip install -r requirements.txt
  1. Run process.py

    # run processing function in process.py
    python process.py
    #run REST API
    #python app.py
    # API is incomplete 
    #access http://127.0.0.1:5000 to observe the result
  2. References

  3. New update

    • New model to detect QR code on Vietnamese ID card
    • Extract information from QR code such as issue date instead of create a new model to detect issue date at back-side of ID card
    • Update with REST API (Incomplete)
    • Combine 2 models to improve the result
  4. Demo

    Input image

    input

    Output image

    output

    Output result (json)

    click here to show json

    Confidence and extraction probability click here to show

  5. Contact:

    Please contact with me at this email address to discuss: [email protected]