Primary Page Content Classifer
The primary page content classifier identifies the core component of a given page using image classification.
The payload details for Primary Page Content Classifer
Key |
Type |
Description |
Example |
Inputdocument |
string |
Base-64 of the file |
Base-64 |
fileextension |
string |
File extension i.e .PDF, .TIFF, .tif, .png, .jpeg,.jpg |
.jpeg |
filename |
string |
FileName |
prop.jpeg |
txnid |
string |
Unique client / customer code to identify the customer |
63767792671 |
Sample Request:
{
"inputdocument": "/9j/4AAQSkZJRgABAQEAYABgAAD/4RCcRXhpZgAATU0AKgAAAAgABAE7AAIAAAAOAAAISodpAAQAAAABAAAIWJydAAEAAAAcA...",
"fileextension": ".jpg",
"filename": "images23.jpg",
"txnid": "638238475901123326"
}
Response details for Primary Page Content Classifer
Key |
Description |
corelationid |
Unique id for the response |
txnid |
Unique client / customer code to identify the customer |
totalpages |
No of pages in the document |
statuscode |
0 |
error |
error code |
objtype |
Detected document in the image i,e ID Card / Forms / Other |
Sample Response:
{
"corelationid": "0b60f4df-71c7-4fcc-83ee-d1824c48b987",
"txnid": "638238475901123326",
"totalpages": 1,
"statuscode": 0,
"error": "",
"pagedetail": [
{
"pageno": 1,
"objtype": "idcards",
"score": 99
}
]
}
Class |
Description |
idcards |
If the primary page content contains one or more ID cards such as a PAN card or Aadhaar card |
forms |
If the primary page content contains a form based image such a bank statement, passbook image, proposal form etc. |
signature |
If the primary content contains a signature image or electronic signature signed on an agent tab/mobile device |
people |
If the primary content contains a passport size photo, selfie, or image of a person posing for the camera during an agent visit |
places |
If the primary content contains a picture of a house/building that an agent would take during a verification visit |
ID Card Detection
Returns specific ID Cards found in files on a pagewise basis. Limited to one ID Type per page
The payload details for ID Card Detection
Key |
Type |
Description |
Example |
inputdocument |
string |
Base-64 of the file |
Base-64 |
FileExtension |
string |
File extension i.e .PDF, .TIFF, .tif, .png, .jpeg, .jpg |
.PDF |
FileName |
string |
FileName |
Prop.PDF |
txnid |
string |
Unique client / customer code to identify the customer |
12776 |
Sample Request:
{
"inputdocument": "JVBERi0xLjUNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0Nhd...",
"fileextension": ".pdf",
"filename": "MultiDoc2",
"txnid": "638238894503483222"
}
Response details for ID Card Detection
Key |
Description |
corelationid |
Unique id for the response |
TotalPages |
No of pages in the document |
Doctype |
Detect document in the page i.e Aadhaar,PAN,VoterID etc |
statuscode |
0 |
Sample Response:
{
"corelationid": "58726825-ed8e-4d11-b494-685a3153f322",
"txnid": "638238894335851358",
"totalpages": 2,
"pagedetail": [
{
"pageno": 1,
"docdetail": [
{
"doctype": "Aadhaar",
"score": 100
},
{
"doctype": "Pan Card",
"score": 100
}
]
},
{
"pageno": 2,
"docdetail": [
{
"doctype": "Voter ID Card",
"score": 100
}
]
}
],
"statuscode": 0,
"error": ""
}
Class |
Description |
Aadhaar |
Includes Aadhaar Card Front, Aadhaar Card Back, e-Aadhaar Download, & Aadhaar Card (Long Format) (Various Formats including PVC Card) |
Driving Licence |
Indian driving licences for various states |
PAN Card |
PAN Old format (White background), Blue Background, and Blue Background with QR code (both variants) |
Voter ID |
Voter ID Card (Hologram with white Background & Barcode with Colourful Background) |
Passport |
Passport (Global) |
Oter ID |
Other ID cards (front or back) not included in the above list |
Single File Processing
The payload details for Aadhaar masking (single file)
Key |
Type |
Description |
Example |
inputdocument |
string |
Base-64 of the file |
Base-64 |
FileExtension |
string |
File extension i.e .PDF, .TIFF, .tif, .png, .jpeg, .jpg |
.PDF |
FileName |
string |
FileName |
Prop.PDF |
txnid |
string |
Unique client / customer code to identify the customer |
22876 |
Sample Request
{
"inputdocument":"iVBORw0KGgoAAAANSUhEUgAAAoAAAAG5CAYAAAAeUIXbAAEN+ElEQVR42uydeZxd8/3/n5+z3m32JbssJokkJCKxVWOLUnu...",
"fileextension":".PDF",
"filename":"fc72-c3035dcb4063.PDF",
"txnid": "637677"
}
Response details for Aadhaar single file processing
Key |
Description |
corelationid |
Unique id for the response |
outputdocument |
Base-64 Data |
statuscode |
0 |
Sample Response
{
"corelationid": "ec56dd3e-c2a0-418c-b714-524d3b6393fb",
"doctype": "Aadhaar",
"error": "",
"filemaskingstatus": "Aadhaar Masked",
"outputdocument": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9UeXBlL1hPYmplY3QvU3VidHlwZS9JbW...",
"processingstatus": "SUCCESS",
"statuscode": 0,
"txnid": "638241978470405089"
}
Batch Mode Processing
Batch mode processing is designed for enterprises who need to process a large number for files in a smaller time frame. To accomplish multiple parallel processes are run across multiple servers.
Callback API
Callback API is designed for failure / review cases, and files that are pending processing which are in queue and may need to be pushed to an enterprise on a given schedule.
The payload details for Aadhaar extraction
Key |
Type |
Description |
Example |
inputdocument |
string |
Base-64 of the file |
Base-64 |
FileExtension |
string |
File extension i.e .PDF, .TIFF, .tif, .png, .jpeg, .jpg |
.PDF |
FileName |
string |
FileName |
Prop.PDF |
txnid |
string |
Unique client / customer code to identify the customer |
22876 |
Sample Request
{
"inputdocument":"iVBORw0KGgoAAAANSUhEUgAAAoAAAAG5CAYAAAAeUIXbAAEN+ElEQVR42uydeZxd8/3/n5+z3m32JbssJokkJCKxVWOLUnu...",
"fileextension":".PDF",
"filename":"fc72-c3035dcb4063.PDF",
"txnid": "637677"
}
Response details for Aadhaar extraction
Key |
Description |
corelationid |
Unique id for the response |
outputdocument |
Base-64 Data |
statuscode |
0 |
Sample Response
{
"corelationid":"i03383157-fc72-4db1-bb00-c3035dcb4063",
"outputdocument":"",
"status":"success",
"statuscode":"0"
}