Git Product home page Git Product logo

foodie-team-6's Introduction

foodie-team-6

Screenshot 2022-05-04 at 4 52 53 pm

CalCheck aims to recognize the number of calories associated with an image of food.

This repository contains prototypes for an application developed as part of the requirement for the Interdisciplinary Group Project module at UWE. Prototype versions were based on initial requirement specs and MVP documented in the Blackboard wiki, each version building on its predescessor.

The simplified design is as follows:

Screenshot 2022-05-04 at 3 56 01 pm

Version information

V1

A Jupyter notebook with data stored in .csv format, with the ability to determine the number of calories in a hardcoded image using the Google Vision API.

V2

A Jupyter notebook with data stored in a Firebase Firestore db.

V3

A Jupyter notebook with the ability to accept an image from a user (using a file selection iPyWidget) and determine the number of calories in it.

V4

A notebook with a Python API broken out seperately, and automated testing with the ability to scrape a folder of images and determine the calorie counts+accuracy of the labeling.

V5

A simple GUI developed using PySimpleGUI to accept an image from a user and display the number of calories using the API developed in V4. Currently in the mvp_refactored folder.

Setup and run - instructions

Setup

  • Clone the repo
  • Setup Google Cloud Vision locally, set the env variable for authentication - Refer the official tutorial
  • Create a /key folder in the project root and save the key generated by google vision (.json)
  • Setup Firebase, add the key to the same /key folder.
  • Add the calorie dataset of your choice into the /data folder (ours is titled calorie-dataset.csv, if the name is different, modify mapper_utils). We used the food-101 calorie dataset from Kaggle).
  • Run install.py to setup the dependencies.
  • Run mapper_utils.add_data_to_firestore to upload the data to firebase.

To run the GUI (for a single image)

To test/run in bulk

  • Add images to the /images folder, name them with the expected label (i.e. hamburger.png).
  • Run test.py

Sample automated test report: Screenshot 2022-04-25 at 9 48 08 pm

Links and references

foodie-team-6's People

Contributors

mahaalbashir avatar nutellaweera avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

foodie-team-6's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.