Skip to content

Commit

Permalink
Release V3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
marinPassio committed Feb 23, 2024
1 parent 84c7385 commit dd5cb11
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Passio SDK

[![release](https://img.shields.io/badge/release-v3.0.0-brightgreen)](https://github.com/Passiolife/Passio-Nutrition-AI-Android-SDK-Distribution/releases/tag/v3.0.0) [![release](https://img.shields.io/badge/platform-Android-lightgray)]() [![release](https://img.shields.io/badge/minimum--suported--version-26-lightgray)](https://developer.android.com/about/versions/oreo) [![release](https://img.shields.io/badge/Kotlin-v1.6.10-informational)](https://github.com/JetBrains/kotlin/releases/tag/v1.6.10) [![release](https://img.shields.io/badge/codelab-Get_started-important)](https://musing-gates-4e7160.netlify.app/#0)
[![release](https://img.shields.io/badge/release-v3.0.1-brightgreen)](https://github.com/Passiolife/Passio-Nutrition-AI-Android-SDK-Distribution/releases/tag/v3.0.1) [![release](https://img.shields.io/badge/platform-Android-lightgray)]() [![release](https://img.shields.io/badge/minimum--suported--version-26-lightgray)](https://developer.android.com/about/versions/oreo) [![release](https://img.shields.io/badge/Kotlin-v1.6.10-informational)](https://github.com/JetBrains/kotlin/releases/tag/v1.6.10) [![release](https://img.shields.io/badge/codelab-Get_started-important)](https://musing-gates-4e7160.netlify.app/#0)

## Overview:

Expand Down
23 changes: 23 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@

Full project was build with **Kotlin 1.6.10**

## 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 simillar 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 simillar 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
)
```

## Refactored APIs

* Changed PassioFoodItem *shortName* and *verboseName* to ```name``` and ```details```. Details represent either the food item where the nutritional data comes from or the brand of the food product.

## V3.0.0-alpha

Version 3 of the Passio SDK introduces major changes to the nutritional data class and the search functionality. The SDK no longer supports offline work, there is no more local database.
Expand Down

0 comments on commit dd5cb11

Please sign in to comment.