Skip to content

Repository files navigation

Transform your fridge into ✨Fridg-E(yes this is a reference to Wall-E). Fridg-E helps you track the items in your fridge to help you reduce the amount of food that gets wasted. Agriculture destroys forests, land, and creates tons of carbon emissions. However, 30-40% of that food is wasted according to usda.gov

Easily trivialize being environomentally conscious while still eating good by letting Fridg-E keep track of your calories, carbon footprint, and even generate recipes that prioritizes using ingredients before they expire.

Features:

Live Scanning of Items

  • Scans items going in
  • Scans items going out
  • Estimates calories, carbon footprint, and expiration date
scanitem.2.mp4

Live 3D model of your fridge (for fun)

  • Scans items going in and out
  • Door opens and closes alongside your real fridge
3d.mp4

Real time dashboard of your fridge

  • provides recommended recipe based on oldest items in the fridge
  • per user authentication/fridge data
  • sort and search through your fridge easily image

How to use:

Setup Webapp Locally

Prerequisites: node.js

  1. Clone project and install dependencies:

    Run git clone to clone this repo. Then run npm i to install all dependencies

  2. Run project locally:

    Run npm run dev or npm start

Camera Setup (Linux):

Prerequisites packages:

  • python 3.11
  • python3.11-venv
  • python3.11-dev

Optional for remote camera:

  • v4l2loopback-dkms
  • v4l2loopback-utils
  • obs-studio-git

NOTE: rolling release of v4l2loopback is broken on Arch at the moment you will need to downgrade

Steps

NOTE: Make sure to change into the /objectDetection directory before doing these steps

  1. (Optional Remote Camera) Setup OBS Virtual Camera:

    Open OBS studio and set up a Browser source. Input link made from https://vdo.ninja/ on a mobile device with a camera. Start virtual camera.

  2. (Optional Remote Camera) Identify OBS Camera Device:

    v4l2-ctl --list-devices

    Note the /dev/videoX path for the OBS Virtual Camera.

  3. Configure Camera:

    • Edit main.py and set the camera device variable to the correct /dev/videoX path found above.
  4. Install: We've included a make file for quick installation with a virtual python environment

    make install
  5. Activate Environment:

    source .venv/bin/activate
  6. Open your firebase project console and generate a new private key as a JSON. Save it into this directory.

  7. Run Script:

    • Ensure OBS Virtual Camera is running.
    • Ensure .venv is active.
    python main.py

About

Convert your mini fridge into a smart fridge. Generates recipes, keeps track of expiration dates, and more!

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages