{"id":26691075,"url":"https://github.com/olahsymbo/object-detection-yolov5-fastapi","last_synced_at":"2026-05-02T22:37:13.986Z","repository":{"id":112698819,"uuid":"603692332","full_name":"olahsymbo/object-detection-yolov5-fastapi","owner":"olahsymbo","description":"object detection service ","archived":false,"fork":false,"pushed_at":"2023-11-03T19:41:01.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-11-04T20:36:23.101Z","etag":null,"topics":["computer-vision","docker","fastapi","python","yolov5"],"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/olahsymbo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null}},"created_at":"2023-02-19T09:44:16.000Z","updated_at":"2023-11-03T19:19:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"42de3c23-7526-4ef0-98ab-0e7af157cee9","html_url":"https://github.com/olahsymbo/object-detection-yolov5-fastapi","commit_stats":null,"previous_names":[],"tags_count":4,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olahsymbo%2Fobject-detection-yolov5-fastapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olahsymbo%2Fobject-detection-yolov5-fastapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olahsymbo%2Fobject-detection-yolov5-fastapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olahsymbo%2Fobject-detection-yolov5-fastapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olahsymbo","download_url":"https://codeload.github.com/olahsymbo/object-detection-yolov5-fastapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245689501,"owners_count":20656417,"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":["computer-vision","docker","fastapi","python","yolov5"],"created_at":"2025-03-26T16:17:19.253Z","updated_at":"2025-10-28T12:11:14.868Z","avatar_url":"https://github.com/olahsymbo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![ObjectDetectionService](https://github.com/olahsymbo/object-detection-yolov5-fastapi/actions/workflows/object-detection-pipeline.yml/badge.svg)](https://github.com/olahsymbo/object-detection-yolov5-fastapi/actions/workflows/object-detection-pipeline.yml)\n# Object Detection\n\nA FastAPI object detection application based on Yolov5 model.\n\n## Getting Started\n\n- Clone the project\n- `cd` into the codebase\n- run `poetry shell` and `poetry install` to set the virtual environment and install the necessary dependencies\n\n## Start the app\nSince we used docker, we can start the app by running these commands:\n\n```\nsudo docker-compose build\nsudo docker-compose up -d\n```\nThe app will be served on port `8000`\n\n## Make request\n\nAn example `curl` request:\n\n```\ncurl --location '127.0.0.1:8000/object_detect' \\\n--form 'input_file=@\"/Users/Downloads/download.jpeg\"'\n```\n\nValid response:\n```\n{\n    \"data\": [\n        [\n            {\n                \"class\": 0,\n                \"class_name\": \"person\",\n                \"bbox\": [\n                    134,\n                    330,\n                    187,\n                    579\n                ],\n                \"confidence\": 0.7723177671432495\n            },\n            {\n                \"class\": 0,\n                \"class_name\": \"person\",\n                \"bbox\": [\n                    90,\n                    373,\n                    140,\n                    587\n                ],\n                \"confidence\": 0.7619432210922241\n            },\n            {\n                \"class\": 2,\n                \"class_name\": \"car\",\n                \"bbox\": [\n                    492,\n                    314,\n                    566,\n                    430\n                ],\n                \"confidence\": 0.7516090273857117\n            },\n            {\n                \"class\": 2,\n                \"class_name\": \"car\",\n                \"bbox\": [\n                    379,\n                    321,\n                    455,\n                    460\n                ],\n                \"confidence\": 0.7398971915245056\n            },\n            {\n                \"class\": 0,\n                \"class_name\": \"person\",\n                \"bbox\": [\n                    267,\n                    332,\n                    315,\n                    541\n                ],\n                \"confidence\": 0.4890599846839905\n            },\n            {\n                \"class\": 0,\n                \"class_name\": \"person\",\n                \"bbox\": [\n                    592,\n                    322,\n                    611,\n                    389\n                ],\n                \"confidence\": 0.45573562383651733\n            },\n            {\n                \"class\": 2,\n                \"class_name\": \"car\",\n                \"bbox\": [\n                    444,\n                    313,\n                    477,\n                    400\n                ],\n                \"confidence\": 0.38912448287010193\n            },\n            {\n                \"class\": 0,\n                \"class_name\": \"person\",\n                \"bbox\": [\n                    209,\n                    324,\n                    260,\n                    553\n                ],\n                \"confidence\": 0.30747783184051514\n            }\n        ]\n    ],\n    \"message\": \"object detected successfully\",\n    \"errors\": null,\n    \"status\": 200\n}\n```\n\nError response:\n\n```\n{\n    \"message\": \"object detection failed\",\n    \"errors\": \"error\",\n    \"status\": 400\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folahsymbo%2Fobject-detection-yolov5-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folahsymbo%2Fobject-detection-yolov5-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folahsymbo%2Fobject-detection-yolov5-fastapi/lists"}