Skip to content

BEGDAR8ZOUHAIR/calories-ai

Repository files navigation

Calories from image with Gemini AI

app screenshot app screenshot

[Get it on GitHub]

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.

Features

  • 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

Installation

You can use a prebuilt APK in the releases or you can build the app yourself following this steps:

  1. Clone the repository:
git clone https://github.com/BEGDAR8ZOUHAIR/calories-ai.git
cd calories-from-image-gemini 
  1. Install dependencies:
bun install
  1. Setup the android build environment:
bun run expo prebuild
  1. Build the APK
cd android
./gradlew assembleRelease

The output APK will be in this path: android/app/build/outputs/apk/release/app-release.apk

Usage

You can apply your Gemini API KEY directly inside the app, in the settings page.

Feel free to ask for features or open issues

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors