You are on page 1of 37

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

JNANASANGAMA, BELAGAVI – 590018

Mini Project Report


On
Criminal Management System

Submitted in partial fulfillment for the award of degree of

Bachelor of Engineering
In
Computer Science and Engineering

Submitted by

Ronik Bakshi
1BG19CS129

Approved by AICTE, Affiliated to VTU, Accredited as grade A Institution by NAAC.


All UG branches – CSE, ECE, EEE, ISE & Mech.E accredited by NBA for academic years 2018-19 to 2021-22 & valid upto 30.06.2022
Post box no. 7087, 27th cross, 12th Main, Banashankari 2nd Stage, Bengaluru- 560070, INDIA Ph: 91-80- 26711780/81/82
Email: principal@bnmit.in, www. bnmit.org

Department of Computer Science and Engineering

2021-22
An Autonomous Institution under VTU
Approved by AICTE, Accredited as grade A Institution by NAAC. All eligible branches – CSE, ECE,
EEE, ISE & Mech. Engg. are Accredited by NBA for academic years 2018-19 to 2021-22 &
valid upto 30.06.2022
URL: www.bnmit.org
Department of Computer Science and Engineering

CERTIFICATE

This is to certify that the Mini Project entitled Criminal Management System by Mr.
RONIK BAKSHI USN 1BG19CS129 a bonafide student of V Semester B.E., B.N.M
Institute of Technology in partial fulfillment for the Bachelor of Engineering in
COMPUTERSCIENCE AND ENGINEERING of the Visvesvaraya Technological
University, Belagavi during the year 2021-22. It is certified that all corrections /
suggestions indicated for Internal Assessment have been incorporated in the report. The
Project report has been approved as it satisfies the academic requirements in respect of
Database Management System with Mini Project Laboratory prescribed for the said
Degree

Prof. Kavya D N Dr. Sahana D. Gowda


Assistant Professor and Lab Incharge Professor and HOD
Department of CSE Department of CSE
BNMIT,Bengaluru BNMIT,Bengaluru

Name & Signature


Examiner 1:
Examiner 2:
ABSTRACT

Crime is a very old concept and it is transmitted to the society from generation to generation. Crime
produces law and order situation. It is a social evil. It is generated by the society and the society
also suffers a lot because of crime committed by its members. The rising wave of crime has caused
alarm in the public.This project is aimed at the implementation of Criminal data/records
Management System. It will be a database ystem in which the police will keep the record of
criminals who have been arrested, to be arrested, or escaped. This will help the police department
in enhanced management of information. The main entities in the whole process include; the
petitioner (the person who files a First Incident Report (FIR)), victim, accused or criminal, case,
and investigating officer.The system at any point of time can provide the details of existing charge
sheets and their statuses. The system will provide the details of the police station, the employees,
the wanted criminal details, details of victims and the registered FIR’s, evidence and their sequence
ACKNOWLEDGEMENT

The completion of this project brings with a sense of satisfaction, but it is never complete without
thanking the persons responsible for its successful completion.
I take this opportunity to express our profound gratitude to Shri. Narayan Rao R Maanay,
Secretary, BNMIT, Bengaluru for his constant support and encouragement.
I would like to express my special thanks to Prof. T. J. Rama Murthy, Director, BNMIT,
Bengaluruand S Y Kulkarni, Additional Director, BNMIT, Bengaluru for their constant guidance
towards our goals and professions.
I extend my deep sense of sincere gratitude to Dr. Krishnamurthy G.N, Principal, BNMIT,
Bengaluru, for providing us the facilities required for the project.
I would also like to thank Prof Eishwar Maanay, Dean Administration, BNMIT, Bengaluru, for
providing us useful suggestions required for the project.
I express my in-depth, heartfelt, sincere gratitude to Dr. Sahana D. Gowda, Professor and H.O.D,
Department of Computer Science and Engineering, BNMIT, Bengaluru, for her valuable
suggestions and support.
I extend my heartfelt, sincere gratitude to Prof. Kavya D N, Assistant Professor, Department of
Computer Science and Engineering, BNMIT, Bengaluru, for completion of the project.
Finally, I would like to thank all the faculty members of Department of Computer Science and
Engineering, BNMIT, Bengaluru, for their support. I would like to thank our family and friends
for their unfailing moral support and encouragement.

