0% found this document useful (0 votes)
3 views

w11

The document outlines the development of a phone-based surveillance camera app that utilizes IP addresses for remote monitoring, allowing users to access live video feeds from security cameras via smartphones. It emphasizes features such as real-time streaming, motion detection alerts, and secure data transmission, while addressing security concerns and usability. The proposed system aims to provide a cost-effective, flexible, and user-friendly solution for home security and small business monitoring.

Uploaded by

viickyy0011
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

w11

The document outlines the development of a phone-based surveillance camera app that utilizes IP addresses for remote monitoring, allowing users to access live video feeds from security cameras via smartphones. It emphasizes features such as real-time streaming, motion detection alerts, and secure data transmission, while addressing security concerns and usability. The proposed system aims to provide a cost-effective, flexible, and user-friendly solution for home security and small business monitoring.

Uploaded by

viickyy0011
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 39

CHAPTER 1

INTRODUCTION

A phone-based surveillance camera app using an IP address enables users to monitor real-
time video feeds from security cameras remotely through their smartphones. This system
connects the surveillance camera to a local network or the internet via an IP address, which
acts as a unique identifier. The app retrieves and streams video data from the IP camera,
allowing users to view live footage, receive alerts, and control camera functions. It enhances
security and convenience by providing remote access, motion detection notifications, and
cloud or local storage options, all within a user-friendly mobile interface.

This project focuses on the development and implementation of a phone-based surveillance


camera system that utilizes IP (Internet Protocol) addresses to enable remote monitoring.
With increasing demand for cost-effective and mobile surveillance solutions, this system
provides users with the ability to access live camera feeds from anywhere using a smartphone
application.

The surveillance camera is connected to a network and assigned a unique IP address, which
allows the app to communicate with the camera over the internet or a local network. The
mobile application is designed to provide real-time video streaming, motion detection alerts,
recording features, and remote control of camera angles.

Security measures such as password protection, data encryption, and multi-user access
control are integrated to ensure privacy and prevent unauthorized access. The app also
supports features like cloud storage and playback history, giving users the ability to review
recorded footage as needed .This IP-based mobile surveillance solution offers a scalable,
flexible, and user-friendly alternative to traditional making it ideal for home security, small
businesses, and remote property monitor..

1
CHAPTER 2
PROBLEM STATEMENT

A phone-based surveillance camera app using an IP address enables users to monitor


real-time video feeds from security cameras remotely through their smartphones. This
system connects the surveillance camera to a local network or the internet via an IP
address, which acts as a unique identifier. The app retrieves and streams video data
from the IP camera, allowing users to view live footage, receive alerts, and control
camera functions. It enhances security and convenience by providing remote access,
motion detection notifications, and cloud or local storage options, all within a user-
friendly mobile interface.
This project focuses on the development and implementation of a phone-based
surveillance camera system that utilizes IP (Internet Protocol) addresses to enable
remote monitoring. With increasing demand for cost-effective and mobile surveillance
solutions, this system provides users with the ability to access live camera feeds from
anywhere using a smartphone application.
The surveillance camera Is connected to a network and assigned a unique IP address,
which allows the app to communicate with the camera over the internet or a local
network. The mobile application is designed to provide real-time video streaming,
motion detection alerts, recording features, and remote control of camera angles.
Security measures such as password protection, data encryption, and multi-user access
control are integrated to ensure privacy and prevent unauthorized access. The app also
supports features like cloud storage and playback history, giving users the ability to
review recorded footage as needed .This IP-based mobile surveillance solution offers
a scalable, flexible, and user-friendly alternative to traditional making it ideal for
home security, small businesses, and remote property monitor.

2
CHAPTER 3
LITERATURE REVIEW

Phone-based surveillance systems have emerged as cost-effective alternatives to traditional


security systems, leveraging smartphone cameras and internet connectivity. These systems
often utilize IP (Internet Protocol) addresses for remote access and monitoring.

1. Mobile Surveillance Technologies:

Studies (e.g., Jain & Bansal, 2020) highlight the evolution of mobile surveillance, where
smartphones serve as both camera and control center. These apps stream video over networks
using IP addresses, allowing real-time access from anywhere.

2. IP-Based Streaming and Access:

IP-based surveillance enables devices to be uniquely identified on a network. Apps such as IP


Webcam, Alfred, and Manything convert smartphones into IP cameras. Research shows that
this approach enhances flexibility but raises privacy and security concerns if IPs are exposed
(Kumar & Raj, 2019).

3. Security and Encryption:

Literature emphasizes the need for encrypted communication protocols (e.g., RTSP over
HTTPS, VPNs) to prevent unauthorized access. Unprotected IP addresses can be exploited,
leading to privacy breaches (Zhou et al., 2021).

