Document Classification V2
Document Classification will process both single and double-sided Identity Documents. The output includes a Classification status, Document Type, Document Issue Year, Country Code, State Name (if available) and other Capture-level checks. The complete classification details are also included in the Document object under Subject.Capabilities
The module returns a structured set of capabilities grouped into three areas: classification result, document identification, and image capture quality checks. Each capability returns a single value that downstream evaluation logic can act on.Document classification result
The overall outcome of the classification attempt, indicating whether the module was able to identify the document type.Document type
The type of identity document identified during classification (for example Passport, Identification Card, or Driving License). The value determines which verification rules and reference templates are applied by downstream modules such as Document Authentication.Document country code
This capability returns the ISO 3166-1 alpha-3 country code of the country that issued the document (e.g.GBR for the United Kingdom, USA for the United States, AUS for Australia).
The module supports documents from over 190 countries. If the issuing country cannot be determined, the value defaults to Unknown.
The full list of supported country codes follows the ISO 3166-1 alpha-3 standard. Common examples include:
Country name
This capability returns the full name of the issuing country as a human-readable string (e.g. “United Kingdom”, “United States of America”, “Australia”). This value corresponds to the country code returned by the document country code capability. If the country cannot be determined, the value defaults toUnknown.
State name
This capability returns the name of the state, province, or territory that issued the document, where applicable. This is particularly relevant for countries where identity documents are issued at the sub-national level, such as driving licences in the United States and Australia. The module supports the following regions:- United States: All 50 states and the territories of Guam and American Samoa (via the country code, not the state name field).
- Australia: All states and territories, including New South Wales, Queensland, Victoria, South Australia, Western Australia, Tasmania, Northern Territory, and Australian Capital Territory.
- United Kingdom and Crown Dependencies: Northern Ireland, Wales, Guernsey, Jersey, and Isle of Man.
- Caribbean: Curaçao.
Unknown.
Image capture quality checks
The module performs a series of image quality assessments on both the front and back sides of the submitted document. These checks evaluate whether the captured images are of sufficient quality for accurate classification and downstream processing. Poor image quality is one of the most common causes of classification failure. Glare from reflective document surfaces, motion blur from camera movement, low resolution from distant capture, washed-out colour from poor lighting, and cropped edges from incorrect framing can all prevent the module from identifying the document. Each capture quality check returns one of the following values:
The following checks are performed:
- Low resolution check:
- Glare check:
- Blur check:
- Colour check:
- Full document in view check:
Default outcomes
The module is pre-configured with the following default outcomes, which can be used in evaluation and routing logic:Input payload
The following is a sample payload used to submit document images to the Document Classification module for processing.JSON
Sample response
The following is a sample response for a successfully classified document.JSON
Document classification V1
Capabilities
Document classification result
The overall outcome of the classification attempt, indicating whether the module was able to identify the document type.Document type
The type of identity document identified during classification (for example Passport, National Identification Card, or Driving License). The value determines which verification rules and reference templates are applied by downstream modules such as Document Authentication.Document sub type
Returns the Document sub-type - a Driving Licence sub-type could include e.g. “Provisional Driving License” or “Learner Driving License”State name
Returns the state name if applicable.Document country code
Returns the country code in ISO3 format, eg. GBR.Country name
Returns the full country nameFront side low resolution check
Assesses whether the front side image has sufficient pixel density to identify document features accurately. Low resolution, from the camera being too far away or a low-quality sensor, makes text, security features, and document type harder to identify.Back side low resolution check
Assesses whether the back side image has sufficient pixel density to identify document features accurately. Low resolution, from the camera being too far away or a low-quality sensor, makes text, security features, and document type harder to identify.Front side glare check
Detects reflective glare on the front side of the document, such as bright spots or washed-out areas from overhead lighting, camera flash, or reflective document laminate, which can obscure printed text, photographs, and security features.Back side glare check
Detects reflective glare on the back side of the document, such as bright spots or washed-out areas from overhead lighting, camera flash, or reflective document laminate, which can obscure printed text, photographs, and security features.Front side blur check
Detects motion or focus blur on the front side image, caused by camera or document movement during capture or incorrect focus, which reduces the clarity of text, edges, and fine detail used for classification.Back side blur check
Detects motion or focus blur on the back side image, caused by camera or document movement during capture or incorrect focus, which reduces the clarity of text, edges, and fine detail used for classification.Front side colour check
Checks whether the front side image was captured in full colour. Colour-coded regions, flag emblems, and security holograms require colour information; a greyscale image (for example a photocopy) may lack the detail needed to classify the document and can indicate a photocopied document.Back side colour check
Checks whether the back side image was captured in full colour. Colour-coded regions, flag emblems, and security holograms require colour information; a greyscale image (for example a photocopy) may lack the detail needed to classify the document and can indicate a photocopied document.Front side full document in view check
Verifies that the entire front side of the document is visible within the captured image frame. Cropped or cut-off edges can prevent identifying the document type, reading border-area text such as passport MRZ data, or detecting edge-based security features.Back side full document in view check
Verifies that the entire back side of the document is visible within the captured image frame. Cropped or cut-off edges can prevent identifying the document type, reading border-area text such as passport MRZ data, or detecting edge-based security features.Front side photo substitution check
Returns Front Side Photo Substitution Check resultBack side photo substitution check
Returns Back Side Photo Substitution Check resultFront side digital tamper check
Returns Front Side Digital Tamper Check resultBack side digital tamper check
Returns Back Side Digital Tamper Check resultFront side document liveness check
Returns Front Side Document Liveness Check resultBack side document liveness check
Returns Back Side Document Liveness Check resultInput payload
The following is a sample payload used to submit data to the Document classification V1 module for processing.JSON
Sample response
The following is a sample response returned by the module.JSON