# Class TextRecognitionResult

java.lang.Object
com.codename1.ai.vision.TextRecognitionResult

public final class TextRecognitionResult extends Object
OCR output with a portable block-level structure.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static final class`
  `TextRecognitionResult.TextBlock`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final TextRecognitionResult`
  `EMPTY`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TextRecognitionResult(String text, TextRecognitionResult.TextBlock[] blocks)`
  `TextRecognitionResult(String text, TextRecognitionResult.TextBlock[] blocks, VisionMetadata metadata)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `TextRecognitionResult.TextBlock[]`
  `getBlocks()`
  `VisionMetadata`
  `getMetadata()`
  `String`
  `getText()`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### EMPTY

    public static final TextRecognitionResult EMPTY

- ## Constructor Details

  - ### TextRecognitionResult

    public TextRecognitionResult(String text, TextRecognitionResult.TextBlock[] blocks)

  - ### TextRecognitionResult

    public TextRecognitionResult(String text, TextRecognitionResult.TextBlock[] blocks, VisionMetadata metadata)

- ## Method Details

  - ### getText

    public String getText()

  - ### getBlocks

    public TextRecognitionResult.TextBlock[] getBlocks()

  - ### getMetadata

    public VisionMetadata getMetadata()