4. Usability and Performance:

Usability studies note that these apps are user-friendly and require minimal setup. However,
streaming quality depends heavily on network bandwidth and latency (Chen & Li, 2022).

5. Integration with IoT and Cloud:

3
Recent work explores integrating phone-based IP surveillance with IoT systems and cloud
storage for smart home applications (Singh et al., 2023). This enhances accessibility but
introduces additional data privacy concerns.

6. Usability and Performance

Chen & Li (2022) found that user-friendly interfaces and minimal setup requirements
contribute to the popularity of these apps. However, video quality and reliability depend
heavily on the smartphone’s hardware and network conditions. Battery drain remains a
limiting factor for long-term use.

7.Integration with Smart Systems

Modern surveillance apps are increasingly integrated with smart home ecosystems. Singh et
al. (2023) demonstrated how cloud-based AI and mobile IP cameras can work together to
provide intelligent monitoring and automated alerts, enhancing home security with minimal
hardware investment.

8.Energy-efficient video transmission

Standardized security protocols for mobile IP cameras These gaps present opportunities for
future academic and industrial exploration.

4
CHAPTER 4
EXISTING SYSTEM

Existing phone-based surveillance system using IP addresses generally refers to a setup


where your smartphone connects to an IP (Internet Protocol) camera over a network (local or
internet) to view and manage video feeds. Here’s a brief breakdown of how this works:

1. Components Involved:

• IP Camera: A digital camera that connects to your Wi-Fi or Ethernet and streams
video using an IP address.

• Smartphone App: Apps like iVMS-4500, TinyCam, or manufacturer-specific ones


(e.g., Hik-Connect for Hikvision) let you monitor your IP camera.

• Router/Internet: Connects the IP camera to your phone either via local Wi-Fi or the
internet.

• Dynamic DNS (optional) : Helps access cameras remotely if the public IP address
changes frequently.

2. How It Works:

• The IP camera is assigned a local IP address via DHCP or static IP.

• The camera's feed is streamed over your network.

• The smartphone app uses the IP address (and possibly port number) to connect to the
camera.

• If remote access is needed, port forwarding or a cloud-based service allows access


from anywhere.

5
3. Key Features:

• Live viewing and recording

• Motion detection alerts

• Two-way audio (if supported)

• Cloud or local storage options

• Remote access through the internet

4. Security Considerations:

• Strong passwords and encryption

a. Disadvantages

• Hacking and Unauthorized Access: If not properly secured, these apps can be
vulnerable to hacking and unauthorized access, compromising the security of the video feeds.

• Data Breaches: Sensitive data, such as video recordings and user information, can be
exposed in the event of a data breach.

• Network Dependence: The app's functionality relies on a stable network connection,


which can be a limitation in areas with poor internet connectivity.

• Battery Life: Mobile devices may require frequent charging, which can impact the
app's functionality and reliability.

• Camera Quality: The quality of the camera on the mobile device can affect the video
feed's resolution and clarity.

• Power Supply: Mobile devices require a power source, which can be a limitation for
long-term surveillance.

• Storage Limitations: Local storage capacity on mobile devices can be limited,


requiring cloud storage or external storage solutions.

4.1 Disadvantages

6
• Hacking and Unauthorized Access: If not properly secured, these apps can be
vulnerable to hacking and unauthorized access, compromising the security of the video feeds.

• Data Breaches: Sensitive data, such as video recordings and user information, can be
exposed in the event of a data breach.

• Network Dependence: The app's functionality relies on a stable network connection,


which can be a limitation in areas with poor internet connectivity.

• Battery Life: Mobile devices may require frequent charging, which can impact the
app's functionality and reliability.

• Camera Quality: The quality of the camera on the mobile device can affect the video
feed's resolution and clarity.

• Power Supply: Mobile devices require a power source, which can be a limitation for
long-term surveillance.

• Storage Limitations: Local storage capacity on mobile devices can be limited,


requiring cloud storage or external storage solutions.

7
CHAPTER 6
PROPOSED SYSTEM

The proposed system aims to develop a secure and efficient phone-based surveillance camera
app that leverages IP address technology for remote monitoring. The app will transform a
smartphone into a surveillance camera, allowing users to access live video streams remotely
using an IP address, either through local Wi-Fi or the internet. Key features of the system will
include:

 Dynamic IP Access: The app will support Dynamic DNS (DDNS) to enable remote
access even without a static IP address.

 Secure Streaming: The app will employ end-to-end encryption (e.g., HTTPS, TLS) to
protect the video stream and user data from unauthorized access.

 Cloud Integration: For convenience, the system will offer cloud-based storage for
video footage, making it accessible anytime, anywhere.

 Motion Detection & Alerts: Integrated AI-powered motion detection will send real-
