git clone [email protected]:covideoin/image-processing.git
or
git clone https://github.com/covideoin/image-processing
virtualenv env -p python3
source env/bin/activate
pip install -r requirements.txt
**Might need to install following dependency for tensorflow
sudo apt-get install libcudart10.1
Try installing python module of dlib pip install dlib
wget http://dlib.net/files/dlib-19.6.tar.bz2
tar xvf dlib-19.6.tar.bz2
cd dlib-19.6/
mkdir build
cd build
cmake ..
cmake --build . --config Release
sudo make install
sudo ldconfig
api is served on port 5000
-
- Request Method [POST]
- Request
{"image": "base64 encoded image"}
- Response
{
data: {
"DOB": "",
"Fathers Name": "",
"Name": "",
"pan-id": ""
},
signature: "base64 data"
}
-
- Method [POST]
- Request
{"image": "base64 encoded image"}
- Response
data: { "DOB": "", "Name": "", "Gender": "", "adhar-id": "" },
or
data: { "address": address }
if backside is given
-
- Method [POST]
- Request
{ 'image1': 'base64 encoded image', 'image2': 'base64 encoded image' } ``` - Response ``` { score: match_value[0-1] } ```
-
- Method [POST]
- Request
{ 'file': 'base64 encoded pdf file', } ``` - Response ``` { "image_filename": "filename.jpg" } ```
converted image will be stored as temp/pdf-to-image/filename.jpg
-
Returns predicted label of given document ==> pan-card | aadhar-card | driving-license
- Method [POST]
- Request
{ 'image': 'base64 encoded image file', } ``` - Response ``` { "label": "pan-card/aadhar-card/driving-license" } ```