Ronik Bakshi

1BG19CS129
TABLE OF CONTENTS
CONTENTS Page No
ABSTRACT I
ACKNOWLDEGEMENT II
1. INTRODUCTION
1.1 Overview of Database Management Systems 1
1.2 Problem statement 2
1.3 Objectives 2
1.4 Dataset Description 2
2. SYSTEM REQUIREMENTS
2.1 Software & Hardware 4
3. SYSTEM DESIGN
3.1 E R Diagram 5
3.2 Schema Diagram 6
3.3 Overview of GUI 7
4. IMPLEMENTATION
4.1 Table creation 8
4.2 Description of Table 11
4.3 Populated Tables 14
4.4 SQL Triggers & Stored Procedures 18
4.5 Database connectivity 21
4.6 Modules 22
5. RESULTS 24
6. CONCLUSION & FUTURE ENHANCEMENTS 32
Chapter 1
INTRODUCTION
1.1 Overview of Database Management System
A Database is a collection of related data organized in a way that data can be
easily accessed, managed and updated. Any piece of information can be a data,
for example name of your school. Database is actually a place where related
piece of informationis stored and various operations can be performed on it. A
DBMS is a software that allows creation, definition and manipulation of
database. DBMS is actually a tool used to perform any kind of operation on data
in database. DBMS also provides protection and security to database. It maintains
data consistency in case of multiple users. Here are some examples of popular
DBMS, Sql, Oracle, Sybase, Microsoft Access and IBM DB2.
The database system can be divided into four components:
● The database system can be divided into System developer and End users.
Database application: Database application may be Personal,
Departmental,Enterprise and Internal.
● DBMS: Software that allow users to define, create and manages
databaseaccess, Ex: Sql, Oracle etc.
● Database: Collection of logical data.

Functions of database management system:


● Provides Recovery services
● Provides utility
● Provides data Independence
● Provides a clear and logical view of the process that manipulates data.

Advantages of DBMS:
● Segregation of application program
● Minimal data duplicity
● Reduced development time and maintenance need
● Easy retrieval of data

BE/Dept. Of CSE/BNMIT 1 2021-2022


Criminal Management System

1.1 Problem statement


A database is an organized collection of data. A relational database, more
restrictively, is a collection of schemas, tables, queries, reports, views, and other
elements. A database management system (DBMS) is a computer-
software application that interacts with end-users, other applications, and the
database itself to capture and analyze data. A general-purpose DBMS allows the
definition, creation, querying, update, and administration of databases. There is a
need for an application to make it easy for police stations to maintain and monitor
their records. An POLICE MANAGEMENT SYSTEM is a very smart approach
towards maintaining a Database.

1.2 Objective
The objective of this project is to:

• To keep record of criminals details for future investigation

• To keep record of criminal’s crime activities.

• Reduce manual and redundant records keeping.

• Facilitate interaction and sharing of information among police departments,


districts, state/headquarters and other police agencies.

• Elimination of duplicate and inconsistent record keeping.

• Keep track of the Status of Cases.

• Introducing element of transparency in the working of Police.

• Facilitating investigating officer with availability of records

1.3 Dataset Description


The Criminal Management System enables the police officers andf admin to enter the
details and have a look at the database.
It allows the police officers to add a new fir , delete records ,and add a new criminal
The admin of the site is allowed to add new police stations , add a new selected polics
officers
The admin is also can have a look at the records of criminal-log and the fir records
and the police officers ,who are working under which police stations.

BE/Dept. Of CSE/BNMIT 2 2021-2022