time alerts to the user’s mobile device or email.

 Low Power Consumption: Optimized video compression and adaptive streaming will
help minimize battery drain on the mobile device.

 Cross-Platform Compatibility: The app will support multiple platforms (Android,


iOS) and allow viewing via both a mobile app and a web browser.

8
This system will offer a cost-effective, flexible, and secure solution for personal or small-
scale surveillance, allowing users to monitor premises remotely with minimal hardware
setup.

 Advanced Motion Detection: Utilizing machine learning algorithms to improve


motion detection accuracy and reduce false alarms.

 Enhanced Security: Implementing robust encryption, secure authentication, and


access control mechanisms to protect video feeds and prevent unauthorized access.

6.1 Advantages

• Cost-Effectiveness:

1. No Additional Hardware Costs: Utilizing existing mobile devices eliminates the need for
dedicated surveillance hardware.

• Convenience:

1. Remote Monitoring: Users can view live video feeds from anywhere using a browser or
mobile app.

2. Easy Setup: Mobile apps often have user-friendly interfaces, making setup and
configuration straightforward.

• Flexibility:

1. Multi-Location Support: Users can monitor multiple locations from a single interface.

2. Device Flexibility: Mobile devices can be placed in various locations, making them
suitable for different surveillance needs.

• Scalability:

1. Cloud Storage: Cloud storage options provide scalable storage solutions for video
recordings.

2. Easy Expansion: Users can easily add more devices to their surveillance system as needed.

9
• Additional Benefits:

1. Motion Detection: Many apps include motion detection features that trigger alerts or
recording.

2. Alerts and Notifications: Users receive real-time notifications when motion is detected or
other events occur.

CHAPTER 7
SYSTEM REQUIREMENTS

To implement the phone-based live tracking system using the IP Webcam app, certain
hardware, software, and network conditions must be met to ensure smooth performance and
real-time data access. Firstly, the system requires an Android smartphone with essential
features such as a functional camera, GPS sensor, and Wi-Fi connectivity. This device will
run the IP Webcam application to capture live video and location data. Additionally, a Wi-Fi
router or hotspot is needed to create a local network that connects the smartphone with the
viewer's device, such as a laptop or desktop computer. These devices must be on the same
Wi-Fi network to enable proper communication and data transfer.

