leopoldmaillard / diet-vision-flutter

DietVision is a mobile app that provides an estimate of the nutritional content of a meal from images.
MIT License
24 stars 13 forks source link

(New) Volume Estimation #17

Closed Mis0ko closed 3 years ago

Mis0ko commented 3 years ago
leopoldmaillard commented 3 years ago

Doing research on length perception.

leopoldmaillard commented 3 years ago

https://stackoverflow.com/questions/49672706/flutter-navigation-pop-to-index-1

Could be useful for the navigator.

leopoldmaillard commented 3 years ago

https://math.stackexchange.com/questions/481632/how-to-interpret-angle-of-ellipse-in-drawing-guide

leopoldmaillard commented 3 years ago

https://stackoverflow.com/questions/58533612/does-flutter-support-both-arcore-and-arkit-plugin-in-a-single-app

leopoldmaillard commented 3 years ago

❌ Thickness estimation using an elliptical area don't give good results for now. Results depend on other parameters such as the distance between the coin and the different aliments etc.

Heights of the aliments could be measured using ARCore or ARKit, it seems that it would required 2 separate implementations for iOS and Android support. Would it be convenient for the user ?

One easier path would be to take a 90 degrees picture with the coin, and give the possibility to the user to adjust the results.

leopoldmaillard commented 3 years ago

Thickness is computed dynamically with user feedback. See volumeList() function. It only takes into account the classes from the first picture.

It's a first try, we should be careful of what exactly is computing here to make sure it's the right behavior.

leopoldmaillard commented 3 years ago

BUG : thickness could be negative using the sliders.

leopoldmaillard commented 3 years ago

Behavior when we have different classes between the first and the second picture : only the classes that are BOTH in the first and the second picture are retained for volume estimation.

Mis0ko commented 3 years ago

I close the issue. We may change some algorithm for improvement in the future.