-
public class DetectedCandidateClass that represents the results of the food detection process.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringpassioIDprivate final StringfoodNameprivate final Floatconfidenceprivate final RectFboundingBoxprivate final BitmapcroppedImageprivate final List<DetectedCandidate>alternatives
-
Constructor Summary
Constructors Constructor Description DetectedCandidate(String passioID, String foodName, Float confidence, RectF boundingBox, Bitmap croppedImage, List<DetectedCandidate> alternatives)
-
Method Summary
Modifier and Type Method Description final StringgetPassioID()The id used to query the nutritional database. final StringgetFoodName()final FloatgetConfidence()Percentage of the neural network confidence level. final RectFgetBoundingBox()Relative coordinates of the object detected on an image. final BitmapgetCroppedImage()Represents a part of the original image that the classification process has been ran on. final List<DetectedCandidate>getAlternatives()-
-
Method Detail
-
getPassioID
final String getPassioID()
The id used to query the nutritional database.
-
getFoodName
final String getFoodName()
-
getConfidence
final Float getConfidence()
Percentage of the neural network confidence level. Ranges from 0f - 1f or 0% to 100%.
-
getBoundingBox
final RectF getBoundingBox()
Relative coordinates of the object detected on an image. Using PassioSDK.boundingBoxToViewTransform will determine the correct coordinates in coordinate system of current view hierarchy.
-
getCroppedImage
final Bitmap getCroppedImage()
Represents a part of the original image that the classification process has been ran on.
-
getAlternatives
final List<DetectedCandidate> getAlternatives()
-
-
-
-