Custom - HTTP POST

Make sure the OCR engine can handle HTTP POST Requests

Variables

  • $IMAGE_BUFFER

  • $IMAGE_BASE64


Example:

1. Google Cloud Vision

Docs:

URL:

  • https://vision.googleapis.com/v1/images:annotate?key=$YOUR_API_KEY

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