DEV Community

Harsh
Harsh

Posted on

2

Food Calorie Counter

Note: This is my first post on Dev, so any comments on how it can be improved are welcomed! :)

Introduction:

Hello World!
This is a post about one of my projects which I built during my college days. This is part of $ git remote <graduation> yearbook.

My Project:

The project is an Android application that tracks your daily calorie consumption. To make it easy for the users to log the food items, it uses the smartphone camera to capture the image of the food item, or we can choose an existing image from the gallery. It then detects the food item that is present in the image and the approximate nutrition information in the food item. Once the user chooses that he has consumed the item, it gets added to the database and the calories consumed are updated accordingly.

The user can also set the daily goal for calorie consumption according to his convenience. The app also has charts for the user to easily track his calorie consumption across the week. As an add-on feature, it can also calculate the BMI of the person.

Link to Code:

All the code for my project is hosted on the following url:

GitHub logo harshshinde07 / Food-Calorie-Counter

A Simple android app to keep track of food items consumed daily with its nutrition information

How I built it:

Android studio was used along with Java programming language to create the app as it was created some time back. For detecting the food items from captured images, a custom Tensorflow lite model was created and added into the application. To get the nutrition information like the calories, proteins etc. FatSecret API was used.

Additional Thoughts / Feelings / Stories:

Although the application lacks some features for it to be production ready, it was fun creating it as a part of the academic activities. I got to learn a lot about how to create custom ML models and incorporate it into the android application, how to use APIs to get data into the application, charting and lot more!

Thanks!

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay