GoodocParagraph

AI Overview😉

  • The potential purpose of this module is to analyze and understand the layout and structure of text within an image or document, such as a PDF or scanned document. This includes identifying paragraphs, lines, and individual characters, as well as their orientation, spacing, and other visual attributes.
  • This module could impact search results by allowing Google to better understand and index content that is not in plain text format, such as images of documents or scanned books. This could improve the search engine's ability to retrieve relevant results from these types of sources, and provide more accurate snippets and previews.
  • To be more favorable to this function, a website could ensure that their document and image content is of high quality and easily readable, with clear and consistent formatting. They could also provide alternative text versions of their content, such as transcribing text from images or providing HTML versions of PDF documents. Additionally, using clear and descriptive file names and metadata for their documents and images could help Google's algorithms better understand the content and improve its visibility in search results.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

GoogleApi.ContentWarehouse.V1.Model.GoodocParagraph (google_api_content_warehouse v0.4.0)

Represents a paragraph of text in OCRed content.

Attributes

  • Box (type: GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t, default: nil) -
  • FirstLineIndent (type: integer(), default: nil) -
  • Label (type: GoogleApi.ContentWarehouse.V1.Model.GoodocLabel.t, default: nil) -
  • LeftIndent (type: integer(), default: nil) -
  • LineSpacing (type: integer(), default: nil) -
  • OrientationLabel (type: GoogleApi.ContentWarehouse.V1.Model.GoodocOrientationLabel.t, default: nil) - Which way is upright for this paragraph and what is the dominant reading order?
  • RightIndent (type: integer(), default: nil) -
  • RotatedBox (type: GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox.t, default: nil) - If RotatedBox is set, Box must be set as well. See RotatedBoundingBox.
  • SpaceAfter (type: integer(), default: nil) -
  • SpaceBefore (type: integer(), default: nil) -
  • SubsumedParagraphProperties (type: list(GoogleApi.ContentWarehouse.V1.Model.GoodocParagraph.t), default: nil) - If we merge any paragraphs into this one (through the MergeParagraphWithNext() interface in goodoc-editing.h), then we append the properties of the merged paragraph here, for debugging and to avoid losing any info. Note that the SubsumedParagraphProperties Paragraphs do not contain Routes.
  • TextConfidence (type: integer(), default: nil) - Paragraph text recognition confidence. Range depends on the algorithm but should be consistent in a given volume. 0 is bad, 100 is good.
  • Width (type: integer(), default: nil) -
  • alignment (type: integer(), default: nil) -
  • droppedcap (type: GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphDroppedCap.t, default: nil) -
  • route (type: list(GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphRoute.t), default: nil) -

Summary

Types

t()

Functions

decode(value, options)

Unwrap a decoded JSON object into its complex fields.

Types

Link to this type

t()

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.GoodocParagraph{
  Box: GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t() | nil,
  FirstLineIndent: integer() | nil,
  Label: GoogleApi.ContentWarehouse.V1.Model.GoodocLabel.t() | nil,
  LeftIndent: integer() | nil,
  LineSpacing: integer() | nil,
  OrientationLabel:
    GoogleApi.ContentWarehouse.V1.Model.GoodocOrientationLabel.t() | nil,
  RightIndent: integer() | nil,
  RotatedBox:
    GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox.t() | nil,
  SpaceAfter: integer() | nil,
  SpaceBefore: integer() | nil,
  SubsumedParagraphProperties: [t()] | nil,
  TextConfidence: integer() | nil,
  Width: integer() | nil,
  alignment: integer() | nil,
  droppedcap:
    GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphDroppedCap.t() | nil,
  route: [GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphRoute.t()] | nil
}

Functions

Link to this function

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.