Skip to main content

Run OCR against an uploaded document image (front + optional back)

POST 

/v1/ocr

Run OCR against an uploaded document image (front + optional back)

Responses

Default Response

SDK usage

result, err := client.OCR.Scan(ctx, ekyc.OcrScanRequest{
Image: bytes.NewReader(imageBytes),
Filename: "doc.png",
})
final result = await sdk.ocr.scan(
image: imageBytes,
filename: 'doc.png',
);

Example

curl -X POST https://api.drukverify.com/v1/ocr \
-H "Authorization: Bearer dv_sk_test_..." \
-F "image=@doc.png" \
-F "type=cid"