View Source GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPage (google_api_content_warehouse v0.3.0)

Attributes

  • GarbageDetectorChangeList (type: integer(), default: nil) - If the garbage text detector was run, the changelist that the binary was sync'ed to (or -1 if unknown), and whether the settings had their production values (or false if unknown).
  • GarbageDetectorWasProduction (type: boolean(), default: nil) -
  • Height (type: integer(), default: nil) - Height in pixels
  • HorizontalDpi (type: integer(), default: nil) - Horizontal resolution in DPI.
  • Label (type: GoogleApi.ContentWarehouse.V1.Model.GoodocLabel.t, default: nil) -
  • PornScore (type: float(), default: nil) - Score of porn classifier from analyzing images on page. Note: This should be named porn_score, but we use PornScore as the name in order to be consistent with the rest of this proto.
  • TextConfidence (type: integer(), default: nil) - Page text recognition confidence. Range depends on the algorithm but should be consistent in a given volume. 0 is bad, 100 is good.
  • VerticalDpi (type: integer(), default: nil) - Vertical resolution in DPI.
  • Width (type: integer(), default: nil) - Width in pixels
  • block (type: list(GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageBlock.t), default: nil) -
  • mergedpageinfo (type: list(GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageMergedPageInfo.t), default: nil) -
  • postOcrConfidence (type: boolean(), default: nil) - Whether page-level text confidences and other summary data were computed by PostOcrUtils instead of the now-obsolete GarbageTextDetector
  • stats (type: GoogleApi.ContentWarehouse.V1.Model.GoodocSummaryStats.t, default: nil) - Page level stats (font size, line spacing, etc.)

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPage{
  GarbageDetectorChangeList: integer() | nil,
  GarbageDetectorWasProduction: boolean() | nil,
  Height: integer() | nil,
  HorizontalDpi: integer() | nil,
  Label: GoogleApi.ContentWarehouse.V1.Model.GoodocLabel.t() | nil,
  PornScore: float() | nil,
  TextConfidence: integer() | nil,
  VerticalDpi: integer() | nil,
  Width: integer() | nil,
  block:
    [GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageBlock.t()] | nil,
  mergedpageinfo:
    [GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageMergedPageInfo.t()]
    | nil,
  postOcrConfidence: boolean() | nil,
  stats: GoogleApi.ContentWarehouse.V1.Model.GoodocSummaryStats.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.