

# TextDetection
<a name="API_TextDetection"></a>

Information about a word or line of text detected by [DetectText](API_DetectText.md).

The `DetectedText` field contains the text that Amazon Rekognition detected in the image. 

Every word and line has an identifier (`Id`). Each word belongs to a line and has a parent identifier (`ParentId`) that identifies the line of text in which the word appears. The word `Id` is also an index for the word within a line of words. 

For more information, see [Detecting text](https://docs.aws.amazon.com/rekognition/latest/dg/text-detection.html).

## Contents
<a name="API_TextDetection_Contents"></a>

 ** Confidence **   <a name="rekognition-Type-TextDetection-Confidence"></a>
The confidence that Amazon Rekognition has in the accuracy of the detected text and the accuracy of the geometry points around the detected text.  
Type: Float  
Valid Range: Minimum value of 0. Maximum value of 100.  
Required: No

 ** DetectedText **   <a name="rekognition-Type-TextDetection-DetectedText"></a>
The word or line of text recognized by Amazon Rekognition.   
Type: String  
Required: No

 ** Geometry **   <a name="rekognition-Type-TextDetection-Geometry"></a>
The location of the detected text on the image. Includes an axis aligned coarse bounding box surrounding the text and a finer grain polygon for more accurate spatial information.  
Type: [Geometry](API_Geometry.md) object  
Required: No

 ** Id **   <a name="rekognition-Type-TextDetection-Id"></a>
The identifier for the detected text. The identifier is only unique for a single call to `DetectText`.   
Type: Integer  
Valid Range: Minimum value of 0.  
Required: No

 ** ParentId **   <a name="rekognition-Type-TextDetection-ParentId"></a>
The Parent identifier for the detected text identified by the value of `ID`. If the type of detected text is `LINE`, the value of `ParentId` is `Null`.   
Type: Integer  
Valid Range: Minimum value of 0.  
Required: No

 ** Type **   <a name="rekognition-Type-TextDetection-Type"></a>
The type of text that was detected.  
Type: String  
Valid Values: `LINE | WORD`   
Required: No

## See Also
<a name="API_TextDetection_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/rekognition-2016-06-27/TextDetection) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/rekognition-2016-06-27/TextDetection) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/rekognition-2016-06-27/TextDetection) 