From a software perspective, the smartphone must have the IP Webcam app installed, which
is available for free on the Google Play Store. The viewing device should have an updated
web browser (such as Google Chrome, Mozilla Firefox, or Microsoft Edge), which will be
used to access the video and sensor data by typing the phone’s local IP address (e.g.,
http://192.168.0.127:8080). Optionally, media players like VLC can be used to stream video
directly from the IP feed. No internet connection is required, as the system operates entirely
on a local network, making it efficient and secure for closed-environment use. Together, these

10
components form a lightweight, cost-effective tracking system that is easy to set up and
suitable for real-time monitoring.

7.1 Functional Requirements

• Device camera access :The app must allow the smartphone’s camera to be used for
live video streaming.

• IP Address Streaming: The app must allow the smartphone to function as an IP


camera, providing a unique IP address (via local or external network) for remote access.

• Remote Access: Users must be able to access live video feeds remotely through a web
browser or mobile app.

• Motion Detection: The app should include motion detection features, triggering alerts
to the user when movement is detected.

• Storage: Users Cloud should be able to store video footage on the cloud for easy
access and retrieval.

• Security and Encryption: The app must use end-to-end encryption (e.g., HTTPS, TLS)
to protect the video feed and personal data from unauthorized access.

• User Authentication: The app should require login with secure authentication methods
(e.g., username/password, two-factor authentication) for added privacy and security.

• Battery Management: The app should minimize battery consumption during


continuous surveillance, using adaptive video quality and compression based on network
conditions.

7.2 Non-functional Requirements

• Performance:
The app should provide smooth video streaming with minimal lag, supporting various
network conditions (e.g., Wi-Fi, 4G/5G).

11
Video stream quality should automatically adjust based on available bandwidth (adaptive
streaming).
• Scalability:
The system must be able to handle multiple devices (smartphones) operating as cameras, and
scale to support larger networks if needed.
• Reliability:
The app should operate without crashes or interruptions for long periods, especially during
continuous surveillance.
Video storage and retrieval should be fast and reliable.
• Usability:
The app should have a simple and intuitive user interface for setting up, viewing, and
managing the surveillance feed. Users should be able to configure the system with minimal
technical knowledge.
• Security and Privacy:
The app should protect user data and video feeds through encryption and secure protocols.
Access to the video feed should be restricted to authorized users only.
• Availability:
The app should be available 24/7, with minimal downtime for maintenance or updates.
Cloud storage should be reliable with sufficient uptime for accessing stored footage.

• Interoperability:
The app should be compatible with different operating systems and integrate easily with
various network configurations (e.g., home Wi-Fi, mobile data).
• Battery Efficiency:
The app should optimize the phone’s battery usage to ensure long-lasting operation,
especially when the app is streaming continuously.
• Data Compliance:
The app should comply with relevant data protection regulations (e.g., GDPR, CCPA)
when storing or transmitting personal data.

7.3 HARDWARE REQUIREMENTS

 Smartphone: Operating System: Android (version 7.0 or higher) or iOS (version 12.0
or higher).

12
 Camera: A functional rear camera with a minimum of 8 MP resolution for clear video
quality.
 Processor: A multi-core processor (e.g., Qualcomm Snapdragon, Apple A-series) for
efficient video streaming.
 RAM: Minimum of 2 GB RAM for smooth operation, especially during continuous
video streaming.
 Storage: At least 16 GB of internal storage for app installation, temporary video
storage, and cache.
 Network Connectivity: Wi-Fi (preferably 5 GHz support for faster video streaming).
Mobile Data (4G/5G) for remote access and streaming.
 Internet Access: Wi-Fi Router: If using a local IP, a reliable Wi-Fi router with
good coverage.

7.4 SOFTWARE REQUIREMENTS

Operating System:
 Android: Version 7.0 or higher (for compatibility with the latest APIs and features).
 iOS: Version 12.0 or higher (for smooth app functionality and access to the camera
API).
 Android Studio: For Android app development (supports Java/Kotlin).
 Xcode: For iOS app development (supports Swift/Objective-C).
Streaming Protocols:
 RTSP (Real-Time Streaming Protocol): For real-time video streaming over the
network.
 WebRTC (Optional): For peer-to-peer video streaming and real-time communication.
 HTTP/HTTPS: For web-based access or control of the surveillance feed.
Cloud Integration (Optional):
 AWS SDK or Google Cloud SDK: For storing and retrieving video footage from the
cloud.
 Firebase Cloud Messaging: For sending push notifications to users.
Security and Encryption:
 SSL/TLS: To encrypt video streams and ensure secure communication between the
phone and the remote server or client.
 OAuth2.0: For secure user authentication and authorization.
 AES Encryption: For encrypting stored video data (if supported).

13
Motion Detection (Optional):
 OpenCV Library: For implementing motion detection or computer vision features
(available for Android/iOS).
 TensorFlow Lite (for AI-based features): For real-time object detection and facial
recognition (optional).
Networking Libraries:
 Socket.IO: For real-time, bi-directional communication (if WebRTC is not used).
 Retrofit (Android) / Alamofire (iOS): For HTTP/HTTPS communication between the
app and cloud or remote server.
Database (Optional for Local Storage):
 SQLite: For local storage of app settings and configurations (on-device database for
Android and iOS).
 Firebase Firestore: For cloud-based real-time storage of user preferences, settings, and
recorded data.
Testing and Debugging Tools:
 Android Emulator / iOS Simulator: For testing the app in various conditions and
environments.
 Postman: For testing API endpoints and ensuring smooth communication between the
app and cloud services.

CHAPTER 8
METHODOLOGY

The development of the phone-based surveillance camera app using an IP address follows a
System Development Life Cycle (SDLC) approach. Below is a step-by-step methodology that
outlines the key phases in building and deploying the application:

Requirement Analysis

• Objective:

Understand the key requirements of the app in terms of user needs, functionality, security, and
performance.

14
• User Requirements:

Ability to stream live video using IP address.Motion detection and real-time alerts.

Cloud-based storage for video footage.Secure video streaming with encryption.

• Technical Requirements:

Compatible with Android (7.0+) and iOS (12.0+).Use of RTSP/HTTP/HTTPS for video
streaming.Cloud storage service integration (e.g., AWS, Firebase).

Design Phase

• Objective:Design the system architecture, user interface (UI), and database structure.

System Architecture:

• Mobile App: The mobile device will function as an IP camera, streaming video to a
remote server or directly to a client.

• Backend: The backend will handle user authentication, cloud storage (if required), and
communication between mobile devices.

• IP Streaming: Utilize protocols like RTSP or HTTP to stream video feeds.

• Security Design: Implement SSL/TLS encryption for secure communication, with


AES encryption for stored footage.

• UI/UX Design:Design a user-friendly interface for easy setup of surveillance, live


streaming, and configuration of settings.Design will include easy-to-use controls for
configuring alerts, notifications, and accessing recorded videos.

Development Phase:

• Objective:

Develop the application using suitable programming languages and frameworks.

• Frontend Development:

Use Android Studio (for Android) and Xcode (for iOS) to build the mobile app.

15
Implement features such as video capture, live streaming, motion detection, and push
notifications.

Ensure the app can access the camera hardware and handle different video resolutions
efficiently.

• Backend Development (if applicable):

Use cloud services like AWS, Firebase, or custom servers to manage video storage and real-
time data.Set up databases (e.g., Firebase Firestore) for storing user data and
settings.Implement motion detection using libraries like OpenCV or TensorFlow Lite.

• Security Implementation:

Implement SSL/TLS encryption for video transmission.Ensure secure user authentication


using OAuth2.0 or Firebase Authentication.Implement AES encryption for stored video
footage.

Testing Phase

• Objective: Ensure the app is stable, functional, and secure before release.

• Unit Testing:Test individual components such as video streaming, camera access, and
motion detection to ensure they work as expected.

• Integration Testing: Ensure smooth integration between the mobile app, cloud
services, and backend systems. Test video streaming over various network conditions (Wi-Fi,
4G, 5G).

• Security Testing: Test for vulnerabilities such as weak encryption, unauthorized


access, and data leakage. Perform penetration testing and ensure compliance with security
standards.

• Performance Testing: Test the app for speed, efficiency, and responsiveness,
especially during long periods of surveillance. Monitor battery usage, data consumption, and
system load.

• User Testing (Beta Testing):Release a beta version to a limited group of users to


gather feedback on functionality, UI/UX, and performance.

16
Deployment Phase

• Objective: Deploy the app to app stores and ensure that it is available for users to
download.

• App Store Deployment: Prepare app packages for Google Play (APK) and Apple App
Store (IPA).Follow the respective store guidelines for app submission and approval.Ensure all
app assets (screenshots, descriptions, etc.) are in compliance with store requirements.

• Cloud/Server Deployment: If cloud storage is used, ensure cloud storage is correctly


set up and accessible for video footage storage and retrieval.Set up continuous monitoring for
server health and performance.

Maintenance Phase

• Objective: Provide ongoing updates and support for the app after deployment.

• Bug Fixing: Address any bugs or issues that arise after the app is live. Regularly
update the app with fixes for security vulnerabilities or performance improvements.

• Feature Enhancements: Add new features based on user feedback, such as enhanced
motion detection, integration with smart home systems, or AI-based features for object
detection.

• Security Patches: Periodically update the security protocols to address any emerging
vulnerabilities or regulatory requirements.

Documentation and User Training

• Objective: Provide user manuals, guides, and technical documentation.

• User Documentation: Create an easy-to-understand user guide that explains how to set
up and use the app, access remote feeds, and configure alerts.

• Technical Documentation: Provide detailed documentation on the app's architecture,


API endpoints (if any), and setup instructions for developers.

• Tools and Technologies Used: Programming Languages: Java/Kotlin (for Android),


Swift (for iOS)

• Frameworks: Android Studio, Xcode, Firebase, AWS

17
• Protocols Libraries: OpenCV, WebRTC, RTSP, SSL/TLS, OAuth2.0

• cloud Storage: Firebase, AWS S3

CHAPTER 9
MODULES DESCRIPTION

1. Mobile Capture Module


Function:
This module operates on the Android smartphone. It uses the IP Webcam app to capture live
video through the phone's camera and location data via the built-in GPS sensor.

18
Key Features:
Captures real-time video and audio
Retrieves GPS coordinates and sensor data (like compass, accelerometer)
Encodes and prepares data for local streaming
Starts a local server at an IP address (e.g., 192.168.0.x:8080)

2. Streaming & Hosting Module


Function:
Hosted within the IP Webcam app, this module sets up a local web server on the smartphone.
It allows other devices on the same Wi-Fi network to access live video and data streams.

Key Features:
Hosts a local server using HTTP
Serves video feed via MJPEG or video player endpoints
Shares sensor and GPS data as JSON via specific URLs (e.g., /sensors.json, /gps)
Can support multiple client connections for monitoring

3. Location Tracking Module


Function:
Responsible for capturing and broadcasting real-time GPS coordinates from the smartphone.
It allows remote users to track the device’s movement.

Key Features:

Continuously updates location via GPS


Sends coordinates over the network through /gps endpoint
Can be integrated with mapping tools to show live location on a map (optional)

4. User Interface (Browser) Module


Function:
This module represents the client side, typically a browser running on a PC, laptop, or tablet.
The user views the video stream and optionally location data.

19
Key Features:
Accesses stream using the phone’s IP address
Displays live video feed
Can display sensor and GPS data in raw or visual format
Requires no extra software—only a web browser

5. Network Communication Module


Function:
Ensures that all communication between the phone and viewing device happens reliably over
the local Wi-Fi network.

Key Features:
Manages local IP addressing and data transfer
Handles connection between devices without internet
Relies on a router or mobile hotspot
Must maintain sufficient bandwidth for real-time streaming

6. Security & Access Control Module (Optional/Advanced)


Function:
Ensures only authorized users can access the live stream.

Key Features:
Enables password protection within the IP Webcam app
Can restrict access based on IP or network rules

CHAPTER 10
PROPOSED ALGORITHM

// Location tracking function


function startTracking() {

20
if (navigator.geolocation) {
const options = { enableHighAccuracy: true, maximumAge: 5000 }; // Adjust accuracy
and maximum age
navigator.geolocation.watchPosition(
(position) => {
const locationData = {
latitude: position.coords.latitude,
longitude: position.coords.longitude,
};

// Send data to backend via WebSocket


socket.send(JSON.stringify(locationData));
},
(error) => {
console.error(`Error getting location: ${error.message}`);
},
options
);
} else {
console.error("Geolocation is not supported by this browser.");
}
}

// WebSocket connection and data handling


const socket = new WebSocket("ws://your-backend-address:your-backend-port");

socket.onmessage = (event) => {


const locationData = JSON.parse(event.data);

// Update the map with the new location (using a map library like Leaflet)
map.panTo([locationData.latitude, locationData.longitude]);
// Update or create marker on the map

21
};

CHAPTER 11
DESIGNING

22
11.1) Dataflow Diagram

