Document Classification

The Document Classification Service can be used to classify the type of Indian Identity Document by either uploading a valid image or by giving a valid URL of the image.

Use Cases

This API can be used for the following -

  • To identify the type of ID of the Image
  • To perform accurate OCR by knowing the correct document type

Valid & Supported Documents

This API can identify the following documents only -

  • Passport
  • Aadhaar
  • Driving License
  • PAN
  • Voter ID

📘

Document Type Enumeration Standardized

In the request body, "document_type" parameter will only consider capital letters.

The special character's are not allowed -!@#$%^&*()~{}|<>,.:;"'?/+=

Accepted Enumeration Examples -

  1. PAN
  2. DRIVING_LICENSE

Not Accepted Enumeration Examples -

  1. pan
  2. Driving_License

API Requirements

Supported Formats: This API supports a limited set of image extensions or file formats -

  • JPG
  • JPEG
  • PNG
  • PDF

Maximum File Size: This API supports an image with a max size of 6MB.