File size: 1,049 Bytes
fd50325 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ---
title: DetectifAI Backend
emoji: "\U0001F50D"
colorFrom: blue
colorTo: red
sdk: docker
app_port: 7860
---
# DetectifAI Backend API
AI-powered CCTV surveillance system backend. Runs Flask + PyTorch + YOLO on CPU.
## Features
- Video upload & processing (object detection, action recognition)
- Fire / weapon / fight / accident / wall-climbing detection
- Video captioning with BLIP
- Facial recognition with FaceNet
- Forensic report generation with local LLM (Qwen2.5-3B)
- Stripe subscription management
## Environment Variables (set in Space Settings β Secrets)
- `MONGO_URI` β MongoDB Atlas connection string
- `MINIO_ENDPOINT` β Cloud object storage endpoint (Cloudflare R2 recommended)
- `MINIO_ACCESS_KEY` β Storage access key
- `MINIO_SECRET_KEY` β Storage secret key
- `MINIO_SECURE` β `true` for HTTPS
- `JWT_SECRET` β JWT signing secret
- `STRIPE_SECRET_KEY` β Stripe secret key
- `FRONTEND_URL` β Vercel frontend URL (for CORS)
- `CORS_ORIGINS` β Comma-separated allowed origins
|