Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.22.1
flutter-version: 3.22.2

- name: Install dependencies
run: flutter pub get

- name: Build web
run: flutter build web --release --target=lib/main.dart
run: flutter build web --release lib/main.dart

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down
Empty file added .nojekyll
Empty file.
35 changes: 33 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
# final_project
Description

A new Flutter project.
Application for calculating calories based on a photograph of food. Just take a picture of your meal, and the application with the implemented AI will determine the overall information about your dish: name, calories, proteins, fats, carbohydrates.

Functionality:
Photography: The application allows the user to photograph his dish using the device camera.
Image analysis: the application analyzes the photo, determines the food in the image and their quantity.
Caloria calculation: the application uses LLAMA Model to identify information about the dish.
Product Information: the application provides information about each food product, including the name, calorie content and other important characteristics.

Why was the product created?
The project was inspired by the desire to simplify the process of monitoring nutrition and health. Many people are faced with difficulties in calculating calories and macro elements in their diet due to the complexity of diets and the lack of time for a thorough analysis of each product. We sought to create a convenient solution that would allow users to easily and quickly find out the calorie content of their meal, simply photographing it.

The purpose of the product?
The purpose of our application is to satisfy the needs of users in the exact and quick calculation of calories based on a photograph of food. We want to help people who want to control their food, but have difficulties with accurate calculation of calories and macro elements. Our application helps to make this process easier and more effective, freeing user time for other tasks.

What is the best anallain?
Our application differs in its simplicity of use. In the difference from many other applications that require the entry of each ingredient manually, our application analyzes the photo and determines the food products on it, and then uses the calorie database to calculate the total number of calories. This makes the process much faster and more convenient for the user


Requirements
iOS 11.0 or higher
Android 5.0 (API LEVEL 21) or higher
Camera of a device for photographing dishes
Internet connection to download the database of food and calorie products


Installation

Install Flutter SDK on your computer, following the instructions on the official Flutter website.
Install Android Studio or Xcode, depending on your platform, and configure the developer's environment.
Clon the application repository with GitHub.
Go to the project directory and execute the Flutter Pub Get command to install dependencies.
Run the application using the Flutter Run command.
4 changes: 2 additions & 2 deletions lib/README
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Description

Application for calculating calories based on a photograph of food. Just take a picture of your meal, and the application with the implemented AI will determine the overall information about your dish: name, calories, proteins, fats, carbohydrates.

Functionality
Functionality:
Photography: The application allows the user to photograph his dish using the device camera.
Image analysis: the application analyzes the photo, determines the food in the image and their quantity.
Caloria calculation: the application uses LLAMA Model to identify information about the dish.
Expand Down Expand Up @@ -30,4 +30,4 @@ Installation
Install Android Studio or Xcode, depending on your platform, and configure the developer's environment.
Clon the application repository with GitHub.
Go to the project directory and execute the Flutter Pub Get command to install dependencies.
Run the application using the Flutter Run command.
Run the application using the Flutter Run command.
1 change: 0 additions & 1 deletion lib/models/dataModel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ class DataModel {
required this.caloris,
required this.date,
});

}
2 changes: 1 addition & 1 deletion test/camera_page_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:provider/provider.dart';
void main() {
testWidgets('CameraPage shows camera preview', (WidgetTester tester) async {
// Mock DataProvider
await tester.pumpWidget(
await tester.pumpWidget(
ChangeNotifierProvider<DataProvider>(
create: (context) => DataProvider(),
child: MaterialApp(
Expand Down