Criminal Management System

The tables long with attributes are:


1) Admin (a_email, a_pswd)
2) Crime (crime_id, crime_name)
3) Station (stn_id, stn_name)
4) PoliceOfficer (off_id, off_name,email,ph_no_p_add,pswd)
5) FIR (f_no,c_name,photo,crime_time,crime_scene,crime_desc,fir_date,status)
6) Witness(I_name,I_address,I_no)
7) Criminal(c_id,c_age,c_gender,c_address)
8) Charges(c_id,crime)
9) CriminalLog(no.,criminal_id,name,age,gender,address)

BE/Dept. Of CSE/BNMIT 3 2021-2022


Chapter 2
SYSTEM REQUIREMENTS

2.1 Software and Hardware

Software Configuration:
Operating system: Windows 10 ,64-bit
Front end: Html, CSS, JavaScript
Server side language: Php
Back end: MySQL
Web server: Apache
Browser: Chrome
Application software: XAMP

Hardware Configuration:
Processor: Intel Core i7
RAM: 8 GB
Hard disk: 1TB

BE/Dept. Of CSE/BNMIT 4 2021-2022


Chapter 3
SYSTEM DESIGN
3.1 E R Diagram

An entity-relationship diagram (ERD) is a data modeling technique that graphically


illustrates an information system's entities and the relationships between those entities.
An ERD contains different symbols and connectors that visualize two important
information: The major entities within the system scope and the inter relationships
among these entities.

Figure 3.1 E R Diagram of Criminal Management System


The above fig 3.1 depicts the entity relation diagram for a Criminal Management System
. The entities are FIR,Criminal,Criminallog,Witness,Policeofficer,Crime

BE/Dept. Of CSE/BNMIT 5 2021-2022


Criminal Management System

3.2 Schema Diagram


A database schema is the skeleton structure that represents the logical view of the entire
database. It defines how the data is organized and the relations among them are
associated. It formulates all the constraints that are to be applied on data. A database
schema defines its entities and relationship among them. It contains a descriptive detail
of the database, which can be depicted by means of schema diagrams.
The figure 3.2 shows the schema diagram for the Criminal management system.
It shows the various relations, references between entities.

Figure 3.2 Schema diagram of Criminal Management System

BE/Dept. Of CSE/BNMIT 6 2021-2022


Criminal Management System

3.3 Overview of GUI


GUI is a program interface that takes advantage of the computer's graphics capabilities
to make the program easier to use. Well-designed graphical user interfaces can free the
user from learning complex command languages. On the other hand, many users find
that they work more effectively with a command-driven interface, especially if they
already know the command language.
Hypertext Markup Language (HTML) is the standard markup language for creating
web pages and web applications. With JavaScript it forms a triad of cornerstone
technologies for the World Wide Web. Web browsers receive HTML documents from
a web server or from local storage and render them into multimedia web pages. HTML
describes the structure of a web page semantically and originally includedcues for
the appearance of the document.
Cascading Style Sheets (CSS) is a style sheet language used for describing the
presentation of a document written in a markup language like HTML. CSS is a
cornerstone technology of the World Wide Web, alongside HTML and JavaScript.
CSS is designed to enable the separation of presentation and content, including
layout, colors, and fonts. This separation can improve content accessibility, provide
more flexibility and control in the specification of presentation characteristics, enable
multiple web pages to share formatting by specifying the relevant CSS in a separate
.css file, and reduce complexity and repetition in the structural content.

BE/Dept. Of CSE/BNMIT 7 2021-2022


Criminal Management System

Chapter 4
IMPLEMENTATION
1.1 Table Creation

CREATE TABLE `admin`

(
`A_EMAIL` varchar(20) NOT NULL,
`A_PSWD` varchar(10) NOT NULL
);

CREATE TABLE `crime`

(
`CRIME_ID` varchar(255) NOT NULL,
‘CRIME_NAME’ varchar(50) DEFAULT
NULL
);

