{"id":24796070,"url":"https://github.com/vinayakchandra/waste-wizard","last_synced_at":"2026-05-09T00:38:55.437Z","repository":{"id":262094482,"uuid":"868415405","full_name":"vinayakchandra/Waste-Wizard","owner":"vinayakchandra","description":"Flask application that allows users to upload images of waste items and classify them into different categories.","archived":false,"fork":false,"pushed_at":"2024-11-10T13:28:21.000Z","size":56127,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T00:33:37.085Z","etag":null,"topics":["flask","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vinayakchandra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-06T10:30:18.000Z","updated_at":"2024-11-15T08:54:56.000Z","dependencies_parsed_at":"2024-11-10T14:37:44.441Z","dependency_job_id":null,"html_url":"https://github.com/vinayakchandra/Waste-Wizard","commit_stats":null,"previous_names":["vinayakchandra/waste-wizard"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinayakchandra%2FWaste-Wizard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinayakchandra%2FWaste-Wizard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinayakchandra%2FWaste-Wizard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinayakchandra%2FWaste-Wizard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinayakchandra","download_url":"https://codeload.github.com/vinayakchandra/Waste-Wizard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245343992,"owners_count":20599867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","tensorflow"],"created_at":"2025-01-30T00:30:56.765Z","updated_at":"2026-05-09T00:38:50.402Z","avatar_url":"https://github.com/vinayakchandra.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Waste-Wizard\n\n## Description\n\n`Flask` application that allows users to upload images of waste items and classify them into\ncategories such as batteries, clothes, e-waste, glass, light bulbs, organic. The app uses a\n`TensorFlow` model for image classification and provides users with information and video resources related to the type\nof waste.\n\n## Features\n\n- Upload images of waste items.\n- Classify waste items using a pre-trained TensorFlow model.\n- Display relevant information and video resources based on the classified category.\n- User-friendly interface for uploading images and viewing results.\n\n## Libraries Used \n\n- `Flask`: create the server, handle HTTP requests, manage routing\n- `TensorFlow`: load a pre-trained model (`classifyWaste.h5`)\n- `NumPy`: convert the uploaded images into arrays, normalize pixel values, and prepare them for input into the TensorFlow model for classification.\n\n## Endpoints\n\n| Endpoint               | Method | Description                                                                   |\n|------------------------|--------|-------------------------------------------------------------------------------|\n| `/`                    | GET    | Displays the main page for uploading images.                                  |\n| `/`                    | POST   | Handles image uploads and classifies the uploaded image.                      |\n| `/classify/\u003cimg_path\u003e` | GET    | Classifies the uploaded image and returns the predicted category and details. |\n| `/display/\u003cfilename\u003e`  | GET    | Displays the uploaded image.                                                  |\n\n### Endpoint Details\n\n* **`/` (GET)**: This is the home endpoint where the main upload interface is displayed. Users can upload an image here.\n\n* **`/` (POST)**: This endpoint processes the uploaded image. It checks if a file is uploaded, validates the file type,\n  saves the image, and then classifies it. After processing, it redirects to the home page and displays the\n  classification results.\n\n* **`/classify/\u003cimg_path\u003e` (GET)**: This endpoint is called to classify the uploaded image based on its path. It returns\n  the predicted waste category and additional details related to that category.\n\n* **`/display/\u003cfilename\u003e` (GET)**: This endpoint redirects to the location of the uploaded image for display purposes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinayakchandra%2Fwaste-wizard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinayakchandra%2Fwaste-wizard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinayakchandra%2Fwaste-wizard/lists"}