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

Information about a product.

Attributes

  • image (type: String.t, default: nil) - The resource name of the image from the product that is the closest match to the query.
  • product (type: GoogleApi.Vision.V1.Model.Product.t, default: nil) - The Product.
  • score (type: number(), default: nil) - A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Vision.V1.Model.Result{
  image: String.t() | nil,
  product: GoogleApi.Vision.V1.Model.Product.t() | nil,
  score: number() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.