A phone-based surveillance camera system involves the capture and transmission of video
feeds from a camera to a user’s mobile device. The system begins with the camera capturing
video footage, which is then transmitted to the user’s phone via a wireless connection. The
phone receives the video feed and displays it on the screen, allowing the user to monitor the
surveillance area in real-time. The user can also control the camera’s movements and adjust
settings such as resolution and frame rate. Additionally, the system allows for video recording
and storage, either locally on the phone or remotely in the cloud. Overall, the system provides
a convenient and effective way for users to monitor and secure their surroundings using their
mobile device.

23
11.2) Entity RelationShip Diagram

The ER model diagram consists of several entities, including Camera, User, Video Feed,
Recording, and Settings. The Camera entity has attributes such as Camera ID, Name, and IP
Address. The User entity has attributes such as User ID, Username, and Password. The Video
Feed entity has attributes such as Feed ID, Camera ID, and Video Quality. The Recording
entity has attributes such as Recording ID, Camera ID, Start Time, and End Time. The
Settings entity has attributes such as Setting ID, Camera ID, Resolution, and Frame Rate. The
relationships between the entities are as follows: a camera can have multiple video feeds, a
user can access multiple cameras, a video feed is associated with one camera, a recording is
associated with one camera, and a setting is associated with one camera. The IP Webcam
application acts as an interface between the camera and the user's phone, allowing users to
view live video feeds, record videos, and adjust camera settings remotely.

