https://github.com/vicolas11/supervisionapi
A FastAPI application that uses the supervision library for managing detections and inference slicing.
https://github.com/vicolas11/supervisionapi
fastapi python3 roboflow uvicorn
Last synced: 10 months ago
JSON representation
A FastAPI application that uses the supervision library for managing detections and inference slicing.
- Host: GitHub
- URL: https://github.com/vicolas11/supervisionapi
- Owner: Vicolas11
- Created: 2024-07-30T15:51:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-30T16:30:42.000Z (over 1 year ago)
- Last Synced: 2025-01-21T19:35:21.555Z (12 months ago)
- Topics: fastapi, python3, roboflow, uvicorn
- Language: Python
- Homepage: https://supervisionapi.onrender.com
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Roboflow Supervision FastAPI
This FastAPI application provides two main endpoints:
1. **Root Endpoint ("/"):** A GET endpoint that returns an HTML response indicating the server is ready, with a centered bold message "Server is ready 😋".
2. **Detect Objects Endpoint ("/detect_objects"):** A POST endpoint that accepts JSON data containing image dimensions (width, height) and pixel data. It processes the image using a YOLOv8 model for object detection, converts the detections to a JSON-serializable format, and returns the results. The endpoint supports CORS for cross-origin requests and includes error handling for invalid inputs.