Skip to content
T

Trash Compiler

Snap it. Sort it.

Created on 24th October 2026

•

T

Trash Compiler

Snap it. Sort it.

The problem Trash Compiler solves

Most people don't know which bin a piece of waste belongs in, so recyclables end up in landfill and general waste contaminates recycling. Campuses, hostels, and offices often have several bins and little guidance.

Trash Compiler is an AI waste-sorting assistant with two parts:

  • Phone-friendly web app: take or upload a photo of an item, and BinGo tells you which bin to use, with a confidence score and a short disposal tip. If the model isn't sure, it asks for a clearer photo instead of guessing.
  • Smart bin prototype: a webcam feeds the same model, and an Arduino lights the indicator for the right bin when an item is shown (red for metal and glass, white 1 for plastic, white 2 for general trash, green for paper and cardboard).

Who can use it: students, hostels, canteens, offices, and anyone trying to recycle correctly.

How it makes existing tasks easier and safer:

  • Removes guesswork: no need to memorise local sorting rules
  • Reduces contamination of recyclable waste
  • Hands-free use at a bin, which helps with hygiene
  • Works on any phone browser, with no app install
  • Can be extended with servo-driven lids and fill-level sensors for fully automated bins

Challenges we ran into

  • Small, clean dataset vs. the real webcam: Our first model, trained on a small, clean-background dataset, struggled with real items in a normal room. We added larger public datasets (Garbage Classification and Garbage Classification V2), merged similar classes (brown, green, and white glass into one glass class, cardboard into paper), capped each class to keep training fast, and added our own webcam photos.
  • Colab problems: A zip upload that looked finished was actually incomplete, and a session reset wiped our files. We re-uploaded and checked the file size before unzipping, then switched to downloading datasets directly inside Colab. We also hit the free GPU quota and moved training to a different account.
  • Python version conflicts: The newest Python version had no ready-made packages for numpy and PyTorch, which broke our install. We rebuilt a clean virtual environment and reinstalled the exact libraries we needed.
  • Hardware and serial port issues: Windows blocked the Arduino's COM port because another program was holding it, and the port number changed after replugging. We made the script detect the port, fall back to a test mode without crashing, and send commands only when the model is confident for several frames in a row.
  • Deployment errors: The cloud build failed at the OpenCV import until we used the headless OpenCV package and added the required system libraries.
  • Unreliable predictions: A single frame could flicker between classes. We added a confidence threshold, a stable-frames check, and a cooldown so the LEDs don't jump around.

Tracks Applied (2)

Open Track - Development

Trash Compiler is a full pipeline from camera to physical output, built end to end during the hackathon: ML: a YOLOv8 i...Read More

Freshman Track

We are first-year students, and Syntax Error is our first hackathon. We started with C++ and no experience in machine le...Read More

Discussion

Builders also viewed

See more projects on Devfolio