Stellen Sie sicher, dass die OCR-Engine HTTP-POST-Anfragen verarbeiten kann
$IMAGE_BUFFER
$IMAGE_BASE64
Dokumentation:
https://cloud.google.com/vision/docsarrow-up-right
URL:
https://vision.googleapis.com/v1/images:annotate?key=$YOUR_API_KEY
Inhaltstyp:
application/json
Header:
{}
Body:
Antworttyp:
JSON
Antwortabfrage:
responses[0].fullTextAnnotation.text
{ "requests": [ { "image": { "content": "$IMAGE_BASE64" }, "features": [ { "type": "TEXT_DETECTION", "maxResults": 1 } ] } ] }