CREATE TABLE `criminal`

(
`C_ID` int(11) NOT NULL,
`C_AGE` int(3) NOT NULL,
`C_GENDER` varchar(7) NOT NULL,
`C_ADDRESS` varchar(20) NOT NULL,
`OFF_ID` int(10) DEFAULT NULL,
`FIR_NO` int(5) NOT NULL
);

BE/Dept. Of CSE/BNMIT 8 2021-2022


Criminal Management System

CREATE TABLE `criminallog`

(
`NO.` int(5) NOT NULL,
`CRIMINAL_ID` int(10) NOT NULL,

`DATE` date NOT NULL DEFAULT current_timestamp(),


`AGE` int(3) DEFAULT NULL,
`GENDER` varchar(7) DEFAULT NULL,
`ADDRESS` varchar(50) DEFAULT NULL,
`OFFID` int(3) DEFAULT NULL,
`FIRNO` int(4) NOT NULL
);

CREATE TABLE `fir`

(
`FIR_NO` int(6) NOT NULL,
`C_NAME` varchar(20) NOT NULL,
`PHOTO` varchar(1000) DEFAULT NULL,
`CRIME_TIME` datetime(6) DEFAULT NULL,
`CRIME_SCENE` varchar(100) DEFAULT NULL,
`CRIME_DESC` varchar(500) DEFAULT NULL,
`FIR_DATE` date NOT NULL DEFAULT current_timestamp(),
`OFFICER_ID` int(5) DEFAULT NULL,`STATUS` varchar(50) NOT NULL
);

CREATE TABLE `policeofficer`

(
`OFF_ID` int(10) NOT NULL,
`OFF_NAME` varchar(20) DEFAULT NULL,
`EMAIL` varchar(20) NOT NULL,

BE/Dept. Of CSE/BNMIT 9 2021-2022


Criminal Management System

`PH_NO` varchar(10) DEFAULT NULL,


`P_ADD` varchar(20) NOT NULL,
`PSWD` varchar(10) DEFAULT NULL,
`STN_ID` int(10) DEFAULT NULL
);

CREATE TABLE `station`

(
`STN_ID` int(10) NOT NULL,
`STN_NAME` varchar(20) NOT NULL
);

CREATE TABLE `charges`

(
`CID` int(10) NOT NULL,
`CRIME_IDS` varchar(200) NOT NULL
);

CREATE TABLE `witness`

(
`F_NO` int(20) NOT NULL,
`I_NAME` varchar(25) NOT NULL,
`I_ADDRESS` varchar(50) NOT NULL,
`I_NUMBER` int(15) NOT NULL
);

CREATE TABLE `pos`

(
`OFFID` int(20) NOT NULL,
`STN_ID` int(20) NOT NULL
);

BE/Dept. Of CSE/BNMIT 10 2021-2022


Criminal Management System

4.2 Description of Table

In sql we can use the command “desc table_name” or “describe table_name” to describe
the list of column definitions for the specified table. We obtain information such as
column name, whether the column allows NULL or not and the datatype of the column.
The following figures show the description of all the tables used in this system.

Desc admin;

Figure 4.1 Description of admin table


Desc charges;

Figure 4.2 Description of charges table

Desc crime;

Figure 4.3 Description of crime table

Desc criminal;

Figure 4.4 Description of criminal table

BE/Dept. Of CSE/BNMIT 11 2021-2022


Criminal Management System

Desc crminallog;

Figure 4.5 Description of criminallog table


Desc fir;

Figure 4.6 Description of fir table


Desc policeofficer;

Figure 4.7 Description of policeofficer table


BE/Dept. Of CSE/BNMIT 12 2021-2022
Criminal Management System

Desc pos;

Figure 4.8 Description of pos table


Desc station;

Figure 4.9 Description of station table


Desc witness;

Figure 4.10 Description of witness table

BE/Dept. Of CSE/BNMIT 13 2021-2022


