> ## Documentation Index
> Fetch the complete documentation index at: https://legitimuz.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OCR + Facematch

> OCR + Facematch validation is a solution that allows for the validation of identification documents and the comparison of the document photo with the user photo.

### How it works

The user will enter the CPF in the [cpf](./fields) field and then click the [verify](./actions) button. The system will validate the CPF, and if it is valid, it will open the validation modal with a QR code to scan.

<img src="https://mintcdn.com/legitimuz/SCOhQj0Q9kaAQr0b/assets/webp/ocr-desktop.webp?fit=max&auto=format&n=SCOhQj0Q9kaAQr0b&q=85&s=e34e65ec1a1186d13f818b54e17b2a15" alt="OCR Desktop" style={{ height: 400, margin: `16px auto` }} width="1680" height="996" data-path="assets/webp/ocr-desktop.webp" />

After scanning the QR code, the user will proceed to the flow of capturing a selfie and a photo of the document.

<img src="https://mintcdn.com/legitimuz/SCOhQj0Q9kaAQr0b/assets/webp/verify-mobile.webp?fit=max&auto=format&n=SCOhQj0Q9kaAQr0b&q=85&s=6a190c810966a4c87d0761d1d7a0c771" alt="Verify Mobile" style={{ height: 550, margin: `16px auto` }} width="504" height="988" data-path="assets/webp/verify-mobile.webp" />
