Secure-X is a real-time crime and accident reporting system designed to enhance public safety by leveraging AI, mobile technology, and cloud services. This project includes a mobile app, a police dashboard, and a backend server to facilitate real-time incident reporting, classification, and prioritization based on severity, assisting law enforcement with timely responses.
- Overview
- Features
- Tech Stack
- Installation
- Usage
- System Architecture
- API Documentation
- Contributing
- License
Secure-X enables users to report crimes and accidents in real time. The mobile app allows users to capture video, audio, and location data, which is sent to a centralized backend for processing. Using AI models, incidents are classified and prioritized based on type and severity. A police dashboard provides law enforcement officials with real-time notifications and access to reported incidents, ensuring timely and appropriate responses.
- Real-Time Reporting: Users can report incidents with live video, audio, and location data.
- AI-Driven Classification: Incidents are classified (e.g., fighting, accident, theft) using AI models.
- Severity-Based Prioritization: Incidents are prioritized based on their severity level.
- Police Dashboard: A web interface for law enforcement to view and respond to incidents in real-time.
- Cross-Platform Mobile App: Developed with React Native for Android and iOS compatibility.
- Secure Cloud Storage: Audio and video data is stored on cloud platforms (AWS S3 or Google Cloud).
- Real-Time Notifications: Incident notifications are sent to police stations through Firebase.
- Framework: React Native
- Languages: JavaScript, TypeScript
- Dependencies:
react-native-camera
for video/audio capturereact-native-geolocation
for real-time location trackingreact-native-webrtc
for live video streaming
- APIs:
- Google Maps API for geolocation
- Firebase for real-time communication
- Hugging Face for AI model integration
- Language: Node.js
- Machine Learning:
- Hugging Face models for incident classification
- YOLO for object detection
- Storage:
- AWS S3 or Google Cloud for media storage
- MongoDB or PostgreSQL for metadata storage
- Frontend: React.js
- Backend: Node.js with RESTful APIs
- Real-Time Communication: Firebase or WebSocket
- Hosting: AWS or Google Cloud for backend, Firebase for real-time notifications
- AI Model Hosting: Hugging Face, AWS SageMaker, or Google AI Platform
- Node.js and npm installed on your machine.
- MongoDB or PostgreSQL for backend database.
- AWS or Google Cloud account for cloud storage and hosting.
- Firebase account for real-time communication.
- Clone the Repository:
git clone https://github.com/mahakPandeyOfficial/Secure-X.git cd Secure-X
- Install Backend Dependencies:
Copy code
cd backend
npm install
- Install Mobile App Dependencies:
Copy code
cd ../mobile-app
npm install
- Install Dashboard Dependencies:
Copy code
cd ../dashboard
npm install
-
Environment Variables: Create .env files in each directory (backend, mobile-app, dashboard) and add your configuration details, such as API keys and database credentials.
-
Run the Application:
- Backend:
Copy code
cd backend
npm start
- Mobile App:
Copy code
cd ../mobile-app
npm run start
- Dashboard:
Copy code
cd ../dashboard
npm start
-Register: Users can sign up in the mobile app to report incidents. -Report Incident: Capture video or audio, add a description, and submit the report. The app sends data to the backend. -Incident Classification: The backend AI classifies the incident type (e.g., accident, fighting). -View on Dashboard: Police officers can view incidents in real-time on the dashboard with location tracking and severity indicators. -Receive Notifications: Real-time alerts are sent to nearby law enforcement stations based on incident type and severity.
The system follows a modular architecture with the following components:
-Mobile App (React Native): Captures incidents and sends data to the backend. -Firebase Connectivity with App. -Backend Server (Node.js): Manages API requests, AI model integration, and data processing. -AI/ML Models (Hugging Face, YOLO): Classify and prioritize incidents. -Cloud Storage (AWS/Google Cloud): Store media securely. -Police Dashboard (React.js): Real-time interface for monitoring incidents and locations.
--Sample API Endpoints POST /api/report - Submit a new incident report. GET /api/incidents - Retrieve list of incidents. POST /api/notifications - Send notifications to police stations. GET /api/incident/
- Retrieve specific incident details. Detailed API documentation will be added soon.
We welcome contributions to enhance Secure-X! Follow these steps:
- Create a new branch for your feature:
Copy code
git checkout -b feature-name
- Commit changes:
Copy code
git commit -m "Add feature description"
- Push to the branch:
Copy code
git push origin feature-name
- Open a Pull Request.
Please make sure your code follows the coding standards and includes proper documentation.