{"id":18016492,"url":"https://github.com/nikhil25803/foodvision","last_synced_at":"2026-05-09T10:05:40.523Z","repository":{"id":206666885,"uuid":"717340140","full_name":"nikhil25803/FoodVision","owner":"nikhil25803","description":"FoodVision is a Python project focused on multiclass image classification, employing Convolutional Neural Networks (CNN).","archived":false,"fork":false,"pushed_at":"2023-11-11T12:51:23.000Z","size":9649,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T01:18:56.331Z","etag":null,"topics":["cnn","deeplearning","keras","multiclass-classification","python","python3","tensorflow","tkinter"],"latest_commit_sha":null,"homepage":"https://www.kaggle.com/code/nikhil25803/multiclass-convolutional-neural-networks","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikhil25803.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-11T06:52:05.000Z","updated_at":"2024-02-09T10:15:46.000Z","dependencies_parsed_at":"2023-11-11T13:42:55.192Z","dependency_job_id":"1e77ddf2-8c46-44d6-a14e-ff8cc9d75ccd","html_url":"https://github.com/nikhil25803/FoodVision","commit_stats":null,"previous_names":["nikhil25803/foodvision"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhil25803%2FFoodVision","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhil25803%2FFoodVision/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhil25803%2FFoodVision/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhil25803%2FFoodVision/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikhil25803","download_url":"https://codeload.github.com/nikhil25803/FoodVision/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247201490,"owners_count":20900621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cnn","deeplearning","keras","multiclass-classification","python","python3","tensorflow","tkinter"],"created_at":"2024-10-30T04:18:11.151Z","updated_at":"2026-05-09T10:05:35.470Z","avatar_url":"https://github.com/nikhil25803.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## FoodVision\nFoodVision is a **Python** project that effectively utilizes **Convolutional Neural Networks (CNN)** for food\n**image classification**. The adoption of best practices, automation through\nshell scripting, and the inclusion of both command line and GUI interfaces\ncontribute to its accessibility and usability. Future improvements aim to enhance\nthe model's performance and user experience.\n\n\n## Tools and Software Used\n![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge\u0026logo=python\u0026logoColor=ffdd54) ![TensorFlow](https://img.shields.io/badge/TensorFlow-%23FF6F00.svg?style=for-the-badge\u0026logo=TensorFlow\u0026logoColor=white) ![Keras](https://img.shields.io/badge/Keras-%23D00000.svg?style=for-the-badge\u0026logo=Keras\u0026logoColor=white) ![Matplotlib](https://img.shields.io/badge/Matplotlib-%23ffffff.svg?style=for-the-badge\u0026logo=Matplotlib\u0026logoColor=black) ![Shell Script](https://img.shields.io/badge/shell_script-%23121011.svg?style=for-the-badge\u0026logo=gnu-bash\u0026logoColor=white)\n\n## Project Structure\n\n```md\nFoodVision\n ├── 📄  LICENSE\n ├── 📄  README.md\n ├── 📄  .gitignore\n ├── 📄  requirements.txt - Contains all the dependencies\n ├── 📄  GUI.py - Generates a user-friendly GUI for image classification.\n ├── 📄  prediction.py - Allows image prediction using command line arguments.\n ├── 📄  main.py -  Builds and trains CNN models.\n └── 📂  data/ - Contains datasets and Python files for automating the download and structuring.\n └── 📂  models/ - Holds various CNN models along with their accuracy and loss curves.\n └── 📂  utils/ - Includes helper functions for data preprocessing and model evaluation.\n```\n\n## Project Setup\n\n+ Create and activate the virtual environment\n```bash\npython -m venv env\n```\n\n\u003e For windows\n```bash\nsource env/Scripts/Activate\n```\n\n\u003e For Linux\n```bash\nsource env/bin/activate\n```\n\n+ Install Dependencies\n```bash\npip install -r requirements.txt\n```\n\n+ Make a prediction - Command Line Arguments (CLI)\n```bash\npython prediction.py --help\n```\n\u003e Response\n```bash\nPredict and plot food images.\n\noptions:\n  -h, --help     show this help message and exit\n  --model MODEL  Model name or number\n  --food FOOD    Food class name\n```\n\n```bash\npython prediction.py --model 1 --food pizza\n```\n\u003e Response\n![image](https://github.com/nikhil25803/FoodVision/assets/93156825/7c06c01a-8c38-4490-a002-3e7f8338c100)\n\n+ Make a prediction - Through GUI\n```bash\npython GUI.py\n```\n\n\u003e Response\n![image](https://github.com/nikhil25803/FoodVision/assets/93156825/c7c1377e-78df-49c9-a412-d026c4a41685)\n\n## Customization?\nIf you are looking to enhance the model accuracy, run the `setup.sh` bash file to avail all the images you'll need for building the model.\n```bash\nbash setup.sh\n```\n\u003e This will automatically download and unpack the zip file and will delete unnecessary data as well.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikhil25803%2Ffoodvision","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikhil25803%2Ffoodvision","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikhil25803%2Ffoodvision/lists"}