Git Product home page Git Product logo

smart-trash's Introduction

Smart Trash Project

Software Used

  • Raspian Operating System
  • Google Colaboratory
  • Tensorflow
    • Keras
  • OpenCV
  • Raspberry Pi gpiozero
  • Numpy
  • MatPlotLib(to visualize accuracy and loss of trained models)

Database

The database used is the famous Garbage Classification dataset found on Kaggle. It was manually separated into Training and Validation images in separate folders, which can be found above in the repo.

Notes

The train.py file was run on a GPU runtime on Google Colaboratory to speed up training. The .h5 file was exported and transferred to a Raspberry Pi 3B+, which does the detection.

cv_oldest.py was the first version of our program. This version tried to classify all 6 types of garbage(paper, plastic, metal, glass, cardboard, and trash). However, the Raspberry Pi camera was too poor to classify all of them. Additionally, the white text on the frame was difficult to see in some background settings. It also did not classify materials into biodegradable and non-biodegradable ones. There is also no LED interface.

cv_old.py was the second version. This one fixed the text, by adding a black outline around the letters. However, it still tried to classify all types of garbage and did not classify them into biodegradable and non-biodegradable. There is still no LED interface.

cv_latest.py is the final iteration of the code. After testing, we determined that the Raspberry Pi camera sensed paper, metal, and plastic the best. We also added a simple filter that classifies paper, metal, and plastic into biodegradable and non-biodegradable materials. We also added 2 LEDs which indicate which hole to put the trash in (bio/non-bio).

smart-trash's People

Contributors

a223d avatar

Watchers

 avatar

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.