DetectedCandidate class

Class that represents the results of the food detection process.

Constructors

DetectedCandidate({required List<DetectedCandidate> alternatives, required Rectangle<double> boundingBox, required double confidence, required String foodName, required PassioID passioID, AmountEstimate? amountEstimate, PlatformImage? croppedImage})
Constructs a DetectedCandidate instance.
const
DetectedCandidate.fromJson(Map<String, dynamic> json)
Constructs a DetectedCandidate from a JSON map.
factory

Properties

alternatives List<DetectedCandidate>
List of alternative detected candidates.
final
amountEstimate AmountEstimate?
Estimated amount of the detected food.
final
boundingBox Rectangle<double>
Bounding box representing the location of the detected food.
final
confidence double
Confidence level (0.0 to 1.0) of the detection.
final
croppedImage PlatformImage?
Cropped image associated with the detection.
final
foodName String
Name of the detected food.
final
hashCode int
Calculates the hash code for this DetectedCandidate object.
no setteroverride
passioID PassioID
Identifier recognized by the ML model.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
Compares two DetectedCandidate objects for equality.
override