{"id":23467672,"url":"https://github.com/bin-detective/bindetective-ml-backend","last_synced_at":"2026-04-18T13:31:32.819Z","repository":{"id":264537340,"uuid":"893618071","full_name":"Bin-Detective/bindetective-ml-backend","owner":"Bin-Detective","description":"The Bindetective ML Service is a FastAPI-based backend for real-time waste image prediction in the Bin Detective app. It uses Robin, our custom ML model, to classify waste from image and is deployed on Google Cloud Run for serverless execution. The service integrates seamlessly with our main Express.js backend for enhanced and scalable performance","archived":false,"fork":false,"pushed_at":"2024-12-10T11:57:10.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-05T20:00:29.878Z","etag":null,"topics":["fastapi","python","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Bin-Detective.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-11-24T22:17:58.000Z","updated_at":"2024-12-10T12:01:33.000Z","dependencies_parsed_at":"2024-12-24T12:51:34.490Z","dependency_job_id":"ad4bfec7-4814-466e-b05a-312d3eb06c69","html_url":"https://github.com/Bin-Detective/bindetective-ml-backend","commit_stats":null,"previous_names":["bin-detective/bindetective-backend-grpc-ml-service","bin-detective/bindetective-ml-backend"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Bin-Detective/bindetective-ml-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bin-Detective%2Fbindetective-ml-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bin-Detective%2Fbindetective-ml-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bin-Detective%2Fbindetective-ml-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bin-Detective%2Fbindetective-ml-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bin-Detective","download_url":"https://codeload.github.com/Bin-Detective/bindetective-ml-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bin-Detective%2Fbindetective-ml-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31971485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fastapi","python","rest-api"],"created_at":"2024-12-24T12:51:19.499Z","updated_at":"2026-04-18T13:31:32.789Z","avatar_url":"https://github.com/Bin-Detective.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Robin FastAPI Service\n\n## Table of Contents\n\n1. [Project Introduction](#project-introduction)\n2. [Project Structure](#project-structure)\n\n## Project Introduction\n\nThe Bindetective ML Service Backend is a dedicated service for machine learning-based waste image prediction, integrated into the Bin Detective app. Built using the FastAPI framework, this service is designed to handle real-time image predictions for waste classification. The service accepts image URLs, downloads the images, and utilizes a pre-trained machine learning model to classify the waste type.\n\nThe service is deployed on Google Cloud Run, ensuring scalable, serverless execution. It utilizes a custom model handler, WastePredictionServicer, which is responsible for running the prediction logic based on the input image. The app also includes robust error handling, logging, and a clean API interface to interact with the frontend of the Bin Detective app.\n\nThe backend is designed for efficiency, scalability, and security, providing high-performance predictions with minimal overhead. It seamlessly integrates with other services within the Bin Detective ecosystem, including the Express-based backend, ensuring a smooth flow of data and functionality across the platform.\n\n## Project Structure\n\n```plain\nproject_root/\n│\n├── src/\n│   ├── utils/\n│   │   └── model_utils.py\n│   └── handler.py\n│\n├── .env\n├── config.py Set static environment variables here\n├── requirements.txt] Package dependencies, Use Python 3.10\n├── Dockerfile\n├── .gitignore\n└── app.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbin-detective%2Fbindetective-ml-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbin-detective%2Fbindetective-ml-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbin-detective%2Fbindetective-ml-backend/lists"}