Skip to content
Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‘οΈ eyeview.ai – Real-time Violence Detection System

EyeView Logo License: MIT Python React Flask

🚨 An AI-powered real-time violence detection and alert system designed to enhance public safety

πŸš€ Quick Start β€’ πŸ“– Documentation β€’ 🀝 Contributing β€’ ⭐ Give us a star!


✨ Features

eyeview.ai leverages cutting-edge YOLO deep learning models integrated with Flask backend and React frontend to create a comprehensive safety monitoring solution.

🎯 Core Capabilities

Feature Description Status
πŸ” Real-time Detection YOLO-powered violence detection with lag-free processing βœ… Active
πŸ“Ή Evidence Recording Automatic clip recording and Firebase storage βœ… Active
πŸ“± Instant Alerts SMS/Call notifications via Twilio integration βœ… Active
πŸ“Š Live Dashboard Real-time monitoring and incident management βœ… Active
πŸ“± Mobile Support Compatible with mobile camera feeds βœ… Active
πŸ™οΈ Smart City Ready Optimized for public safety and surveillance βœ… Active

πŸ› οΈ When Suspicious Activity is Detected:

🎯 Detection β†’ πŸ“Ή Recording β†’ ☁️ Storage β†’ πŸ“± Alert β†’ 🚨 Response
  • πŸ“Ή Evidence Capture: System records and stores short clips in Firebase
  • ⚑ Instant Alerts: SMS/Calls sent via Twilio to authorities
  • πŸ“Š Dashboard Monitoring: Real-time feed monitoring and incident history
  • πŸ” Review System: Comprehensive incident management interface

πŸ€– AI Model Details

The project uses a YOLOv11 nano model (yolo11n.pt) that was fine-tuned for violence detection. The training ran for 28 epochs, with the best model saved at epoch 28 based on the highest mAP50-95 score of 0.53977.


πŸ“ Project Structure

πŸ“¦ eyeview.ai
β”œβ”€β”€ 🐍 Backend/                    # Flask backend (YOLO + Twilio + Firebase)
β”‚   β”œβ”€β”€ 🎯 eye-view.py
β”‚   β”œβ”€β”€ πŸ“‹ requirements.txt
β”‚   β”œβ”€β”€ πŸ”§ config/
β”‚   └── πŸ“‚ models/
β”‚
β”œβ”€β”€ βš›οΈ EyeView-frontend/          # React frontend (Vite + Tailwind)
β”‚   β”œβ”€β”€ πŸ“ public/
β”‚   β”‚   β”œβ”€β”€ πŸ–ΌοΈ assets/
β”‚   β”‚   └── πŸ“„ index.html
β”‚   β”œβ”€β”€ πŸ“ src/
β”‚   β”‚   β”œβ”€β”€ 🧩 components/
β”‚   β”‚   β”œβ”€β”€ πŸ“„ pages/
β”‚   β”‚   β”œβ”€β”€ 🎨 styles/
β”‚   β”‚   └── βš™οΈ utils/
β”‚   β”œβ”€β”€ πŸ”’ .env
β”‚   β”œβ”€β”€ πŸ“¦ package.json
β”‚   β”œβ”€β”€ ⚑ vite.config.js
β”‚   └── 🎨 tailwind.config.js
β”‚
β”œβ”€β”€ πŸ“– README.md
└── πŸ“„ LICENSE

πŸ”§ Environment Configuration

🐍 Backend Configuration (Backend/.env)

# πŸ“ž Twilio Integration (SMS/Call Alerts)
TWILIO_ACCOUNT_SID=your_twilio_account_sid
TWILIO_AUTH_TOKEN=your_twilio_auth_token
TWILIO_PHONE_NUMBER=+1234567890       # πŸ“± Twilio registered number
ADMIN_PHONE_NUMBER=+919876543210      # 🚨 Alert recipient number

# πŸ”₯ Firebase Configuration
FIREBASE_CONFIG=your_firebase_config_json
FIREBASE_STORAGE_BUCKET=your_storage_bucket

βš›οΈ Frontend Configuration (EyeView-frontend/.env)

# πŸ”₯ Firebase Web SDK Configuration
REACT_APP_FIREBASE_API_KEY=your_firebase_api_key
REACT_APP_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
REACT_APP_FIREBASE_PROJECT_ID=your_project_id
REACT_APP_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
REACT_APP_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
REACT_APP_FIREBASE_APP_ID=your_app_id

