Skip to main content

ID Card OCR - Quality and Other Checks

The additional checks while performing OCR on documents are grouped into the following two categories:

  1. Quality checks
  2. Other checks
info
  • "CMND" represents Chung Minh Nhan Dan (Vietnamese Identity Card)
  • "CCCD" represents the Citizen ID Card in Vietnam

Quality Checks

The following table lists all the quality checks.
The details of the response values are also provided following the table. Click here to access the bookmark.

Type of CheckSupported CountrySupported DocumentsDescriptionParameter NameAccepted ValuesAll Possible Response Values
GlareAll countriesAll officially valid documentsChecks for glare in the image. We see an issue with glare when excessive light reflection obscures the document information, making it difficult to read and verify.qualityChecks.glare"yes" or "no"

The response can be any one of the following.

  • "yes"
  • "no"
  • "not_applicable"
  • "not_supported"
BlurAll countriesAll officially valid documentsChecks for blur in the image.qualityChecks.blur"yes" or "no"

The response can be any one of the following.

  • "yes"
  • "no"
  • "not_applicable"
  • "not_supported"
Black And WhiteAll countriesAll officially valid documentsChecks if the image is a photocopy in black and white(or, grayscale).qualityChecks.blackAndWhite"yes" or "no"

The response can be any one of the following.

  • "yes"
  • "no"
  • "not_applicable"
  • "not_supported"
captured From ScreenAll countriesAll officially valid documentsChecks if the image is not of a live document but has been captured from a screen instead.qualityChecks.capturedFromScreen"yes" or "no"

The response can be any one of the following.

  • "yes"
  • "no"
  • "not_applicable"
  • "not_supported"
Partial IDAll countriesAll officially valid documentsChecks if the image of the document is captured without any of its corners(or edges) cut off.qualityChecks.partialId"yes" or "no"

The response can be any one of the following.

  • "yes"
  • "no"
  • "not_applicable"
  • "not_supported"
Face Not ClearAll countriesAll officially valid documentsChecks if the face in the image is unclear. A "yes" value for this parameter suggests an unclear face in the image.qualityChecks.faceNotClear"yes" or "no"

The response can be any one of the following.

  • "yes"
  • "no"
  • "not_applicable"
  • "not_supported"
FaceAll countriesAll officially valid documentsChecks if a face is present in the image of the document.qualityChecks.face"yes" or "no"

The response can be any one of the following.

  • "yes"
  • "no"
  • "not_applicable"
  • "not_supported"
Obscured IDAll countriesAll officially valid documentsExamines the document image for any obstruction that can be blocking information. A 'yes' parameter value indicates the presence of an obstruction in the image.qualityChecks.obscuredId"yes" or "no"

The response can be any one of the following.

  • "yes"
  • "no"
  • "not_applicable"
  • "not_supported"
Cut IDAll countriesAll officially valid documentsChecks if the document's image shows any signs of cutting.qualityChecks.cutID"yes" or "no"

The response can be any one of the following.

  • "yes"
  • "no"
  • "not_applicable"
  • "not_supported"

Details of the Response Values for the Quality Checks

The response for a quailty check parameter can be any one of the following.

  • "yes" - The image of the document in the input file has failed the test.
  • "no" - The image of the document in the input file has passed the test.
  • "not_applicable" - The check is not applicable for the type of document in the input file.
  • "not_supported" - This is the standard response when the check does not support the type of the document in the input file.

Other Checks

Type of CheckSupported CountrySupported DocumentsDescriptionParameter NameAccepted ValuesAll Possible Response Values
Return No Limit DOEVietnamVietnam National IDEnables the OCR to accept "No-limit" as a valid value for the date of expiry.returnNoLimit"yes" or "no""No-limit"
Extract Bar CodeIndiaAadhaarEnables the QR code scan feature for an Aadhaar input.otherChecks.extractBarCode"yes" or "no"Not Applicable
Expected Document SideAllAllValidates the displayed document side in the image against the specified parameter value before initiating optical character recognition (OCR). If there's a mismatch, the process is halted.
Note
The HyperVerge SDKs have this parameter enabled by default.
expectedDocumentSide"front" or "back"Not Applicable
Barcode StringAllAllOverrides the value extracted from the barcode in the barcode field and other relevant fields.otherChecks.barcodeString"barcode-string"Not Applicable
Input Image URLsAllAllProvides the links to access each of the input images in the response.otherChecks.returnInputImageUrls"yes" or "no"Objects containing URLs
Enable Retakes on SuccessAllAllEnables a customer to retake the identification journey even when the summary object in the response has the "pass" value.otherChecks.enableRetakesOnSuccess"yes" or "no"Not Applicable
Mask Aadhaar - ImageIndiaAadhaarMasks the first 8 digits of Aadhaar ID from only the image.maskAadhaar"yes" or "no"Not Applicable
Mask AadhaarIndiaAadhaarMasks the first 8 digits of Aadhaar ID from the text and image.maskAadhaar"yes" or "no"Not Applicable
Bar Code ExtractionIndiaAadhaarExtracts details from barcodeextractBarCode"yes" or "no"Expands the information extracted from the QR.

Additional Configurations

Configuration TypeSupported CountrySupported DocumentsDescriptionParameter NameAccepted ValuesAll Possible Response Values
Return ScoreAllAllReturns an associated score ranging from 0-100 for relevant fields.preferences.returnScore"yes" or "no"Range: 0-100
Return ConfidenceAllAllReturns the associated confidence for relevant fields.preferences.returnConfidence"yes" or "no""high" or "low"
Success RetakesAllAllAllows retakes even for green channels.allowSuccessRetakes"yes" or "no""high" or "low"
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: