Skip to main content

Usage Examples

∀Docs allows you to extract data from various document types using blueprint templates.

Download on theApp StoreDownload on theGoogle Play

Blueprint Examples

The ∀Docs feature uses blueprint templates to extract data from different document types. You can configure the blueprint name using the anyDocumentTemplate setting and specify the crop model using cameraProcessingMode.

Blueprint names can be pulled from Veryfi's Hub.

Camera Processing Modes

The cameraProcessingMode setting influences the greenbox detection:

  • .document - For standard document scanning (default)
  • .card - For card-shaped documents (driver licenses, insurance cards, etc.)
  • .check - For check scanning

US Driver License Example

let veryfiLensSettings = VeryfiLensSettings()
veryfiLensSettings.autoCaptureIsOn = true
veryfiLensSettings.autoRotateIsOn = true
veryfiLensSettings.documentTypes = ["any_document"]
veryfiLensSettings.anyDocumentTemplate = "us_driver_license"
veryfiLensSettings.cameraProcessingMode = .card
veryfiLensSettings.galleryIsOn = false
veryfiLensSettings.moreMenuIsOn = false

US Health Insurance Card Example

let veryfiLensSettings = VeryfiLensSettings()
veryfiLensSettings.autoCaptureIsOn = true
veryfiLensSettings.autoRotateIsOn = true
veryfiLensSettings.documentTypes = ["any_document"]
veryfiLensSettings.anyDocumentTemplate = "us_health_insurance_card"
veryfiLensSettings.cameraProcessingMode = .card
veryfiLensSettings.galleryIsOn = false
veryfiLensSettings.moreMenuIsOn = false
info

Blueprint Names: The available blueprint names can be found in Veryfi's Hub. Make sure to use the exact blueprint name as it appears in the Hub.

Camera Processing Mode: The cameraProcessingMode setting influences the greenbox detection. For card-shaped documents like driver licenses and insurance cards, use .card mode. For standard documents, use .document mode. For checks, use .check mode.