Trash Detection Computer Vision Model
How to use the Trash Detection Detection API
Try This Model
Drop an image here or click to upload
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")Or, Use Free Littering and With_Object Detection API
Powered by general detection model
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
About Trash Detection Model
Here are a few use cases for this project:
-
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.
-
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.
-
Waste Management - Waste management companies can use this model to automate the identification and segregation of waste materials, leading to increased recycling rates.
-
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.
-
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.
Tell the agent what you want to build.
Cite This Project
LicenseCC BY 4.0If 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 },
}









