Introducing the Fruit Pantry Assistant—an innovative application designed to enhance your culinary exploration. With the power of YOLOv8, our custom-trained model, at your fingertips, the contents of your pantry and fruit bowl take center stage.
Here's how it works: Upload an image, and our YOLOv8 model steps in to identify the diverse range of fruits at your disposal. To ensure precision, the detections can be refined, putting you in control of the process. Alternatively, bypass the editing phase and delve directly into a selection of nutritious recipes, thoughtfully curated based on your fruit inventory, courtesy of the Chap GPT API.
Embark on a journey that elevates your cooking experience. Uncover the potential within your ingredients and savor the rich flavors that your fruit bowl can offer. Make every meal a delightful adventure. 😋🤤
To use the Fruit Pantry Assistant:
- Clone this repository to your local machine.
- Install the required dependencies by running
pip install -r requirements.txt. - Run the Flask app using
python app.py.
- Upload a photo of your pantry or fruit bowl.
- Choose the number of meal ideas you want.
- Review detected fruits and adjust if necessary.
- Explore healthy meal ideas based on the detected fruits.
We welcome contributions from the community to enhance the Fruit Pantry Assistant project. If you'd like to contribute, please follow these steps:
- Fork the repository to your GitHub account.
- Clone your forked repository to your local machine.
- Create a new branch for your feature or bug fix.
- Make your changes, commit them, and push to your forked repository.
- Create a pull request from your branch to the main branch of the original repository.
If you encounter any issues or have suggestions for improvements, please open an issue.
- The YOLOv8 model and related code are based on Ultralytics.
- Recipe suggestions are obtained from Chat GPT API.
If you have any questions or need further assistance, you can reach us at n37patel@uwaterloo.ca.
We hope you find the Fruit Pantry Assistant project useful and fun to use. Happy organizing and happy cooking!

