Make sure the OCR engine can handle HTTP POST Requests
$IMAGE_BUFFER
$IMAGE_BASE64
Docs:
https://cloud.google.com/vision/docsarrow-up-right
URL:
https://vision.googleapis.com/v1/images:annotate?key=$YOUR_API_KEY
Content Type:
application/json
Headers:
{}
Body:
Response Type:
JSON
Response Query:
responses[0].fullTextAnnotation.text
{ "requests": [ { "image": { "content": "$IMAGE_BASE64" }, "features": [ { "type": "TEXT_DETECTION", "maxResults": 1 } ] } ] }