Skip to content

In this project, we have tried to classify garbage under the same categories as provided by the Waste Regulations 2011.

Notifications You must be signed in to change notification settings

sandeep1077/Trash-Classifier-in-Python-using-Tensorflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TRASH CLASSIFIER IN PYTHON USING TENSORFLOW

Waste Classification means to group Waste into different Categories. Each waste goes into its category at the point of dumping or collection. Under the Waste Regulations 2011, you must segregate cardboard, glass, metal, paper, plastic, trash and at source unless it is technically or economically unfeasible. Under the same regulations, you should implement the waste hierarchy; reduce, reuse, recycle, other recovery and disposal. By law, you should implement this hierarchy and segregation helps with recycling in particular. Waste segregation is included in law because it is much easier to recycle. Effective segregation of wastes means that less waste goes to landfill which makes it cheaper and better for people and the environment. It is important to segregate for public health. In particular, hazardous wastes can cause long term health problems, so it is very important that they are disposed of correctly and safely and not mixed in with the normal waste coming out of your home or office.

Objective:

In this project, we have tried to classify garbage under the same categories as provided by the Waste Regulations 2011:-


  • Cardboard
  • Glass
  • Metal
  • Paper
  • Plastic
  • Trash

Steps Involved:

  • Importing Libraries

  • Data Importing

  • Data Exploration

  • Data Configuration

  • Preparing the Data

    • Creating a Generator for Training Set
    • Creating a Generator for Testing Set
  • Writing the labels into a text file 'Labels.txt

  • Model Creation

  • Model Compilation

  • Training the Model (batch_size = 32, epochs = 10)

  • Testing Predictions

  • Saving model as 'model.h5'

  • Deploying the Model as a Web Application using Streamlit


Steps for using the Web Application

  • Cloning the Repository:

      git clone https://github.com/srijarkoroy/Garbage_Segregation.git
    
  • Entering The directory:

      cd Garbage_Segregation
    
  • Setting up the Python Environment with the dependencies:

      pip install -r Requirements.txt
    
  • Running the Web App:

      streamlit run app.py
    
  • Stopping the web app from the terminal:

      Ctrl+C
    

Demonstration


Here's a Demo on how the Web Application works

About

In this project, we have tried to classify garbage under the same categories as provided by the Waste Regulations 2011.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published