Criminal Management System

4.3 Populated Tables

The SELECT statement is used to select data from a database. The data returned is
stored in a result table, called the result-set. We can use the command “select * from
table_name” to obtain all the values of the table. The following figures show the values
of each table.

Select * from admin;

Figure 4.11 Values of admin table

Select * from charges;

Figure 4.12 Values of charges table

Select * from crime;

Figure 4.13 Values of crime table

BE/Dept. Of CSE/BNMIT 14 2021-2022


Criminal Management System

Select * from criminal;

Figure 4.14 Values of criminal table

Select * from criminallog;

Figure 4.15 Values of criminallog table

Select * from fir;

Figure 4.16 Values of fir table

BE/Dept. Of CSE/BNMIT 15 2021-2022


Criminal Management System

Select * from policeofficer;

Figure 4.17 Values of policeofficer table

Select * from pos;

Figure 4.18 Values of pos table

Select * from station;

BE/Dept. Of CSE/BNMIT 16 2021-2022


Criminal Management System
Figure 4.19 Values of station table

Select * from witness;

Figure 4.20 Values of witness table

BE/Dept. Of CSE/BNMIT 17 2021-2022


Criminal Management System

Select * from service taken;


4.4 SQL Triggers and Stored Procedures

4.4.A Trigger

A database trigger is procedural code that is automatically executed in response to


certainFigure
events4.15
on aValues
particular
of service
table or
taken
view
table
in a database. The trigger is mostly
usedfor maintaining the integrity of the information on the database. Triggers execute
Selecta*user
when fromtries
success
to modify
story;data through a data manipulation language (DML) event.
DML events are INSERT, UPDATE, or DELETE statements on a table or view.

Figure 4.16 Values of success story table

Figure 4.21 Screen capture of trigger

Figure 4.22 Screen capture of trigger

BE/Dept. Of CSE/BNMIT 18 2021-2022


Criminal Management System

3.4.1 Stored Procedures

A stored procedure is nothing more than prepared SQL code that the
developer saves so the application can reuse the code over and over again.
So if the developer thinks about a query that you write over and over again,
instead of having to write that query each time you would save it as a stored
procedure and then just call the stored procedure to executethe SQL code
that you saved as part of the stored procedure.

Figure 4.23 Screen capture of trigger

Figure 4.24 Screen capture of trigger

BE/Dept. Of CSE/BNMIT 19 2021-2022


Criminal Management System

Figure 4.25 Screen capture of trigger

Figure 4.26 Screen capture of trigger

BE/Dept. Of CSE/BNMIT 20 2021-2022


Criminal Management System

4.5 Database Connectivity

A Database connection is a facility in computer science that allows client software to


talk to database server software, whether on the same machine or not. A connection is
required to send commands and receive answers, usually in the form of a result set. PHP
has a pretty straight forward method to working with MySQL databases.
There are five steps to make PHP database interaction
1. Create a connection
2. Select database
3. Perform database query
4. Use return data
5. Close connection

