DetectifAI-Backend / README.md
blacksinisterx's picture
fix: keyframe images, video clips, evidence images, live stream webcam+URL, remove demo mode
fd50325 verified
---
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