Custom - HTTP POST
Variables
$IMAGE_BUFFER
$IMAGE_BASE64
Custom
Go to Settings ➜ Modules ➜ OCR ➜ Custom Engine - HTTP POST
1. Google Cloud Vision
Docs: https://cloud.google.com/vision/docs
URL:
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
2. OCRSpace
Link: https://ocr.space/ocrapi
URL:
https://api.ocr.space/parse/image
Content Type: application/x-www-form-urlencoded
Headers: {}
Body:
{ "base64Image":"data:image/png;base64,$IMAGE_BASE64",
"language": "jpn", "apikey": "YOUR_API_KEY_HERE" }
Response Type: JSON
Response Query: ParsedResults[0].ParsedText
Last updated