AWSRekognitionTextDetection

Objective-C

@interface AWSRekognitionTextDetection

Swift

class AWSRekognitionTextDetection

Information about a word or line of text detected by DetectText.

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 in the Amazon Rekognition Developer Guide.

  • The confidence that Amazon Rekognition has in the accuracy of the detected text and the accuracy of the geometry points around the detected text.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable confidence;

    Swift

    var confidence: NSNumber? { get set }
  • The word or line of text recognized by Amazon Rekognition.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable detectedText;

    Swift

    var detectedText: String? { get set }
  • 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.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSRekognitionGeometry *_Nullable geometry;

    Swift

    var geometry: AWSRekognitionGeometry? { get set }
  • The identifier for the detected text. The identifier is only unique for a single call to DetectText.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable identifier;

    Swift

    var identifier: NSNumber? { get set }
  • 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.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable parentId;

    Swift

    var parentId: NSNumber? { get set }
  • The type of text that was detected.

    Declaration

    Objective-C

    @property (nonatomic) AWSRekognitionTextTypes types;

    Swift

    var types: AWSRekognitionTextTypes { get set }