View Source GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p1beta1TextAnnotation (google_api_vision v0.25.0)

TextAnnotation contains a structured representation of OCR extracted text. The hierarchy of an OCR extracted text structure is like this: TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol Each structural component, starting from Page, may further have their own properties. Properties describe detected languages, breaks etc.. Please refer to the TextAnnotation.TextProperty message definition below for more detail.

Attributes

  • pages (type: list(GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p1beta1Page.t), default: nil) - List of pages detected by OCR.
  • text (type: String.t, default: nil) - UTF-8 text detected on the pages.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p1beta1TextAnnotation{
  pages: [GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p1beta1Page.t()] | nil,
  text: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.