Trash Detection Computer Vision Model

byTrash AnnotationsTask:
Object Detection
License:CC BY 4.03.05k views162 downloads

How to use the Trash Detection Detection API

Try This Model

Drop an image here or click to upload

Or try a test image 

Code Snippets

from inference_sdk import InferenceHTTPClient

CLIENT = InferenceHTTPClient(
    api_url="https://serverless.roboflow.com",
    api_key="API_KEY"
)

result = CLIENT.infer("YOUR_IMAGE.jpg", model_id="trash-detection-kcsnu/4")
Give your agent everything it needs

Or, Use Free Paper, Plastic and Glass Detection API

Powered by general detection model

Code
pip install inference-sdk
# 1. Import the library
from inference_sdk import InferenceHTTPClient

# 2. Connect to your workspace
client = InferenceHTTPClient(
  api_url="https://serverless.roboflow.com",
  api_key="API_KEY"
)

# 3. Run your workflow on an image
result = client.run_workflow(
  workspace_name="<YOUR_WORKSPACE>",
  workflow_id="<YOUR_WORKFLOW_ID>",
  images={
    "image": "YOUR_IMAGE.jpg"  # Path to your image file
  },
  parameters={
    "classes": "paper, plastic, glass, metal, cardboard"
  },
  use_cache=True  # cache workflow definition for 15 minutes
)

# 4. Get your results
print(result)

Run on custom image

Drop an image here or click to upload

Detecting classes:
Or try a test image 

About Trash Detection Model

Here are a few use cases for this project:

  1. Waste Sorting Automation: The model can be used in waste management facilities to automatically sort trash into different categories, increasing the efficiency and accuracy of recycling processes.

  2. Smart Public Bins: Integrate the model with public trash bins to automatically categorize trash that is thrown inside, and provide insight to city officials about the type of waste being generated more for better waste management planning.

  3. Clean-Up Robots: Use the model in robots designed for automatic trash pick-up in public spaces, beaches, or oceans. The robots can identify and pick up specific types of trash, contributing to environmental protection.

  4. Eco-Education Apps: Incorporate model into an educational app that helps users identify types of trash for proper recycling. It can promote environmental awareness and encourage more effective recycling habits.

  5. Industrial Waste Audit: The model can aid industries in conducting waste audits, identifying and quantifying the types of waste they generate and providing data that can help them improve their waste management strategies or comply with waste regulations.

Cite This Project

LicenseCC BY 4.0

If you use this dataset in a research paper, please cite it using the following BibTeX:

@misc{ trash-detection-kcsnu_dataset,
  title = { Trash Detection Dataset },
  type = { Open Source Dataset },
  author = { Trash Annotations },
  howpublished = { \url{ https://universe.roboflow.com/trash-annotations/trash-detection-kcsnu } },
  url = { https://universe.roboflow.com/trash-annotations/trash-detection-kcsnu },
  journal = { Roboflow Universe },
  publisher = { Roboflow },
  year = { 2023 },
  month = { aug },
  note = { visited on 2026-07-29 },
}

Similar Projects

See More