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

Information about a single product. For ProductNet models, each product has one label with a detection score. The label is mapped to one or multiple category ids. For PRIMI generic feature models, each product can have multiple entities, and each entity has a score. The category_id and detection_score fields are not populated for PRIMI generic feature models.

Attributes

  • categoryId (type: list(integer()), default: nil) - The possible Merlot ids for the item. There may be more than one if the product detector result corresponds to a collection of merlot ids, which can't be easily grouped up to a common ancestor, for which the detector would still make sense for all the children. E.g. a detected "chair" can be either an indoor chair or an outdoor one, however in Merlot the common ancestor of the two is furniture.
  • clusterIds (type: list(integer()), default: nil) - The k-d tree clusters for retrieval. Will be deprecated, use the token_groups instead. To add tokens/cluster_ids from new tokenization model in the future, add it to the token_groups.
  • detectionScore (type: number(), default: nil) - The localization detection score.
  • embedding (type: String.t, default: nil) - The serialized embedding values.
  • entities (type: list(GoogleApi.ContentWarehouse.V1.Model.ImageRepositoryShoppingProductInformationEntity.t), default: nil) - The recognized entities and scores.
  • featureType (type: String.t, default: nil) - Feature type (different detectors and embedders) requested.
  • productLocation (type: GoogleApi.ContentWarehouse.V1.Model.ImageRepositoryShoppingProductInformationBoundingBox.t, default: nil) - The bounding box.
  • tokenGroups (type: list(GoogleApi.ContentWarehouse.V1.Model.ImageRepositoryShoppingProductInformationProductInformationTokenGroup.t), default: nil) -

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.ImageRepositoryShoppingProductInformationProductInformation{
    categoryId: [integer()] | nil,
    clusterIds: [integer()] | nil,
    detectionScore: number() | nil,
    embedding: String.t() | nil,
    entities:
      [
        GoogleApi.ContentWarehouse.V1.Model.ImageRepositoryShoppingProductInformationEntity.t()
      ]
      | nil,
    featureType: String.t() | nil,
    productLocation:
      GoogleApi.ContentWarehouse.V1.Model.ImageRepositoryShoppingProductInformationBoundingBox.t()
      | nil,
    tokenGroups:
      [
        GoogleApi.ContentWarehouse.V1.Model.ImageRepositoryShoppingProductInformationProductInformationTokenGroup.t()
      ]
      | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.