Trash Detection Computer Vision Model

byPLM ThesisTask:
Object Detection
License:CC BY 4.0462 views16 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-k8zqx/6")
Give your agent everything it needs

Or, Use Free Littering and With_Object 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": "littering, with_Object"
  },
  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. Litter Monitoring - This model can be used by environmental services or urban planning departments to monitor and track trash levels in public spaces, so they can optimize cleaning and maintenance schedules.

  2. CSR Initiatives - Corporate entities aiming for sustainability goals can use this model in their CSR initiatives, for instance, to assess and demonstrate the impact of their clean-up efforts in public spaces or water bodies.

  3. Waste Management - Waste management companies can use this model to automate the identification and segregation of waste materials, leading to increased recycling rates.

  4. Public Awareness Campaigns - Government and non-profit organizations can use this model in public awareness campaigns, showing real-time litter conditions in various locations to encourage people to litter less and maintain cleanliness.

  5. Surveillance Systems - Surveillance camera systems can utilize this model to detect and notify when littering occurs in monitored areas such as parks, commercial properties, and city streets, allowing for quick response.

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-k8zqx_dataset,
  title = { Trash Detection Dataset },
  type = { Open Source Dataset },
  author = { PLM Thesis },
  howpublished = { \url{ https://universe.roboflow.com/plm-thesis-kefnj/trash-detection-k8zqx } },
  url = { https://universe.roboflow.com/plm-thesis-kefnj/trash-detection-k8zqx },
  journal = { Roboflow Universe },
  publisher = { Roboflow },
  year = { 2023 },
  month = { apr },
  note = { visited on 2026-07-29 },
}

Similar Projects

See More