<?php
session_start()
//1. Create a database connection
//2. Select a database to use
$servername = “localhost”;
$uname = “root”;
$pass = “”;
$db = “sql_project”;
$conn = mysqli_connect($servername,$uname,$pass,$db);
If(!$conn) {
Die(“Connection failed”);
}
//3. Perform database query
$qry = “Select * from users”;
If(mysql_query($qry,$conn)
echo “Rows selected”;
$result = mysqli_query($conn,$qry);

BE/Dept. Of CSE/BNMIT 21 2021-2022


Criminal Management System

//4. Use returned data


While($row=mysql_fetch_array($result)) {
echo $row['name'];
echo $row['address'];
echo $row['contact'];
}
//5. Close connection
mysql_close($conn);
?>

4.6 Modules
1.Admin login:-
• Dashboard:- Admin can have a look at the number of FIR, criminals, police
officers, police stations
• Police stations:- Admin can register a new Police station and can view the
present number of police stations
• Police officers:- Admin can register a new Police officer and can view the
present number of police officers
• View Criminal:- Admin can view the data of the criminals
• View FIR:- Admin can view the number of FIR

2. Police login:-

• Dashboard:- Police Officer can have a look at the number of FIR,criminals,


Police officers, police stations.
• Criminals:- Can have a look at the data of criminal and can register a new
criminal .
• FIR:- Admin can register a new Police officer and can view the present number
FIR’s.
• Criminal Log:- Can view the data of criminals .
• Crime Categories:-Can view the crime name and there Crime id .

BE/Dept. Of CSE/BNMIT 22 2021-2022


Criminal Management System

START

Police Admin
login login

Criminal Crime Police Police View View


Criminals FIR FIR
log Categories stations officers Criminal

Update Database Update


Database

Database

Figure:-4.27:Modules present in Criminal Management System

BE/Dept. Of CSE/BNMIT 23 2021-2022


Chapter 5
RESULT

The project is compiled and executed on phpMyadmin. The following


screenshots show the working of the Application.

Home page:
This page provides option to choose for user login or administrator login.

Figure 5.1: Homepage

User Login/Register page:


This page lets existing Police Officers to login.

Figure 5.2: Police login

BE/Dept. Of CSE/BNMIT 24 2021-2022


Criminal Management System

Admin Login Page:

This page lets new users to register and existing users to login.

Figure 5.3: Admin Login

The Police Dashboard Page:


Shows the number of FIR,criminals,policeofficers,policestations.

Figure 5.4: Police Dashboard(shows Live count of various details)

BE/Dept. Of CSE/BNMIT 25 2021-2022


Criminal Management System

Adding Criminal Page:


Adding a criminal with details.

Figure 5.5: Add Criminal page

Criminal Record Page:

Figure 5.6: Manage Criminal Section

BE/Dept. Of CSE/BNMIT 26 2021-2022


Criminal Management System

Update criminal detail Page:

Figure 5.7: Update Criminal Details

The Charge sheet Page:

Figure 5.8: Generated PDF of Chargesheet


BE/Dept. Of CSE/BNMIT 27 2021-2022
Criminal Management System

Adding a FIR Page:

Figure 5.9: New fir page

FIR Page:

Figure 5.10: Manage fir page

BE/Dept. Of CSE/BNMIT 28 2021-2022


Criminal Management System

The FIR Report Page:

Figure 5.11: Generated PDF of FIR Report

The FIR Report Page:

Figure 5.12: List of crime categories

BE/Dept. Of CSE/BNMIT 29 2021-2022


Criminal Management System

The Admin Dashboard Page:


Shows the number of FIR,criminals,policeofficers,policestations.

Figure 5.13: Admin Dashboard (shows Live count of various details)

Station Recoed Page:

Figure 5.14: Manage Policestations

BE/Dept. Of CSE/BNMIT 30 2021-2022


Criminal Management System

Police Record Page:

Figure 5.15: Manage PoliceOfficers

BE/Dept. Of CSE/BNMIT 31 2021-2022


Chapter 6

CONCLUSION & FUTURE ENHANCEMENTS

6.1 Conclusion
The CRIMINAL DATA MANAGEMENT SYSTEM developed here is a
significant improvement over the manual system which requires a lot of manual
work. It also reduces the paperwork to a great extent.
This system not only helps countless officers but also increases the speed of all
Processes involved, this is very important as it helps to solve cases quickly and
provide justice. It can help in digitizing all the information so that it isn’t lost in
the files. Backlog of cases will be reduced significantly. The system developed
here was thoroughly checked and tested by the team and it has proved to be very
efficient.

6.2 Future Enhancements

The system can be further enhanced according to the needs of the staff and will
stay up to date with the newest technology and features.
Feedback from the users will be used to improve the system as and when
required.

BE/Dept. Of CSE/BNMIT 32 2021-2022

You might also like