View Source GoogleApi.ContentWarehouse.V1.Model.ImageRepositoryShoppingProductInformationBoundingBox (google_api_content_warehouse v0.4.0)

Contains the coordinates of the normalized bounding box.

Attributes

  • h (type: number(), default: nil) - The vertical height of the bounding box (ymax - ymin + 1), normalized by image height with range [0,1].
  • w (type: number(), default: nil) - The horizontal width of the bound box (xmax - xmin + 1), normalized by image width with range [0,1].
  • x (type: number(), default: nil) - The x coordinate (xmin), normalized by image width with range [0,1).
  • y (type: number(), default: nil) - The y coordinate (ymin), normalized by image height with range [0,1).

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.ImageRepositoryShoppingProductInformationBoundingBox{
    h: number() | nil,
    w: number() | nil,
    x: number() | nil,
    y: number() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.