11.3) UML Diagrams

24
Each mobile device hosts a single instance of the IPWebcam class, which manages the live
video stream through attributes like webcam ID and stream URL, and offers methods to start,
stop, and provide the stream. The WebApplication class represents the interface through
which users access and control the video stream. It includes attributes such as app ID, stream
URL, and recording status, and provides methods to connect to the stream, play it, record,
and stop the stream. Finally, the Recording class captures the details of each surveillance
session, including recording ID, start and end time, and file path, with methods to save or
delete recorded files.

Relationships between classes include one-to-many associations between User and


MobileDevice, User and WebApplication, and WebApplication and Recording. The diagram
highlights the interactions required for a mobile device to stream video using an IP address,
and for a web application to consume, control, and record this stream. This UML structure
clearly models the components and behavior of a simple IP-based mobile surveillance
system.

25
11.3.1) Class Diagram

The class diagram for the mobile surveillance system models the key components and their
relationships involved in turning a smartphone into an IP-based security camera. At the center
of the system is the User class, which represents the person operating the application. This
class includes basic user details such as userId, name, and email, and provides actions like
viewStream(), startRecording(), and stopRecording(). The MobileDevice class interacts with
the IPWebcam class, which handles video streaming functionality. This class includes
attributes such as webcamId, streamURL, and resolution, and exposes methods like
startStreaming() and provideStream() to control the video feed. On the viewing end, the
WebApplication class acts as the interface that allows users to access and control the camera
stream. It maintains attributes like appId, streamURL, and isRecording, and provides
methods for connecting to the stream, playing it, and recording footage. Lastly, the Recording
class manages the data for each saved video segment, including recordingId, startTime,
endTime, and filePath, with methods to save or delete the recording.s.

26
11.3.2) Sequence Diagram

A phone-based surveillance camera system involves a sequence of interactions between the


camera, the user's mobile device, and the cloud storage. The sequence begins with the user
launching the surveillance app on their mobile device, which sends a request to the camera to
initiate video streaming. The camera responds by transmitting the video feed to the user's
phone, which displays the feed in real-time. The user can then control the camera's
movements and adjust settings such as resolution and frame rate. If the user chooses to record
video, the phone sends a request to the camera to start recording, and the camera responds by
storing the video footage locally or uploading it to the cloud. Throughout the sequence, the
system ensures secure authentication and authorization to prevent unauthorized access to the
camera and video feed.

27
CHAPTER 10
IMPLEMENTATION

const canvas = document.getElementById('videoCanvas');

const ctx = canvas.getContext('2d');

const startBtn = document.getElementById('startBtn');

const stopBtn = document.getElementById('stopBtn');

const downloadLink = document.getElementById('downloadLink');

const mjpegUrl = 'http://ipaddress/video';

let mediaRecorder;

let recordedChunks = [];

let drawInterval;

let audioStream;

const mjpegImage = new Image();

mjpegImage.crossOrigin = "Anonymous"; // Just in case

mjpegImage.src = mjpegUrl;

mjpegImage.onload = () => {

drawInterval = setInterval(() => {

ctx.drawImage(mjpegImage, 0, 0, canvas.width, canvas.height);

28
}, 100);

};

mjpegImage.onerror = () => {

alert("Could not load MJPEG stream. Check your IP Webcam URL.");

};

startBtn.addEventListener('click', async () => {

try {

audioStream = await navigator.mediaDevices.getUserMedia({ audio: true });

const videoStream = canvas.captureStream(10); // 10 FPS

const combinedStream = new MediaStream([

...videoStream.getVideoTracks(),

...audioStream.getAudioTracks()

]);

mediaRecorder = new MediaRecorder(combinedStream, { mimeType: 'video/webm' });

recordedChunks = [];

mediaRecorder.ondataavailable = (e) => {

if (e.data.size > 0) recordedChunks.push(e.data);

};

29
mediaRecorder.onstop = () => {

const blob = new Blob(recordedChunks, { type: 'video/webm' });

const url = URL.createObjectURL(blob);

downloadLink.href = url;

downloadLink.download = 'recording.webm';

downloadLink.style.display = 'inline';

downloadLink.textContent = 'Download Recording';

};

mediaRecorder.start();

startBtn.disabled = true;

stopBtn.disabled = false;

console.log('Recording started');

} catch (err) {

console.error('Recording error:', err);

alert('Error accessing microphone or recording stream.');

});

stopBtn.addEventListener('click', () => {

if (mediaRecorder && mediaRecorder.state === 'recording') {

mediaRecorder.stop();

audioStream.getTracks().forEach(track => track.stop());

clearInterval(drawInterval);

30
startBtn.disabled = false;

stopBtn.disabled = true;

console.log('Recording stopped');

});

HTML

<!DOCTYPE html>

<html lang=”en”>

<head>

<meta charset=”UTF-8” />

<meta name=”viewport” content=”width=device-width, initial-scale=1.0”/>

<title>IP Webcam Recorder</title>

<style>

Body { font-family: Arial, sans-serif; text-align: center; margin-top: 20px; }

Video, canvas { max-width: 100%; border: 1px solid #ccc; }

Button { margin: 10px; padding: 10px 20px; font-size: 16px; }

</style>

</head>

<body>

<h1>IP Webcam Stream Recorder</h1>

<canvas id=”videoCanvas” width=”640” height=”480”></canvas>

<div>

<button id=”startBtn”>Start Recording</button>

<button id=”stopBtn” disabled>Stop Recording</button>

31
<a id=”downloadLink” style=”display:none;”>Download Recording</a>

</div>

<script src=”script.js”></script>

</body>

</html>

CHAPTER 11

RESULTS

32
CHAPTER 12

TESTING

33
34
CONCLUSION AND FUTURE SCOPE
Using a mobile device as a surveillance camera via Wi-Fi IP address offers an affordable and
flexible solution for monitoring and security. By leveraging the mobile phone's camera,
processing power, and wireless capabilities, users can easily set up a surveillance system
without the need for expensive, dedicated cameras. The ability to place the mobile device
anywhere within the Wi-Fi network range provides great flexibility, and the integration with
apps like IP Webcam makes setup simple, offering real-time monitoring via web browsers or
mobile devices. Additionally, features like motion detection and audio recording enhance its
usefulness. However, challenges such as limited battery life, potential network bandwidth
issues, and security concerns must be considered. The phone's performance may degrade over
time due to continuous use, and storage limitations could require external solutions for
archiving video footage. Despite these limitations, for home or small-scale surveillance, using
a mobile device can be a practical and cost-effective alternative, although it may not replace
professional-grade security cameras in terms of reliability and long-term use

35
And it’s a highly practical and innovative solution, especially for individuals and small
businesses seeking a low-cost, accessible method for real-time monitoring and security. This
approach makes use of the smartphone’s built-in camera, wireless connectivity, and freely
available apps like IP Webcam to transform the device into a functional IP camera. It
eliminates the need for expensive hardware while offering features such as live streaming,
motion detection, audio recording, and remote access through web browsers or other
networked devices. The wireless setup allows for flexible camera placement within the range
of the Wi-Fi network, and the entire system can be configured without complex technical
skills. However, while the benefits are clear, there are also challenges to address, such as
limited battery life, potential overheating from continuous operation, storage capacity issues,
and security vulnerabilities if the stream is not properly encrypted. Additionally, reliance on
stable network bandwidth is crucial to maintain high-quality video transmission without lag
or disconnection. Despite these limitations, the mobile IP camera setup remains an excellent
solution for temporary, portable, or budget-friendly surveillance needs. With thoughtful
configuration—such as keeping the device connected to power, securing the network, and
potentially integrating cloud storage or network video recorders—the system can be
optimized for more reliable performance. Overall, this project demonstrates that with readily
available technology, it is possible to create an effective, affordable, and flexible surveillance
system using nothing more than a smartphone and a Wi-Fi connection, making it a
compelling alternative to conventional CCTV setups in many practical scenarios.

FUTURE SCOPE
Enhanced Camera Quality – Advanced Mobile Hardware – Mobile phone cameras are
continuously improving with higher megapixels, better sensors, and optical image
stabilization, which will result in clearer, sharper, and more detailed surveillance footage,
even in low-light environments.

AI-Based Detection – Machine Learning Integration – Artificial Intelligence can be used to


recognize faces, detect motion or unusual behavior, and differentiate between humans, pets,
and other objects, making surveillance smarter and more accurate.

36
Smart Home Connectivity – IoT Ecosystem Integration – Integration with smart home
systems (like Alexa, Google Home, or Home Assistant) will allow automation such as
triggering lights or alarms when movement is detected, offering enhanced security through
synchronized devices.

Cloud-Based Storage – Cloud Infrastructure – Cloud services can offer remote, secure, and
scalable video storage, removing limitations of mobile phone memory and allowing access to
footage from anywhere, at any time.

High-Speed Streaming – 5G and Wi-Fi 6 Networks – With faster and more reliable internet
connections, video streams from mobile devices will be smoother, in higher resolution, and
with lower latency, improving real-time monitoring.

Power Efficiency Improvements – Advanced Battery Management – As battery technology


evolves, mobile phones will be able to run surveillance apps longer without overheating or
draining quickly, making continuous use more feasible.

Platform Compatibility – Cross-Device App Support – Future apps will offer better
integration across Android, iOS, desktops, and smart TVs, making it easy to monitor camera
feeds on multiple devices with a consistent user experience.

Stronger Data Protection – End-to-End Encryption – Implementing stronger security


protocols such as HTTPS, encryption keys, and two-factor authentication will ensure the
privacy and safety of video streams from hacking or unauthorized access.

Remote Camera Control – App-Based Camera Interface – Users will be able to remotely
control camera functions like pan, tilt, zoom, and start/stop recording through intuitive
mobile apps, improving flexibility and ease of use.
37
Multi-Sensor Integration – Environmental Sensor Add-ons – Mobile devices or connected
accessories can include sensors for detecting smoke, gas, temperature changes, or sound
anomalies, expanding the scope of surveillance to include environmental monitoring.

CHAPTER 13
BIBLIOGRAPHY

IP Webcam. (n.d.). IP Webcam – Android App on Google Play. Retrieved from


https://play.google.com/store/apps/details?id=com.pas.webcam

DroidCam. (n.d.). DroidCam – Turn your Android/iOS device into a webcam. Retrieved from
https://www.dev47apps.com/

Choras, M., Pawlicki, M., Kozik, R., & Renk, R. (2018). Advanced video surveillance:
Surveillance system of the future. Journal of Sensors, 2018, Article ID 7103701.
https://doi.org/10.1155/2018/7103701

38
Cisco. (2021). The Role of 5G and Wi-Fi 6 in Next-Gen Video Surveillance. Retrieved from
https://www.cisco.com/

Kumar, A., & Yadav, R. (2020). IoT-based home security surveillance system using mobile as
IP camera. International Journal of Computer Applications, 176(24), 1–5.

Google.(n.d.).AndroidSecurityOverview.

Retrievedfrom https://source.android.com/security/overview

Amazon Web Services. (n.d.). Introduction to AWS Cloud Storage Services. Retrieved from
https://aws.amazon.com/products/storage/

Zhang, J., & Wang, X. (2019). Smart surveillance: A comprehensive review of technologies
and applications. IEEE Access, 7, 223–243. https://doi.org/10.1109/ACCESS.2019.2960496

39

You might also like