textRecognitionForDataSource
Query
Detect text in a data source’s asset at a specified timestamp
Response
Returns TextRecognitionResponse
Arguments
| Name | Type | Description |
|---|---|---|
dataSourceId | ID! | The ID of the data source |
timestamp | DateTimeOffset! | The time at which text will be detected |
options | TextRecognitionOptionsInput | Optional text recognition parameters. |
Example
query textRecognitionForDataSource( $dataSourceId: ID!, $timestamp: DateTimeOffset!, $options: TextRecognitionOptionsInput) { textRecognitionForDataSource( dataSourceId: $dataSourceId, timestamp: $timestamp, options: $options ) { results { textDetection { detectionConfidence text textConfidence } regionIndex } }}{ "dataSourceId": "b4b9163d-4e7e-8dec-b0d3-1d82ce90a790", "timestamp": "2025-01-01T00:00:00.000Z"}{ "data": { "textRecognitionForDataSource": { "results": [ { "textDetection": { "detectionConfidence": 536.22, "text": "text-319c", "textConfidence": 59.83 }, "regionIndex": 489 } ] } }}