/Secure-X

A real-time crime and accident reporting system designed to enhance public safety using AI, mobile technology, and cloud services. SECURE-X enables users to capture and report incidents via a mobile app, providing real-time location, and audio data to law enforcement. The backend, powered by Firebase, processes and routes data securely.

Primary LanguageJavaScript

Secure-X

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.

Table of Contents

  1. Overview
  2. Features
  3. Tech Stack
  4. Installation
  5. Usage
  6. System Architecture
  7. API Documentation
  8. Contributing
  9. License


Screen Shots of Mobile Application:

1. Loading Screen------->

WhatsApp Image

2. Landing Screen & Login Screen

Landing Screen & Login Screen

3. Home Screen

Home Screen

4. Camera Permission for Profile Edit Screen

Camera Permission for Profile Edit Screen

5. Emergency Contact Screen

Emergency Contact Screen

6. Permissions for Camera Recording

Permissions for Camera Recording

7. Audio Permissions for Recording and Reporting

Audio Permissions for Recording and Reporting

8. Location Permission

Location Permission

9. Settings Screen

Settings Screen

10. Terms & Conditions with Privacy Policy

Terms & Conditions with Privacy Policy

Now Let know more about Secure-X App Which will help you from crimes & also help in reporting it.

1. Overview

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.


2. Features

  • 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.

3. Tech Stack

Frontend (Mobile App)

  • Framework: React Native
  • Languages: JavaScript, TypeScript
  • Dependencies:
    • react-native-camera for video/audio capture
    • react-native-geolocation for real-time location tracking
    • react-native-webrtc for live video streaming
  • APIs:
    • Google Maps API for geolocation
    • Firebase for real-time communication
    • Hugging Face for AI model integration

Backend (Server-Side)

  • 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

Police Dashboard (Web Interface)

  • Frontend: React.js
  • Backend: Node.js with RESTful APIs
  • Real-Time Communication: Firebase or WebSocket

Cloud Services

  • Hosting: AWS or Google Cloud for backend, Firebase for real-time notifications
  • AI Model Hosting: Hugging Face, AWS SageMaker, or Google AI Platform

4. Installation

Prerequisites

  • 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.

Steps

  1. Clone the Repository:
    git clone https://github.com/mahakPandeyOfficial/Secure-X.git
    cd Secure-X
  2. Install Backend Dependencies:
Copy code
cd backend
npm install
  1. Install Mobile App Dependencies:
Copy code
cd ../mobile-app
npm install
  1. Install Dashboard Dependencies:
Copy code
cd ../dashboard
npm install
  1. Environment Variables: Create .env files in each directory (backend, mobile-app, dashboard) and add your configuration details, such as API keys and database credentials.

  2. 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

5. Usage

-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.

6. System Architecture

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.

7. API Documentation

--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.

8. Contributing

We welcome contributions to enhance Secure-X! Follow these steps:

Fork the repository.

  1. Create a new branch for your feature:
Copy code
git checkout -b feature-name
  1. Commit changes:
Copy code
git commit -m "Add feature description"
  1. Push to the branch:
Copy code
git push origin feature-name
  1. Open a Pull Request.

Please make sure your code follows the coding standards and includes proper documentation.