This project uses Machine Learning to estimate the number of calories in a food item.
File | Description |
---|---|
main.py | Contains the main application and the calorie estimation component |
volume.py | Contains the volume estimation component and all functions related to it |
model.py | Contains the image classification model and all functions related to it |
image_segmentation.py | Contains the image segmentation model and all functions related to it |
helpers.py | Contains helper functions - Change DebugMode to False to disable debug output |
CameraWidget.py | QWidget that deals with the user's webcam information |
ThumbWidget.py | QWidget that allows the user to change thumb measurements |
This project requires Anaconda3 and the following libraries to run:
OpenCV2
PyTorch
TorchVision
GitLFS
-
(Windows) Open Anaconda Prompt and install the libraries
conda install -c menpo opencv conda install -c pytorch pytorch torchvision conda install -c conda-forge git-lfs
-
Clone the repo:
git clone https://github.com/Yarmeli/FinalYearProject.git
-
Run the main application:
cd FinalYearProject python main.py