This is a React Native application that allows users to take a photo of their food and get nutritional information using Google's Generative AI Gemini. Do not overestimate the AI accuracy, I plan to use it only for meals where it's impossible to get nutritional information by myself. Weighting your food will always be more accurate.
Currently the Google AI model Gemini 1.5 Flash has a very good 15 requests per minute and 1500 daily requests free limit, so you should be able to use it without worrying about costs.
- Take a photo or choose an image from the gallery to analyze the food.
- Get nutritional information including calories, protein, fat, carbohydrates, and name of the food.
- Use your own Gemini api key.
- Change the AI model in app during runtime
You can use a prebuilt APK in the releases or you can build the app yourself following this steps:
- Clone the repository:
git clone https://github.com/BEGDAR8ZOUHAIR/calories-ai.git
cd calories-from-image-gemini - Install dependencies:
bun install- Setup the android build environment:
bun run expo prebuild- Build the APK
cd android
./gradlew assembleReleaseThe output APK will be in this path: android/app/build/outputs/apk/release/app-release.apk
You can apply your Gemini API KEY directly inside the app, in the settings page.
