textRecognitionForImage
Query
Detect text in an image
Response
Returns TextRecognitionResponse
Arguments
| Name | Type | Description |
|---|---|---|
imageId | ID! | The ID of the image |
options | TextRecognitionOptionsInput | Optional text recognition parameters. |
Example
query textRecognitionForImage( $imageId: ID!, $options: TextRecognitionOptionsInput) { textRecognitionForImage( imageId: $imageId, options: $options ) { results { textDetection { detectionConfidence text textConfidence } regionIndex } }}{ "imageId": "5f19c0f1-5b1e-8914-840c-701af38254fe"}{ "data": { "textRecognitionForImage": { "results": [ { "textDetection": { "detectionConfidence": 536.22, "text": "text-319c", "textConfidence": 59.83 }, "regionIndex": 489 } ] } }}