Sample Application
Linux-ID Document Recognition SDK Flask, Gradio Demo
Last updated
Linux-ID Document Recognition SDK Flask, Gradio Demo
Last updated
Pull the Docker image and run the container:
Download
The Demo directory contains the following directories and files:
dependency\
Dependency files
engine\
SDK engine files
examples\
Sample images
flask\
Flask server side demo code
gradio\
Gradio demo code
Dockerfile
Dockerfile for building a Docker image
install.sh
Script for install environment
license.txt
License key file
run_demo.sh
Script for run demo
Run the install.sh
script to install dependencies:
Online Licensing: Set the online license key as an environment variable:
Offline Licensing: Copy the license.txt
license file to the demo directory.
Run the demo script with the desired option:
Extract data from ID card.
Parameters
image: image file for the front of ID card
image2: image file for the back of ID card
Response
data: OCR result
Extract data from ID card base64 images.
Parameters
image1: base64 image for the front image
image2: base64 image for the back image
Response
data: OCR result
To test the Flask Server API, you can use . Here are the endpoints for testing:
Go to on a web browser.