Skip to main content

Educational Certificate OCR API

The following document highlights the details of the Educational Certificate OCR API.

API Description

Objective

The Educational Certificate OCR API processes marksheet images and returns candidate information, examination details, and subject-wise marks for 10th and 12th standard marksheets.

Educational Certificate OCR API
The API supports marksheets from various educational boards across India, including documents in regional languages. It is template agnostic and can process both 10th standard (SSC) and 12th standard (HSC) marksheets.
InputOutput
An image of a 10th or 12th standard marksheetThe extracted candidate information, examination details, and subject-wise marks. The complete list of output fields is available in the Success Response Details section.

API URL

https://ind-engine.thomas.hyperverge.co/v1/readEducationCertificate

API Endpoint

readEducationCertificate

Overview

The Educational Certificate OCR API is RESTful and uses standard HTTP verbs and status codes. The responses are in JSON format and you should upload all images and files as form-data through a POST request.

Authentication

You need a unique pair of application ID (appid) and application key (appkey) from HyperVerge to verify your identity for accessing the Educational Certificate OCR API.

Method - POST

Headers

ParameterMandatory or OptionalDescriptionAllowed Values
content-typeMandatoryThis parameter defines the media type for the request payloadmultipart/form-data
appidMandatoryThe application identifier shared by HyperVerge. You can find the details in the dashboard's credentials tab.This should be a unique value.
appkeyMandatoryThe application key shared by HyperVerge. You can find the details in the dashboard's credentials tab.This should be a unique value.
transactionIdOptionalA unique identifier for tracking a user journeyThis should be both unique and easily associated with the user's journey in your application(s)

Inputs

The following table outlines the parameters required in the Educational Certificate OCR API's request body:

ParameterMandatory / OptionalTypeDescriptionInput FormatDefault Value
imageMandatoryfileThe educational certificate or marksheet image file to be processedImage file (JPEG, JPG, or PNG) with a maximum size of 6MB, or a PDF fileNot Applicable
Caution
  • When multiple images are included in a single API request, only one image is processed. Ensure that each API call contains a single image.
  • For PDF files with multiple pages, only the first page is processed for OCR extraction.

Request

The following code snippet demonstrates a standard curl request for the Educational Certificate OCR API:

curl --location --request POST 'https://ind-engine.thomas.hyperverge.co/v1/readEducationCertificate' \
--header 'appid: <Enter_the_App_ID>' \
--header 'appkey: <Enter_the_App_Key>' \
--header 'transactionId: <Enter_the_Transaction_ID>' \
--form 'image=@"<Enter_the_File_Path>"'

Document Sample

The following is a sample educational certificate processed by the API:

Sample educational certificate marksheet for OCR processing

Success Response

The following JSON code snippet demonstrates a success response from the Educational Certificate OCR API:

{
"status": "success",
"statusCode": 200,
"result": {
"details": [
{
"fieldsExtracted": {
"examinationName": {
"value": "<Examination_Name>"
},
"boardOrUniversityName": {
"value": "<Board_Or_University_Name>"
},
"candidateName": {
"value": "<Candidate_Name>"
},
"studentRollNumber": {
"value": "<Student_Roll_Number>"
},
"dateOfBirth": {
"value": "<Date_Of_Birth>"
},
"guardianName": {
"value": "<Guardian_Name>"
},
"yearOfPassing": {
"value": "<Year_Of_Passing>"
},
"marksObtained": {
"value": [
{
"subjectName": "<Subject_Name>",
"marksInWords": "<Marks_In_Words>",
"marksInFigures": "<Marks_In_Figures>"
},
{
"subjectName": "<Subject_Name>",
"marksInWords": "<Marks_In_Words>",
"marksInFigures": "<Marks_In_Figures>"
}
]
},
"totalMarksObtained": {
"value": "<Total_Marks_Obtained>"
},
"result": {
"value": "<Result_Division>"
}
},
"type": "Mark Sheet"
}
]
},
"metadata": {
"requestId": "<Request_ID>"
}
}

Success Response Details

The following table outlines the details of the success response from the Educational Certificate OCR API:

ParameterTypeDescription
statusstringThe status of the request
statusCodeintegerThe HTTP status code returned by the Educational Certificate OCR API
result.detailsarrayThe list of extracted document information objects, one per detected document
typestringThe type of the detected document (e.g., Mark Sheet)
examinationNamestringThe name of the examination (e.g., Secondary School Examination, Higher Secondary Final Examination)
boardOrUniversityNamestringThe name of the educational board or university that conducted the examination
candidateNamestringThe full name of the student or candidate
studentRollNumberstringThe roll number assigned to the student for the examination
dateOfBirthstringThe date of birth of the candidate
guardianNamestringThe name of the parent or guardian of the candidate
yearOfPassingstringThe year in which the candidate passed the examination
marksObtainedarrayThe subject-wise breakdown of marks, containing one object per subject
marksObtained[].subjectNamestringThe name of the subject
marksObtained[].marksInWordsstringThe marks obtained in the subject expressed in words (may be empty)
marksObtained[].marksInFiguresstringThe marks obtained in the subject expressed as numeric figures
totalMarksObtainedstringThe total marks obtained by the candidate across all subjects
resultstringThe final result or division awarded to the candidate (e.g., 1ST DIV., Pass with First Division)
metadata.requestIdstringThe unique request identifier provided in metadata

Error Responses

The following are the error responses from the Educational Certificate OCR API:

{
"message": "Input Validation Error: Invalid input passed for field 'image'",
"statusCode": 400,
"status": "failure"
}

Error Response Details

A failure or error response from the module contains a failure status, with a relevant status code and error message. The following table lists all error responses:

Status CodeError MessageError DescriptionError Resolution
400Input Validation Error: Invalid input passed for field 'image'The image parameter is missing or contains an invalid valueEnsure the image field is present and contains a valid image file in the request body
400File too largeThe uploaded image file exceeds the maximum allowed size of 6MBCompress or resize the image to ensure it is under 6MB before uploading
401Missing/Invalid credentialsThe request is missing the mandatory appid and appkey combination or has invalid valuesVerify and provide valid credentials from the dashboard's credentials tab
422Document Not DetectedNo valid educational document was detected in the provided imageEnsure the uploaded image contains a clear and valid 10th or 12th standard marksheet
500Internal Server ErrorAn unexpected error occurred on the serverCheck the request headers or contact the HyperVerge team for resolution
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: