DVR Security System (Mini Project) - Report
DVR Security System (Mini Project) - Report
A PROJECT REPORT
Submitted by
SIVANATHAN.V (711220104041)
VISHNU.K (711220104051)
SHARATHY.S (711220104039)
of
BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE AND ENGINEERING
PROJECT REPORT
Submitted by
SIVANATHAN.V (711220104041)
VISHNU.K (711220104051)
SHARATHY.S (711220104039)
of
BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE AND ENGINEERING
SIVANATHAN.V (711220104041)
VISHNU.K (711220104051)
MANOJ KUMAR.B (711220104028)
SHARATHY.S (711220104039)
Who carried our the project work under work under my supervision.
SIGNATURE SIGNATURE
Prof.A.Gokilavani Prof.T.Kiruthiga
ABSTRACT
1. INTRODUCTION 01
2. LITERATURE SURVEY 02
2.1
6. CODING 24
7. CONCLUSION 37
8. REFERENCE 38
LIST OF FIGURES
3.3 Camera 12
01
CHAPTER-2
LITERATURE SURVEY
"Digital Video Surveillance and Security" by Anthony C. Caputo
(2013) This book provides a comprehensive overview of digital video
surveillance systems, including DVR technology. It covers various
aspects such as system design, image compression, storage
management, and integration with other security technologies. The
book also explores the impact of DVR systems on crime prevention and
investigation.
02
"A Review of Video Surveillance Systems" by Siti Hajar Othman
(2016) This review article provides an overview of video surveillance
systems, including DVR technology. It examines the advantages and
limitations of DVR systems compared to other surveillance approaches.
The review also discusses emerging trends such as cloud-based DVR
systems and video analytics integration.
03
Fig 2.1
04
The significance of DVR security systems lies in their numerous
advantages over analog systems. Firstly, DVR systems offer superior
image quality, thanks to digital encoding. This ensures that video
footage is captured and stored with exceptional clarity, allowing for
easier identification of individuals and events. Moreover, DVR systems
can store a significantly larger amount of data compared to analog
systems, thanks to the use of hard drives or external storage devices.
This increased storage capacity allows for longer recording durations
and the retention of crucial evidence.
05
In conclusion, the development and adoption of DVR security
systems have revolutionized video surveillance practices. These systems
offer superior image quality, increased storage capacity, and remote
accessibility, providing enhanced security measures for residential,
commercial, and public spaces. The background and significance of
DVR security systems lie in their ability to address the limitations of
analog systems and empower individuals and organizations to
proactively protect their assets and ensure the safety of their
environments.
Fig 2.2
06
CHAPTER-3
COMPONENTS OF DVR SECURITY SYSTEMS
DVR security systems consist of various components that work
together to provide effective video surveillance and security. These
components include:
Cameras:
Cameras are the primary devices that capture video footage. DVR
security systems can support multiple cameras, which can be positioned
strategically to cover different areas of interest. These cameras can be
wired or wireless, depending on the system configuration and
requirements.
Power Supply:
DVR security systems require a stable power supply to operate. The
power supply provides electrical power to the DVR unit and the
connected cameras. It is important to ensure that the power supply is
reliable and capable of handling the power demands of the system.
07
Display Monitor:
A display monitor is used to view live video feeds and playback
recorded footage from the DVR unit. It allows users to monitor the
surveillance area in real-time and review past events. The display
monitor can be a dedicated monitor or a computer screen connected to
the DVR unit.
Network Connectivity:
DVR security systems often feature network connectivity options,
such as Ethernet ports or Wi-Fi connectivity. This enables the system to
connect to local networks or the internet, facilitating remote access and
integration with other devices or systems.
08
These components work in harmony to create a comprehensive DVR
security system, providing effective surveillance, recording, and storage
capabilities. The combination of these components ensures that users
can monitor and protect their properties, deter criminal activities, and
maintain a secure environment.
Fig 3.1
Fig 3.2
09
3.1.HARDWARE REQUIREMENTS
The hardware requirements for a DVR security system may vary
depending on the specific system and its intended use. However, here
are some common hardware components typically required for a DVR
security system:
Cameras:
Cameras are essential for capturing video footage. The number and
type of cameras needed depend on the surveillance requirements and
coverage area. Cameras can be analog or IP-based, with different
resolutions and features.
Power Supply:
A stable and reliable power supply is crucial to power the DVR unit
and cameras. Depending on the system, individual power adapters or a
centralized power distribution unit may be required.
10
Monitor:
A display monitor is needed to view live video feeds and playback
recorded footage from the DVR unit. The monitor can be a dedicated
monitor or a computer screen connected to the DVR unit.
Storage:
The DVR unit typically has a built-in hard drive for video storage.
The capacity of the hard drive should be sufficient to meet the storage
requirements based on factors such as the number of cameras,
recording quality, and retention period. Additionally, external storage
options such as network-attached storage (NAS) or external hard drives
can be utilized for additional storage capacity.
Network Connectivity:
If remote access or network integration is desired, the DVR unit may
require network connectivity options such as Ethernet ports or Wi-Fi
capability. This allows for network communication, remote monitoring,
and remote access to the DVR system.
Optional Accessories:
Depending on the specific requirements of the DVR security system,
additional hardware may be needed. This could include power surge
protectors, video amplifiers, audio recording devices, PTZ (pan-tilt-
zoom) cameras for flexible camera control, or alarm systems for
integrated security functionality.
11
Fig 3.3
Fig 3.4
Fig 3.5
12
3.1.2.SOFTWARE REQUIREMENTS
The software requirements for a DVR security system play a crucial
role in ensuring proper functionality, usability, and management of the
system. Here are some common software components and requirements
for a DVR security system:
Operating System:
The DVR unit typically runs on a dedicated operating system that is
optimized for video surveillance applications. Common operating
systems used in DVR systems include embedded Linux or proprietary
firmware developed by the manufacturer.
13
Remote Access Software:
Remote access software enables users to remotely monitor live video
feeds and access recorded footage from the DVR system. This software
can be in the form of dedicated mobile apps or web-based applications
that provide secure access to the DVR system over the internet. The
software should support various operating systems and devices to
ensure compatibility and ease of use.
Firmware Updates:
Regular firmware updates provided by the DVR manufacturer are
essential to ensure system stability, security enhancements, bug fixes,
and compatibility with new hardware or software technologies. It is
important to have a mechanism in place to easily update the DVR unit's
firmware.
Integration APIs:
For more advanced deployments, integration APIs (Application
Programming Interfaces) may be required to integrate the DVR
security system with other security systems or third-party applications.
This allows for seamless integration with access control systems, alarm
systems, video analytics platforms, or centralized management
software.
14
Fig 3.6
Fig 3.7
15
CHAPTER-4
DVR SYSTEM ARCHITECTURE
Hardware Components:
The hardware components of a DVR system architecture include
the DVR unit, cameras, storage devices, and peripherals. The DVR unit
serves as the central processing unit, responsible for receiving video
feeds from cameras, encoding and compressing the video data, and
storing it onto storage devices. Cameras capture the video footage and
transmit it to the DVR unit through wired or wireless connections.
Storage devices, such as hard drives or network-attached storage
(NAS), provide the necessary capacity to store the recorded video data.
Peripherals like monitors, keyboards, and control devices allow for
system monitoring, user interaction, and configuration.
Software Components:
The software components of a DVR system architecture consist of
the operating system, DVR management software, and additional
applications. The operating system runs on the DVR unit, providing the
underlying functionality and control of the hardware components. The
DVR management software offers a user interface for system
configuration, camera management, recording settings, and
administrative tasks.
16
Video Capture and Processing:
The video capture and processing stage is a critical component of
the DVR system architecture. Cameras capture the video feeds, which
are then processed by the DVR unit. The video data is typically
encoded and compressed using industry-standard formats such as
H.264 or H.265 to optimize storage space without compromising video
quality. The DVR unit applies various processing techniques, such as
noise reduction, image enhancement, and frame rate control, to ensure
high-quality video recordings.
Fig 4.1
17
User Interface and Remote Access:
The user interface is an important component of the DVR system
architecture, providing users with a graphical interface to interact with
the system. It allows users to configure system settings, manage
cameras, define recording schedules, and perform playback of recorded
footage. The user interface should be intuitive, user-friendly, and
accessible from both local and remote locations. Remote access is a key
feature of modern DVR systems, enabling users to monitor live video
feeds and access recorded footage remotely via web interfaces or
dedicated mobile applications.
Network Integration:
DVR systems often require network integration to facilitate
communication and integration with other systems. This can include
integration with access control systems, alarm systems, or central
management software. Network integration allows for centralized
monitoring and management of multiple DVR systems, data sharing
between different security systems, and streamlined workflows.
18
Fig 4.2
Fig 4.3
19
CHAPTER-5
APPLICATION AREAS OF DVR SECURITY SYSTEMS
Residential Properties:
DVR security systems are popularly installed in residential
properties, including houses, apartments, and gated communities. These
systems help homeowners protect their property, deter theft, monitor
entry points, and ensure the safety of their families.
Commercial Buildings:
DVR security systems are widely deployed in commercial buildings,
such as offices, retail stores, warehouses, and factories. These systems
enable business owners to monitor employee activities, prevent
unauthorized access, deter vandalism, and enhance overall security.
Public Spaces:
Public spaces like parks, shopping malls, airports, train stations,
and bus terminals benefit from the presence of DVR security systems.
These systems help monitor crowd movement, detect suspicious
activities, prevent incidents, and enhance public safety.
20
Educational Institutions:
DVR security systems are crucial for ensuring the safety of
students, staff, and property in schools, colleges, and universities. They
help monitor classrooms, hallways, parking areas, and common spaces
to deter violence, identify intruders, and resolve disputes.
Healthcare Facilities:
Hospitals, clinics, and nursing homes rely on DVR security systems
to maintain a secure environment for patients, staff, and valuable
medical equipment. These systems monitor entrances, hallways, waiting
areas, and critical areas to prevent theft, ensure patient safety, and
protect sensitive information.
Government Buildings:
Government buildings, including courthouses, city halls, police
stations, and public offices, require robust security measures. DVR
security systems play a vital role in monitoring these facilities,
identifying security breaches, and providing evidence in legal
proceedings.
Industrial Sites:
Industrial sites, such as manufacturing plants, refineries, and
construction sites, implement DVR security systems to protect valuable
assets, ensure worker safety, and monitor critical processes. These
systems help identify safety violations, detect equipment malfunctions,
and prevent unauthorized access to restricted areas.
21
Fig 5.1
Fig 5.2
22
Transportation:
DVR security systems are widely used in transportation
environments, including buses, trains, subways, and taxis. These
systems enhance passenger safety, monitor driver behavior, prevent
vandalism, and provide evidence in case of accidents or disputes.
Hospitality Industry:
Hotels, resorts, and restaurants utilize DVR security systems to
ensure guest safety, monitor public areas, and protect valuable assets.
These systems help prevent theft, maintain a secure environment, and
investigate incidents that may occur on the premises.
Critical Infrastructure:
DVR security systems play a crucial role in protecting critical
infrastructure such as power plants, water treatment facilities, and
telecommunications centers. These systems help monitor sensitive areas,
detect security breaches, and ensure the uninterrupted operation of
essential services.
23
CHAPTER-6
CODING
C PROGRAM:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Recording
{
int day;
int month;
int year;
int duration;
};
struct DVR
{
struct Recording recordings[MAX_RECORDINGS];
int count;
};
24
if (dvr->count < MAX_RECORDINGS)
{
struct Recording newRecording;
printf("Enter the date (DD MM YYYY): ");
scanf("%d %d %d", &newRecording.day, &newRecording.month,
&newRecording.year);
dvr->recordings[dvr->count] = newRecording;
dvr->count++;
printf("Recording added successfully.\n");
} else
{
printf("Maximum number of recordings reached.\n");
}
}
int main()
{
struct DVR dvr;
initializeDVR(&dvr);
25
int choice;
while (1)
{
printf("\nDVR Tracking System\n");
printf("1. Add Recording\n");
printf("2. Display Recordings\n");
printf("3. Exit\n");
printf("Enter your choice: ");
scanf("%d", &choice);
switch (choice)
{
case 1:
addRecording(&dvr);
break;
case 2:
displayRecordings(&dvr);
break;
case 3:
printf("Exiting...\n");
exit(0);
default:
printf("Invalid choice. Please try again.\n");
}
}
return 0;
}
26
HTML PROGRAM:
<!DOCTYPE html>
<html>
<head>
<title>DVR Security System Dashboard</title>
<style>
body
{
font-family: Arial, sans-serif;
background-color: #f1f1f1;
margin: 0;
padding: 0;
}
.container
{
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
h1
{
text-align: center;
color: #333;
font-size: 24px;
}
h2
{
27
color: #007bff;
font-size: 20px;
}
.dashboard-section
{
margin-top: 40px;
}
.history
{
margin-bottom: 20px;
}
.history-item
{
display: flex;
align-items: center;
padding: 10px;
border-bottom: 1px solid #ccc;
}
.date
{
font-weight: bold;
margin-right: 10px;
color: #555;
}
.day-number
{
28
margin-right: 10px;
color: #888;
}
.camera-status
{
margin-right: 10px;
color: #888;
}
.login-logout
{
margin-right: 10px;
color: #888;
}
.server-status
{
margin-right: 10px;
color: #2ecc71;
font-weight: bold;
}
.server-status span
{
color: #555;
font-weight: normal;
}
.account-section
{
29
margin-top: 40px;
}
.account-form
{
background-color: #f9f9f9;
padding: 20px;
border-radius: 8px;
}
.account-form h3
{
margin-bottom: 10px;
}
.account-form label
{
display: block;
margin-bottom: 8px;
color: #555;
}
.account-form input
{
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}
.account-form button {
padding: 10px 20px;
30
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
.account-form button:hover
{
background-color: #0069d9;
}
.dvr-info
{
margin-top: 40px;
text-align: center;
}
.dvr-info img
{
max-width: 100%;
height: auto;
}
.dvr-info p
{
margin-top: 10px;
color: #555;
31
{
color: #007bff;
text-decoration: none;
}
</style>
</head>
<body>
<div class="container">
<h1>DVR Security System Dashboard</h1>
32
private Camera camera;
private SurfaceView surfaceView;
private MediaRecorder mediaRecorder;
private SurfaceHolder surfaceHolder;
private boolean isRecording = false;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
surfaceView = findViewById(R.id.surfaceView);
surfaceHolder = surfaceView.getHolder();
surfaceHolder.addCallback(this);
33
private void startRecording()
{
if (ContextCompat.checkSelfPermission(this,
Manifest.permission.CAMERA) ==
PackageManager.PERMISSION_GRANTED &&
ContextCompat.checkSelfPermission(this,
Manifest.permission.RECORD_AUDIO) ==
PackageManager.PERMISSION_GRANTED)
{
try {
camera = Camera.open();
camera.unlock();
mediaRecorder = new MediaRecorder();
mediaRecorder.setCamera(camera);
mediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMC
ORDER);
mediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAME
RA);
mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MP
EG_4);
mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AM
R_NB);
mediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPE
G_4_SP);
mediaRecorder.setOutputFile("/sdcard/video.mp4");
34
mediaRecorder.setPreviewDisplay(surfaceHolder.getSurface());
mediaRecorder.prepare();
mediaRecorder.start();
isRecording = true;
Toast.makeText(this, "Recording started",
Toast.LENGTH_SHORT).show();
}
catch (IOException e)
{
e.printStackTrace();
}
} else
{
ActivityCompat.requestPermissions(this, new String[]
{Manifest.permission.CAMERA,
Manifest.permission.RECORD_AUDIO},
REQUEST_PERMISSION);
}
}
35
}
}
@Override
public void surfaceCreated(SurfaceHolder holder)
{
camera = Camera.open();
try {
camera.setPreviewDisplay(holder);
camera.startPreview();
} catch (IOException e)
{
e.printStackTrace();
}
}
@Override
public void surfaceChanged(SurfaceHolder holder, int format, int
width, int height) {
@Override
public void surfaceDestroyed(SurfaceHolder holder)
{
if (isRecording)
{
stopRecording();
}
camera.release();
}
}
36
CHAPTER-7
CONCLUSION
37
CHAPTER-8
REFERENCE
Manufacturer Websites:
Visit the websites of leading manufacturers in the security industry.
They often provide detailed information about their DVR security
systems, including specifications, features, and technical
documentation.
Professional Associations:
Check the websites of professional associations or organizations
dedicated to the security industry. They may have resources,
publications, and white papers that cover DVR security systems.
38