FoodCandidates

A collection of food candidates detected by the models.

Attribute
Description

detectedCandidates

Food candidate results from visual scanning. The array is sorted by confidence.

barcodeCandidates

Food candidate results from barcode scanning (optional).

packagedFoodCode

Food candidate results from packagedFoodCode scanning (optional).


export interface FoodCandidates {
  /**
   * Food candidate results from visual scanning. The array is sorted by confidence, with the most confident result at index 0.
   */
  detectedCandidates: DetectedCandidate[]

  /**
   * Food candidate results from barcode scanning.
   */
  barcodeCandidates?: BarcodeCandidate[]

  /**
   * Food candidate results from packagedFoodCode scanning.
   */
  packagedFoodCode?: PackagedFoodCode[]
}

Last updated