# ID Card OCR to JSON Tool

**Use case:** 

Read an identity card image and extract name, ID number, date of birth and expiry into structured JSON for KYC flows.

## Input

```json
{
  "imageUrls": [
    "https://raw.githubusercontent.com/deepinsight/insightface/master/detection/scrfd/data/id.jpg"
  ],
  "fields": [
    "name",
    "idNumber",
    "dateOfBirth",
    "expiry"
  ]
}
```

## Output

```json
{
  "imageUrl": {
    "label": "Image",
    "format": "link"
  },
  "documentType": {
    "label": "Document type",
    "format": "text"
  },
  "extractedText": {
    "label": "Extracted text",
    "format": "text"
  },
  "fields": {
    "label": "Fields",
    "format": "object"
  },
  "observedAt": {
    "label": "Read at",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Tool: Document OCR to Structured JSON](https://apify.com/scrapers_lat/document-ocr-json-tool) with a specific input configuration. Visit the [Actor detail page](https://apify.com/scrapers_lat/document-ocr-json-tool) to learn more, explore other use cases, and run it yourself.