# 🌐 API Configuration
REACT_APP_API_BASE_URL=http://localhost:5000

πŸš€ Quick Start Guide

πŸ“₯ Clone the Repository

git clone https://github.com/VyasaAi/eyeview.ai.git
cd eyeview.ai

🐍 Backend Setup

# Navigate to backend directory
cd Backend

# Create virtual environment
python -m venv venv

πŸ”„ Activate Virtual Environment:

πŸ’» Windows (PowerShell)
.\venv\Scripts\activate
🐧 macOS/Linux
source venv/bin/activate

πŸ“¦ Install Dependencies & Run:

# Install required packages
pip install -r requirements.txt

# Start the backend server
python eye-view.py

🟒 Backend Status: Server running on http://localhost:5000

βš›οΈ Frontend Setup

# Navigate to frontend directory
cd EyeView-frontend

# Install dependencies
npm install

# Start development server
npm run dev

🟒 Frontend Status: Dashboard available at http://localhost:5173

πŸŽ‰ Access Your Dashboard

Open your browser and navigate to the displayed URL (typically http://localhost:5173) to view the EyeView dashboard.


πŸ› οΈ Tech Stack

Backend

Python Flask YOLO OpenCV

Frontend

React Vite TailwindCSS

Cloud Services

Firebase Twilio


🀝 Open Source Contribution

🌟 EyeView thrives on community contributions! Join us in making public spaces safer.

Contributors Issues Pull Requests

πŸ”₯ How to Contribute

  1. 🍴 Fork the Repository

    # Fork on GitHub, then clone your fork
    git clone https://github.com/<your-username>/eyeview.ai.git
    cd eyeview.ai
  2. 🌿 Create Feature Branch

    git checkout -b feature/awesome-feature-name
  3. πŸ’» Make Your Changes

    • Test both frontend and backend thoroughly
    • Follow existing code conventions
    • Add comments and documentation
  4. πŸ“ Commit Your Work

    git add .
    git commit -m "feat: add awesome new feature"
  5. πŸš€ Push & Create PR

    git push origin feature/awesome-feature-name

    Then create a Pull Request on GitHub!

πŸ“‹ Contribution Guidelines

🎯 Code Standards
  • Follow PEP 8 for Python code
  • Use ESLint and Prettier for JavaScript/React
  • Write clear commit messages using conventional commits
  • Include tests for new features
  • Update documentation as needed
πŸ§ͺ Testing Requirements
  • Test new features locally before submitting
  • Ensure existing functionality remains intact
  • Add unit tests for critical functions
  • Test on multiple browsers/devices when applicable
πŸ“š Documentation
  • Add inline comments for complex logic
  • Update README for new features
  • Include usage examples
  • Document API changes

πŸ† Types of Contributions We Love

Type Description Examples
πŸ› Bug Fixes Fix existing issues Memory leaks, UI bugs, API errors
✨ New Features Add functionality New detection models, dashboard widgets
πŸ“š Documentation Improve docs Setup guides, API documentation
🎨 UI/UX Design improvements Better dashboard, mobile responsiveness
⚑ Performance Speed & optimization Faster detection, reduced latency
πŸ§ͺ Testing Add test coverage Unit tests, integration tests

πŸ“ˆ Roadmap

  • πŸ€– Advanced AI Models: Integration with more sophisticated detection algorithms
  • 🌐 Multi-language Support: Internationalization for global deployment
  • πŸ“Š Analytics Dashboard: Detailed reporting and insights
  • πŸ” Enhanced Security: Advanced authentication and encryption
  • πŸ“± Mobile App: Native mobile applications for field operations
  • πŸ—οΈ Scalability: Kubernetes deployment and microservices architecture

πŸ“œ License

This project is licensed under the GPLv3 - see the LICENSE file for details.


πŸ™ Acknowledgments

  • YOLO Team for the incredible object detection framework
  • Open Source Community for continuous support and contributions
  • Safety Advocates who inspire us to build better security solutions

πŸ“¬ Questions? Issues? Ideas?
πŸ’¬ Start a Discussion β€’ πŸ› Report Bug β€’ πŸ’‘ Request Feature


Built with ❀️ for a safer world

About

Opensource project for contribution - eyeview.ai leverages cutting-edge YOLO deep learning models integrated with Flask backend and React frontend to create a comprehensive safety monitoring solution.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages