w11
w11
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.
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
2
CHAPTER 3
LITERATURE REVIEW
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.
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).
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).
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.
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.
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.
Standardized security protocols for mobile IP cameras These gaps present opportunities for
future academic and industrial exploration.
4
CHAPTER 4
EXISTING SYSTEM
1. Components Involved:
• IP Camera: A digital camera that connects to your Wi-Fi or Ethernet and streams
video using an IP address.
• 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 smartphone app uses the IP address (and possibly port number) to connect to the
camera.
5
3. Key Features:
4. Security Considerations:
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.
• 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.
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.
• 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.
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.
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.
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.
• Device camera access :The app must allow the smartphone’s camera to be used for
live video streaming.
• 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.
• 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.
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.
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.
• 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.
Development Phase:
• Objective:
• 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.
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:
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).
• Performance Testing: Test the app for speed, efficiency, and responsiveness,
especially during long periods of surveillance. Monitor battery usage, data consumption, and
system load.
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.
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.
• 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.
17
• Protocols Libraries: OpenCV, WebRTC, RTSP, SSL/TLS, OAuth2.0
CHAPTER 9
MODULES DESCRIPTION
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)
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
Key Features:
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
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
Key Features:
Enables password protection within the IP Webcam app
Can restrict access based on IP or network rules
CHAPTER 10
PROPOSED ALGORITHM
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,
};
// 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.
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.
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
27
CHAPTER 10
IMPLEMENTATION
let mediaRecorder;
let drawInterval;
let audioStream;
mjpegImage.src = mjpegUrl;
mjpegImage.onload = () => {
28
}, 100);
};
mjpegImage.onerror = () => {
};
try {
...videoStream.getVideoTracks(),
...audioStream.getAudioTracks()
]);
recordedChunks = [];
};
29
mediaRecorder.onstop = () => {
downloadLink.href = url;
downloadLink.download = 'recording.webm';
downloadLink.style.display = 'inline';
};
mediaRecorder.start();
startBtn.disabled = true;
stopBtn.disabled = false;
console.log('Recording started');
} catch (err) {
});
stopBtn.addEventListener('click', () => {
mediaRecorder.stop();
clearInterval(drawInterval);
30
startBtn.disabled = false;
stopBtn.disabled = true;
console.log('Recording stopped');
});
HTML
<!DOCTYPE html>
<html lang=”en”>
<head>
<style>
</style>
</head>
<body>
<div>
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.
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.
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.
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
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