KYB Documents OCR
Module ID
| Name of the Module | Documents Supported |
|---|---|
module_kyb_documents_ocr | GST certificate, Shop and Establishment certificate, Udyam Certificate |
Description
The KYB Documents OCR extracts accurate information from any of the following KYB documents received as an image.
- Shop and Establishment certificate
- Udyam Certificate
- GST certificate
- Certificate of Incorporation
This product might provide mixed results when used on other business documents. We recommend discussing it with the HyperVerge team before using it on other business documents.
Module Inputs
The following table provides the details of the parameters required for the module.
| Parameter | Mandatory or Optional | Description |
|---|---|---|
image | Mandatory | This is the KYB file on which you intended to run the OCR extraction. The input file can either be an image file (with JPEG, PNG, or TIFF extension) or a Portable Document Format(PDF) file. |
The KYB identity cards are expected to have the information only on one side of the card. Only the first page of the document is considered as the input. In case the KYB input document has multiple pages, you will have to make individual requests to the module for each page of the document.
Image Input Guidelines
- The API supports JPEG, PNG and TIFF images and PDFs inputs.
- Ensure that the document in the image is legible. This is a rule of thumb for our OCR servers to accurately extract any text from an image.
- Reduce the size of the image as much as possible to optimise the reponse time while also ensuring its legibility criteria as mentioned earlier. Larger image sizes lead to higher uploading and processing time.
- You can keep the width of the ID card image at least 800 pixels and the JPEG compression quality factor above 80%.
- For our DL server to extract text from the document, the aspect ratio of the input image should be the same as the aspect ratio of the original document. Hence utmost care should be taken while resizing the image to maintain the aspect ratio
Module Configurations
This module does not support any additional configurations.
Module Outputs
- Success Response Sample for GST Certificate
- Success Response Sample for Shop & Establishment Certificate
- Success Response Sample for Udyam Certificate
- Success Response Sample for Certificate of Incorporation
You will receive a success response in a format similar to the following sample code for a GST certificate input.
{
"status": "success",
"statusCode": "200",
"result": [
{
"details": {
"reg_no": {
"value": "27** *********Z2",
"conf": 0.93,
"to-be-reviewed": "no"
},
"legal_name": {
"value": "",
"conf": 0,
"to-be-reviewed": "yes"
},
"trade_name": {
"value": "COLLECTION",
"conf": 0.79,
"to-be-reviewed": "no"
},
"business_constitution": {
"value": "PROPRIETORSHIP",
"conf": 0.99,
"to-be-reviewed": "no"
},
"address": {
"value": "UGAMSHI BHARMAL GALA ZALANI GROUND FLOOR, SHOP NO.2, SHIV DARSHAN SHOPPING CENTER, OPP . RAILWAY STATION , SANTA CRUZ(W), MUMBAI SUBURBAN, MAHARASHTRA , 400054",
"conf": 0.94,
"to-be-reviewed": "no"
},
"date_liability": {
"value": "",
"conf": 0,
"to-be-reviewed": "yes"
},
"valid_from": {
"value": "01/07/2017",
"conf": 0.99,
"to-be-reviewed": "no"
},
"valid_till": {
"value": "",
"conf": 0,
"to-be-reviewed": "yes"
},
"type": {
"value": "",
"conf": 0,
"to-be-reviewed": "yes"
}
},
"type": "GST"
}
],
"requestId": "<Request_ID>"
}
Success Response Details for GST Certificate
success status with a status code of 200 and a result object containing the response data with the following field-value pairs.| Attributes | Description | Values Returned |
|---|---|---|
type | The type of KYB document detected> | GST, ShopEstablishmentCertificate, MSME, or COI |
reg_no | - | N/A - It depends on the actual value in the input document. |
legal_name | - | |
trade_name | - | |
business_constitution | - | |
address | - | |
date_liability | - | |
valid_from | - | |
valid_till | - |
{
"status": "success",
"statusCode": "200",
"result": [
{
"details": {
"name": {
"value": "MR. KIRAN RAJU KOTIAN",
"conf": 0.97,
"to-be-reviewed": "no"
},
"business_name": {
"value": "OSOURCE CONSULTANCY",
"conf": 0.93,
"to-be-reviewed": "no"
},
"address": {
"value": "PS WARD SHOP I 302 , DWING , RIDDHISIDDHI COMPLEX, UNNAT NAGAR ROAD NO2, KAMRAJ NAGAR, GOREGAON WEST, MUMBAI 400104,",
"conf": 0.97,
"to-be-reviewed": "no"
}
},
"type": "SHOP_ESTABLISHMENT CERTIFICATE - 1000"
}
],
"requestId": "1664519981386-b67617c7-28ac-4dee-a54b-0ac167d4579b"
}
Success Response Details for Shop & Establishment Certificate
success status with a status code of 200 and a result object containing the response data with the following field-value pairs.| Attributes | Description | Values Returned |
|---|---|---|
type | The 'type' returns one of the values reflecting the type of your input document for the request. | "BUSINESSDOCS_GST", "BUSINESSDOCS_MSME", "SHOP_ESTABLISHMENT CERTIFICATE - 1000", "BUSINESSDOCS_COI_2", or "OTHER". |
name | - | N/A - It depends on the actual value in the input document. |
business_name | - | |
address | - |
{
"status": "success",
"statusCode": "200",
"result": [
{
"details": {
"type": {
"value": "",
"conf": 0,
"to-be-reviewed": "yes"
},
"reg_no": {
"value": "UDYAM",
"conf": 0.71,
"to-be-reviewed": "yes"
},
"enterprise_name": {
"value": "",
"conf": 0,
"to-be-reviewed": "yes"
},
"date_incorporation": {
"value": "",
"conf": 0,
"to-be-reviewed": "yes"
},
"date_commencement": {
"value": "",
"conf": 0,
"to-be-reviewed": "yes"
},
"date_registration": {
"value": "11/08/2020 27/09/2020",
"conf": 0.5,
"to-be-reviewed": "yes"
},
"flat_door_no": {
"value": "66",
"conf": 0.98,
"to-be-reviewed": "no"
},
"building_name": {
"value": "SOLAN KALEEN",
"conf": 0.62,
"to-be-reviewed": "yes"
},
"village_town": {
"value": "",
"conf": 0,
"to-be-reviewed": "yes"
},
"block": {
"value": "",
"conf": 0,
"to-be-reviewed": "yes"
},
"street_name": {
"value": "",
"conf": 0,
"to-be-reviewed": "yes"
},
"city": {
"value": "",
"conf": 0,
"to-be-reviewed": "yes"
},
"state": {
"value": "",
"conf": 0,
"to-be-reviewed": "yes"
},
"district": {
"value": "PIN",
"conf": 0.4,
"to-be-reviewed": "yes"
},
"mobile_no": {
"value": "7018549251",
"conf": 0.99,
"to-be-reviewed": "no"
},
"email": {
"value": "-HP-11-0000690",
"conf": 0.52,
"to-be-reviewed": "yes"
}
},
"type": "BUSINESSDOCS_MSME"
}
],
"requestId": "1664519912292-3e25cd90-2e4d-4037-8d93-d35545605cc2"
}
Success Response Details for Udyam Certificate
A success response from the module reflects thesuccess status with a status code of 200 and a result object containing the response data with the following field-value pairs.| Attributes | Description | Values Returned |
|---|---|---|
type | The 'type' returns one of the values reflecting the type of your input document for the request. | "BUSINESSDOCS_GST", "BUSINESSDOCS_MSME", "SHOP_ESTABLISHMENT CERTIFICATE - 1000", "BUSINESSDOCS_COI_2", or "OTHER". |
reg_no | - | N/A - It depends on the actual value in the input document. |
enterprise_name | - | |
date_incorporation | - | |
date_commencement | - | |
date_registration | - | |
flat_door_no | - | |
building_name | - | |
village_town | - | |
block | - | |
street_name | - | |
city | - | |
state | - | |
district | - | |
mobile_no | - | |
email | - |
You will receive a success response in a format similar to the following sample code for a Certificate of Incorporation.
{
"status": "success",
"statusCode": "200",
"result": [
{
"details": {
"cin": {
"value": "U72900KA2019FTC130185",
"conf": 0.99,
"to-be-reviewed": "no"
},
"pan": {
"value": "AAHCT6329H",
"conf": 0.98,
"to-be-reviewed": "no"
},
"tan": {
"value": "BLRT16604A",
"conf": 0.97,
"to-be-reviewed": "no"
},
"company_name": {
"value": "TROPOGO TECHNOLOGIES PRIVATE LIMITED",
"conf": 0.95,
"to-be-reviewed": "no"
},
"company_address": {
"value": "175 & 176 , DOLLORS COLONY , JP NAGAR ,, BANNERGHATTA MAIN ROAD ,, BENGALURU , BANGALORE , KARNATAKA , INDIA , 560076",
"conf": 0.74,
"to-be-reviewed": "yes"
}
},
"type": "BUSINESSDOCS_COI_2"
}
],
"requestId": "1669278476163-fb6ccdd0-1131-45e6-9ecd-544699c0f5ac"
}
| Attributes | Description | Values Returned |
|---|---|---|
type | The 'type' returns one of the values reflecting the type of your input document for the request. | "BUSINESSDOCS_GST", "BUSINESSDOCS_MSME", "SHOP_ESTABLISHMENT CERTIFICATE - 1000", "BUSINESSDOCS_COI_2", or "OTHER". |
cin | - | N/A - It depends on the actual value in the input document. |
pan | - | |
tan | - |
- Error Response Samples
- Error Sample - No Input Image
- Error Sample - More than 1 Image Input
- Error Sample - Larger than Allowed Image Input
- Error Sample - Document Not Detected From Image
{
"status": "failure",
"statusCode": "400",
"error": "API call requires one input image",
}
{
"status": "failure",
"statusCode": "400",
"error": "API call handles only one input image",
}
{
"status": "failure",
"statusCode": "400",
"error": "image size cannot be greater than 12MB",
}
{
"status": "failure",
"statusCode": 422,
"error": "No Document detected",
}
Error Response Details
failure status, with a relavant status code and error message. The following table lists all error responses. | Status Code | Error Message | Error Description |
|---|---|---|
| 400 | No Image input | The request missed the image input. |
| 400 | More than 1 image input | The request had more than one image file input. It expects only one file in the request. |
| 400 | image size cannot be greater than 12MB | The image size is larger than the allowed limit. |
| 422 | Document not detected from Image | The module failed to detect a document in the image. Ensure that the image captures the document following the guidlines mentioned under the Input Image Guidelines section. |
| 5xx | Internal Server Error | There was an error with HyperVerge's server. Please contact the HyperVerge team. |