Skip to content

Passio SDK v3.0.1

Compare
Choose a tag to compare
@marinPassio marinPassio released this 23 Feb 11:08
· 7 commits to main since this release

V3.0.1

Added APIs

  • Reintroduced support for alternatives to visual results. Every detected candidate will have a list of alternatives: List<DetectedCandidate>. These alternatives represent contextually similar foods. Example: If the DetectadeCandidate would be "milk", than the list of alternatives would include items like "soy milk", "almond milk", etc.

  • Also, the interface FoodRecognitionListener might return multiple detected candidates, ordered by confidence. These multiple candidates represent the top result that our recognition system is predicting, but also other results that are visually similar to the top result. Example: If the first result in the list of detectedCandidates is "coffee", there might be more results in the list that are visually simillar to coffee like "coke", "black tea", "chocolate milk", etc.

  • Added PassioSearchNutritionPreview to the PassioSearchResult, for the ability to show the default serving sizes in the search functionality.

data class PassioSearchNutritionPreview(
    val calories: Int,
    val servingUnit: String,
    val servingQuantity: Double,
    val servingWeight: String
)