Trash Compiler

Snap it. Sort it.

Visit Repo
Trash Compiler banner

About

## The problem it 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.

Screenshots

Trash Compiler screenshot 1Trash Compiler screenshot 2Trash Compiler screenshot 3Trash Compiler screenshot 4

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.