Custom - HTTP POST

Make sure the OCR engine can handle HTTP POST Requests

Variables

  • $IMAGE_BUFFER

  • $IMAGE_BASE64

Custom

Go to Settings ➜ Modules ➜ OCR ➜ Custom Engine - HTTP POST


Examples:

1. Google Cloud Vision

Docs: https://cloud.google.com/vision/docs

  • API Endpoint: https://vision.googleapis.com/v1/images:annotate?key=$YOUR_API_KEY_HERE

  • Content Type: application/json

  • Headers: {}

  • Body:

    { "requests": [ { "image": { "content": "$IMAGE_BASE64" },
     "features": [ { "type": "TEXT_DETECTION", "maxResults": 1 }
    ]}]}
  • Response Type: JSON

  • Response Query: responses[0].fullTextAnnotation.text

Last updated