0% found this document useful (0 votes)
77 views31 pages

Police Complaint Based

Uploaded by

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

Police Complaint Based

Uploaded by

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

Police Complaint Management System using Blockchain

Technology
INNOVATIVE PRODUCT DEVELOPMENT REPORT
Submitted by

T. Sai Sangeetha Rishita ganoliya N.Ashruja

22RH1A66J2 22RH1A66F6 22RH1A66C9

Under the Esteemed Guidance of

Dr. Shivani Bhasgi

Assistant Professor

in partial fulfillment of the Academic Requirements for the Degree of

BACHELOR OF TECHNOLOGY

CSE-AI & ML

MALLA REDDY ENGINEERING COLLEGE FOR WOMEN


Autonomous Institution-UGC, Govt. India
Accredited by NAAC with ‘A+’ Grade, UGC, Govt. of India
Permanently Affiliated to JNTUH, Approved by AICTE, ISO 9001:2015 Certified Institute
Maisammaguda, Dhullapally, Secunderabad, Kompally-500100

NOVEMBER- 2024
MALLA REDDY ENGINEERING COLLEGE FOR WOMEN
Autonomous Institution-UGC, Govt. of India
Accredited by NAAC with ‘A+’ Grade, UGC, Govt. of India
Permanently Affiliated to JNTUH, Approved by AICTE, ISO 9001:2015 Certified Institute
Maisammaguda, Dhullapally, Secunderabad, Kompally-500100

DEPARTMENT OF CSE - AI &ML

CERTIFICATE

This is to certify that the Innovative Product Development work entitled Police Complaint
management System usying Blockchain Technology is carried out by T Sai
Sangeetha(22RH1A66J2), Rishita ganoliya(22RH1A66F6), N .Ashruja(22RH1A66C9) in
partial fulfillment for the award of degree of BACHELOR OF TECHNOLOGY in CSE - AI & ML, Malla
Reddy Engineering College for Women, Hyderabad during the academic year 2023-2024.

Supervisor’s Signature Head of the Department

Dr. Shivani Bhasgi Dr.G.Kalpana


Asst. Professor Professor

External Examiner
MALLA REDDY ENGINEERING COLLEGE FOR WOMEN
(Autonomous Institution –UGC, Govt. of India)
Accredited by NAAC with A+ Grade
Affiliated to JNTUH, Approved by AICTE, ISO 9001:2015 Certified Institute
Maisammaguda (V), Dhullapally (Post), (Via) Kompally, Medchal Malkajgiri Dist. T.S-500100

Department of CSE –AI & ML

DECLARATION

We hereby declare that the Innovative Product Development entitled Police Complaint
Management System using Blockchain Technology submitted to Malla Reddy Engineering College For
Women for the award of the Degree of Bachelor of Technology in CSE-AI & ML is a result of original

research work done by us. It is further declared that the Innovative Product Development report or any
part there of has not been previously submitted to any University or Institute for the award of Degree.

T. Sai Sangeetha(22RH1A66J2)

Rishita ganoliya (22RH1A66F6)

N. Ashruja(22RH1A66C9)
ACKNOWLEDGEMENT

We feel ourselves honored and privileged to place our warm salutation to our
college Malla Reddy Engineering College for Women and Department of CSE-
AI&ML which gave us the opportunity to have expertise in engineering and profound
technical knowledge.

We would like to deeply thank our Honorable MLA of Telangana State Sri.Ch.
Malla Reddy Garu, founder chairman MRGI, the largest cluster of institutions in the state
of Telangana for providing us with all the resources in the college to make our project
success.

We wish to convey gratitude to our Principal Dr. Y. Madhavee Latha, for


providing us with the environment and mean to enrich our skills and motivating us in our
endeavor and helping us to realize our full potential.

We would like to thank Prof. A. Radha Rani, Director of Computer Science and
Engineering & Information Technology for encouraging us to take up a project on this
subject and motivating us towards the Project Work.

We express our sincere gratitude to Dr.G.Kalpana , Head of the Department of


CSE–AI&ML for inspiring us to take up a project on this subject and successfully guiding
us towards its completion.

We would like to thank our guide Dr.Shivani Bhasgi, Asst. Professor of CSE-
AI&ML Dept and all the Faculty members for their valuable guidance and encouragement
towards the completion of our project work.

With Regards and Gratitude

T. Sai Sanngeetha (22RH1A66J2)

Rishita ganoliya (22RH1A66F6)

N. Ashruja (22RH1A66C9)
ABSTRACT

The criminal activities in India are increasing at a rapid rate. Many of these activities go
unreported. Even after having an online portal for the police for storing FIRs and NCRs, most
of the FIRs are handwritten as a traditional practice. In most of the cases, the complainant has
to be present in the police station to file a cognizable offense. An effective system for e-
governance was started in 2009 named Crime and Criminal Tracking Network and Systems
(CCTNS) for the entire country. However, it is a centralized system for a particular state. Thus,
there is a need for a completely decentralized system for assuring that there is no central point
of failure in the system and complaints are managed securely protected from unauthorized
access. Our aim is to propose a blockchain-based solution to manage complaints against both
cognizable and non-cognizable offenses. The FIR filed by the police will be encrypted, stored
in the IPFS and hash is added to the blockchain network. If the police decide not to file the FIR
under pressure or deny receiving any complaint, then the complainant will have strong proof
against him/her as the complaint along with its timestamp was stored on the blockchain
network. Having all the records stored in an immutable database would remove any chances of
the FIR/NCR being tampered and going unnoticed.
INDEX

TITLE i
CERTIFICATE ii
DECLARATION iii
ACKNOWLEDGMENT iv
ABSTRACT v

1.INTRODUCTION 1
1.1.Project Definition 1
1.2.Project Overview 1
1.3.Software Requirements 1
1.4.Hardware Requirements 1
2.LITERATURE SURVEY 2
2.1.Existing System 2
2.2.Disadvantages 2
2.3.Proposed System 2
2.4.Advantages 2
3.METHODOLOGY 3- 4
4 SYSTEM ARCHITECTURE 5-6
5.IMPLEMENTATION 7-18
6.RESULTS 19-23

7.CONCLUSION & FUTURE SCOPE 24

REFERENCES 25
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

CHAPTER 1
INTRODUCTION
1.1 PROJECT DEFINITION
Technology has touched many citizens living in India and abroad. Technology is in industry,
education, social interactions and preservation human relations, in sales, in agriculture and in
banking, communication, and just about any aspect of our life. This technology interference
has supported the work in many of these areas and has been helpful, saving time and effort. On
the other hand, the rising in crime rates all across the globe is one of the serious concerns for
all the governments. However, to tackle this problem, a vending teller machine-based FIR
online registration system is proposed in this research work. This will assuredly help people in
registering the crimes and will remove the fear of going to police station to lodge the
complaint. Furthermore, this machine can be installed at various public places for the ease of
access.

1.2 PROJECT OVERVIEW


We propose a two-level blockchain system that separates digital evidence into hot and cold
blockchains. In the criminal investigation process, information that frequently changes is
stored in the hot blockchain, and unchanging data such as videos are stored in the cold
blockchain. To evaluate the system, we measured the storage and inquiry processing
performance of digital crime evidence videos according to the different capacities in the two-
level blockchain system

1.3 SOFTWARE REQUIREMENTS:

• Operating system: Windows.


• Coding Language: Python.

1.4 HARDWARE REQUIREMENTS


• Processor : Intel i3

• Hard Disk : 500GB

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 1
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

CHAPTER 2
LITERATURE SURVEY
2.1 Existing System:
In Earlier all criminal records were maintained in a register which can be easily manipulated
and time-consuming process to transfer register data from one police station to other station.
To overcome from above issue Online Criminal Tracking System was introduced which is
managed by a single centralized server, if this server is down then criminal tracking services
will get disturbed and internal employee of server management can be manipulated easily and
those manipulation cannot be detected easily

2.2 Proposed System:


The proposed system is a decentralized platform for managing complaints with the help of
various technologies like blockchain, IPFS, etc. The detailed architecture of the system is
explained in the form of modules followed by the implementation of the system Like Security
Module, Blockchain Module, Web/Mobile Interface and Implementation So by employing
Blockchain technology we can overcome from all disadvantages faces during single
centralized servers.

2.3 Advantages
1.Transparency and Trust: Immutable records build trust.

2. Enhanced Security: Data is secure through encryption.

3. Decentralized Access: Access without a central authority.

4. Efficient Record-Keeping: Automated and error-reduced tracking.

5. Reduced Corruption: Immutable records prevent tampering.

2.4 Disadvantages:
1. High Cost: Implementation and maintenance are costly.

2.Scalability Issues: Limited transaction speed can impact efficiency.

3.Complex Integration: Integrating with existing systems is challenging.

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 2
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

CHAPTER 3
METHODOLOGY
The requirements gathering process takes as its input SDLC is nothing but Software

SDLC : Fig 1

Development Life Cycle. It is a standard which is used by software industry to develop good

Stages in SDLC:

• Requirement Gathering

• Analysis

• Designing

• Coding

• Testing

• Maintenance

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 3
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

document contains complete descriptions of each requirement, including diagrams and


references to external documents as necessary. Note that detailed listings of database tables and
fields are not included in the requirements document.

The title of each requirement is also placed into the first version of the RTM, along with the
title of each goal from the project plan. The purpose of the RTM is to show that the product
components developed during each stage of the software development lifecycle are formally
connected to the components developed in prior stages.

• ECONOMIC FEASIBILITY

A system can be developed technically and that will be used if installed must still be a good
investment for the organization. In the economical feasibility, the development cost in creating
the system is evaluated against the ultimate benefit derived from the new systems. Financial
benefits must equal or exceed the costs.

• OPERATIONAL FEASIBILITY

Proposed projects are beneficial only if they can be turned out into information system. That
will meet the organization’s operating requirements. Operational feasibility aspects of the
project are to be taken as an important part of the project implementation. This system is
targeted to be in accordance with the above-mentioned issues. Beforehand, the management
issues and user requirements have been taken into consideration. So there is no question of
resistance from the users that can undermine the possible application benefits. The well-
planned design would

• TECHNICAL FEASIBILITY

Earlier no system existed to cater to the needs of ‘Secure Infrastructure Implementation


System’. The current system developed is technically feasible. It is a web based user interface
for audit workflow at NIC-CSD. Thus it provides an easy access to .the. users. The database’s
purpose is to create, establish and maintain a workflow among various entities in order

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 4
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

CHAPTER 4
SYSTEM ARCHITECTURE

Blockchain-based police complaint management system architecture would consist of several

layers, components, and modules to ensure secure, transparent, and efficient complaint processing.
Here’s an overview of its architecture:

System design : Fig 2

1. User Interface Layer (UI/UX)

• Citizen Portal: Allows citizens to register complaints, track status, and access responses.
This portal can be web-based or mobile-app based, ensuring ease of access and usability.

• Police Dashboard: Used by law enforcement officers to view, assign, and update
complaints. It provides insights and analytics on complaints and case progress.

• Admin Panel: Allows system administrators to manage users, permissions, and overall
system maintenance.

2. Application Layer

• Complaint Registration Module: This module allows citizens to submit complaints,


attaching necessary documentation, photos, or videos.

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 5
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

3. Smart Contracts Layer

• Smart contracts define rules and conditions for complaint handling. They automate complaint
registration, case assignment, and escalation processes, ensuring that the workflow is followed
transparently and that updates are executed based on predefined conditions.

4. Blockchain Layer

• Blockchain Network: A private or consortium blockchain network where all complaint


transactions are recorded. This network ensures data immutability, making each transaction
permanent and verifiable.

• Transaction Ledger: Stores each complaint as a transaction. Any updates, status changes,
and responses are also logged here to ensure an unalterable audit trail.

5. Data Management Layer

• Distributed Database: Stores non-sensitive and public-facing data, such as complaint status
and basic metadata. Sensitive information can be encrypted and referenced via hashes stored on
the blockchain.

• Encryption and Key Management: Ensures that sensitive data remains secure. Only
authorized parties have access to specific information through encryption keys, while the
blockchain stores cryptographic hashes for reference.

6. Integration Layer

• API Gateway: Manages communication between the blockchain network and external
services, enabling interoperability with other government databases like judicial and criminal
records.

• Inter-Agency Access Control: Allows restricted access for external entities (courts, legal
bodies) to query complaint status, ensuring cross-agency transparency while maintaining data
privacy.

7. Analytics and Reporting Layer

• Provides data analysis on complaints, response times, and case outcomes to support decision-
making and performance reviews. Machine learning algorithms can also analyze complaint
patterns and predict potential hotspots or trends.

8. Security Layer

• Authentication and Authorization: Ensures that users are verified through multi-factor
authentication, and each role has appropriate access permissions.

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 6
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

CHAPTER 5
IMPLEMENTATION

5.1 PYTHON
* One of the most popular languages is Python. Guido van Rossum released this language in
1991. Python is available on the Mac, Windows, and Raspberry Pi operating systems. The
syntax of Python is simple and identical to that of English. When compared to Python, it was
seen that the other language requires a few extra lines.
*It is an interpreter-based language because code may be run line by line after it has been
written. This implies that rapid prototyping is possible across all platforms. Python is a big
language with a free, binary-distributed interpreter standard library.
* It is inferior to maintenance that is conducted and is straightforward to learn. It is an object-
oriented, interpreted programming language. It supports several different programming
paradigms in addition to object-oriented programming, including functional and procedural
programming.

Here are some key features and characteristics of Python:


• Readability: Python emphasizes code readability with its clean and intuitive syntax. It
uses indentation and whitespace to structure code blocks, making it easy to understand and
maintain.
• Easy to Learn: Python's simplicity and readability make it an excellent choice for
beginners. Its straightforward syntax and extensive documentation make it accessible for
newcomers to programming.
• Interpreted Language: Python is an interpreted language, meaning that it doesn't need to
be compiled before running. The Python interpreter reads and executes the code directly,
making the development process faster and more interactive.
Python GUI (Tkinter)
• Python provides a wide range of options for GUI development (Graphical User Interfaces).
• Tkinter, the most widely used GUI technique, is used for all of them.
• The Tk GUI toolkit offered by Python is used with the conventional Python interface.

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 7
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

• Tkinter is the easiest and quickest way to write Python GUI programs.
• Using Tkinter, creating a GUI is simple.
• A part of Python's built-in library is Tkinter. The GUI programs were created.
• Python and Tkinter together give a straightforward and quick way. The Tk GUI toolkit's
object-oriented user interface is called Tkinter.

There are some libraries following:


Pandas:
Pandas are a Python computer language library for data analysis and manipulation. It offers a
specific operation and data format for handling time series and numerical tables. It differs
significantly from the release3-clause of the BSD license. It is a well-liked open-source of
opinion that is utilized in machine learning and data analysis.Pandas are a Python package
providing fast, flexible, and expressive data structures designed to make working with
“relational” or “labeled” data both easy and intuitive. It aims to be the fundamental high-level
building block for doing practical, real-world data analysis in Python. Pandas are a Python
library used for working with data sets.It has functions for analysing, cleaning, exploring, and
manipulating data.The name "Pandas" has a reference to both "Panel Data", and "Python Data
Analysis" and was created by Wes McKinney in 2008.Pandas allow us to analyse big data and
make conclusions based on statistical theories.Pandas can clean messy data sets, and make
them readable and relevant.

Keras:
* Google's Keras is a cutting-edge deep learning API for creating neural networks. It is
created in Python and is designed to simplify the development of neural networks.
Additionally, it enables the use of various neural networks for computation. Deep learning
end API, allowing developers to define and configure neural networks while leveraging the
computational backend engines, such as Tensor Flow or Theano.
Here are some key features and functionalities of the Keras library:
• User-Friendly API
• Multi-backend Support
• Wide Range of Neural Network Architectures

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 8
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

• Pre-trained Models and Transfer Learning:


• Easy Model Training and Evaluation:
• GPU Support:

h5py:
The h5py Python module offers an interface for the binary HDF5 data format. Thanks to
p5py, the top can quickly halt the vast amount of numerical data and alter it using the NumPy
library. It employs common syntax for Python, NumPy, and dictionary arrays.h5py is a
Python library that provides a simple and efficient interface for working with datasets and
files in the Hierarchical Data Format 5 (HDF5) format. HDF5 is a versatile data
formatcommonly used for storing and managing large volumes of numerical data.
Here are some key features and functionalities of the h5py library:
• HDF5 File Access
• Dataset Handling:
• Group Organization:
• Attributes:
• Compatibility with NumPy
• Performance

• SOURCE CODE

from django.shortcuts import render

from django.template import RequestContext

from web3 import Web3, HTTPProvider

import ipfsApi

import os

from django.core.files.storage import FileSystemStorage

import pickle

from datetime import date

I mport pyaes, pbkdf2, binascii, os, secrets

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 9
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

Import base64

import urllib, mimetypes

from django.http import HttpResponse

global details, username

details=''

global contract

api = ipfsApi.Client(host='http://127.0.0.1', port=5001)

def readDetails(contract_type):

global details

details = ""

print(contract_type+"======================")

blockchain_address = 'http://127.0.0.1:9545' #Blokchain connection IP

web3 = Web3(HTTPProvider(blockchain_address))

web3.eth.defaultAccount = web3.eth.accounts[0]

with open(compiled_contract_path) as file:

contract_json = json.load(file) # load contract info as JSON

contract_abi = contract_json['abi'] # fetch contract's abi - necessary to call its functions

file.close()

contract = web3.eth.contract(address=deployed_contract_address, abi=contract_abi) #now calling contract to

if contract_type == 'addusers':

details = contract.functions.getUsers().call()

if contract_type == 'complaints':

details = contract.functions.getComplaints().call()

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 10
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML
if contract_type == 'investigations':

details = contract.functions.getInvestigation().call()

print(details)

def saveDataBlockChain(currentData, contract_type):

global details

global contract

details = ""

blockchain_address = 'http://127.0.0.1:9545'

web3 = Web3(HTTPProvider(blockchain_address))

web3.eth.defaultAccount = web3.eth.accounts[0]

compiled_contract_path = 'Police.json' #Police contract file

deployed_contract_address = '0x1DD4fb45C1cdC8C3f32cbaA60464c8107D4D4058' #contract address

with open(compiled_contract_path) as file:

contract_json = json.load(file) # load contract info as JSON

contract = web3.eth.contract(address=deployed_contract_address, abi=contract_abi)

readDetails(contract_type)

if contract_type == 'addusers':

details+=currentData

msg = contract.functions.addUsers(details).transact()

tx_receipt = web3.eth.waitForTransactionReceipt(msg)

if contract_type == 'complaints':

details+=currentData

msg = contract.functions.addComplaints(details).transact()

tx_receipt = web3.eth.waitForTransactionReceipt(msg)

if contract_type == 'investigations':

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 11
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

details+=currentData

msg = contract.functions.addInvestigation(details).transact()

tx_receipt = web3.eth.waitForTransactionReceipt(msg)

def index(request):

if request.method == 'GET':

return render(request, 'index.html', {})

def PoliceLogin(request):

if request.method == 'GET':

return render(request, 'PoliceLogin.html', {})

def AdminLogin(request):

if request.method == 'GET':

return render(request, 'AdminLogin.html', {})

context= {'data': output}

return render(request, 'UserScreen.html', context)

def ViewInvestigations(request):

if request.method == 'GET':

global username

output = '<table border=1 align=center>'

output+='<tr><th><font size=3 color=black>Complaint No</font></th>'

output+='<th><font size=3 color=black>Complaint Details</font></th>'

output+='<th><font size=3 color=black>Complainer Name</font></th>'

output+='<th><font size=3 color=black>Complainer Contact No</font></th>'

output+='<th><font size=3 color=black>Address</font></th>'

output+='<th><font size=3 color=black>Criminal Name</font></th>'

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 12
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

output+='<th><font size=3 color=black>Contact No</font></th>'

output+='<th><font size=3 color=black>Address</font></th>'

output+='<th><font size=3 color=black>Case Type</font></th>'

output+='<th><font size=3 color=black>Station Details</font></th>'

readDetails("investigations")

investigations = details.split("\n")

readDetails("complaints")

rows = details.split("\n")

output+='<th><font size=3 color=black>Case Type</font></th>'

output+='<th><font size=3 color=black>Station Details</font></th>'

output+='<th><font size=3 color=black>IPFS Storage Hashcode</font></th>'

output+='<th><font size=3 color=black>Document Name</font></th>'

output+='<th><font size=3 color=black>Complaint Date</font></th>'

output+='<th><font size=3 color=black>Inspector Name</font></th>'

output+='<th><font size=3 color=black>Investigation Details</font></th>'

output+='<th><font size=3 color=black>Download Documents</font></th></tr>'

readDetails("investigations")

investigations = details.split("\n")

readDetails("complaints")

rows = details.split("\n")

for i in range(len(rows)-1):

arr = rows[i].split("#")

output+='<tr><td><font size=3 color=black>'+arr[0]+'</font></td>'

output+='<td><font size=3 color=black>'+arr[1]+'</font></td>'

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 13
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

output+='<td><font size=3 color=black>'+arr[2]+'</font></td>

output+='<td><font size=3 color=black>'+arr[12]+'</font></td>'

output+='<td><font size=3 color=black>'+arr[13]+'</font></td>'

invest = ""

for k in range(len(investigations)):

ar = investigations[k].split("#")

if ar[0] == arr[0]:

invest += ar[2]+"\n"

output+='<td><font size=3 color=black>'+invest+'</font></td>'

output+='<td><a href=\'DownloadAction?file='+arr[0]+'\'><font size=3 color=black>Click Here</

def AddFirAction(request):

if request.method == 'POST':

global username

today = date.today()

complaint = request.POST.get('t1', False)

complainer_name = request.POST.get('t2', False)

complainer_contact = request.POST.get('t3', False)

complainer_address = request.POST.get('t4', False)

criminal_name = request.POST.get('t5', False)

criminal_contact = request.POST.get('t6', False)

criminal_address = request.POST.get('t7', False)

case_type = request.POST.get('t8', False)

station = request.POST.get('t9', False)

filedata = request.FILES['t10'].read()

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 14
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

filedata = encrypt(filedata)

complaint_id = 0

readDetails("complaints")

rows = details.split("\n")

if len(rows) == 0:

complaint_id = 1

else:

complaint_id = len(rows)

filedata = pickle.dumps(filedata)

hashcode = api.add_pyobj(filedata)

def DownloadAction(request):

if request.method == 'GET':

global username

complaint = request.GET['file']

fileName = ""

hashcode = ""

readDetails("complaints")

rows = details.split("\n")

for i in range(len(rows)-1):

arr = rows[i].split("#")

if arr[0] == complaint:

fileName = arr[11]

hashcode = arr[10]

break

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 15
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML
content = api.get_pyobj(hashcode)

content = pickle.loads(content)

content = decrypt(content)

response = HttpResponse(content,content_type="application/octet-stream")

def ViewPolice(request):

if request.method == 'GET':

global username

output = '<table border=1 align=center>'

output+='<tr><th><font size=3 color=black>Username</font></th>'

output+='<th><font size=3 color=black>Passwor</font></th>'

output+='<th><font size=3 color=black>Police Station Contact No</font></th>'

output+='<th><font size=3 color=black>E-Mail ID</font></th>'

output+='<th><font size=3 color=black>Address</font></th></tr>'

readDetails("addusers")

rows = details.split("\n")

for i in range(len(rows)-1):

arr = rows[i].split("#")

context= {'data': output}

return render(request, 'AdminScreen.html', context)

def AddNewPoliceAction(request):

if request.method == 'POST':

username = request.POST.get('username', False)

password = request.POST.get('password', False)

contact = request.POST.get('contact', False)

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 16
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML
email = request.POST.get('email', False)

address = request.POST.get('address', False)

record = 'none

for i in range(len(rows)-1):

arr = rows[i].split("#")

if arr[1] == username:

record = "exists"

break

if record == 'none':

data = username+"#"+password+"#"+contact+"#"+email+"#"+address+"\n"

saveDataBlockChain(data,"addusers")

context= {'data':'Signup process completed and record saved in Blockchain'}

return render(request, 'AddNewPolice.html', context)

else:

context= {'data':username+'Username already exists'}

return render(request, 'AddNewPolice.html', context

def AdminLoginAction(request)

username = request.POST.get('username', False)

password = request.POST.get('password', False)

if username == 'admin' and password == 'admin':

context= {'data':"Welcome "+username}

return render(request, 'AdminScreen.html', context)

else:

context= {'data':'Invalid login details'}

return render(request, 'AdminLogin.html', context)

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 17
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

CHAPTER 6

OUTPUT RESULTS

Fig : 3

In above screen IPFS server started and now double click on ‘run.bat’ to start python WEB
SERVER and get below page

Fig : 4

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 18
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

Fig :5

Fig : 6

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 19
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

Fig :7

In above screen admin can click on ‘Add New Police Users’ link to get below page

Fig :8

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 20
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

Fig :9

In above two screen admin can view all previously added FIR reports and can click on ‘Click
Here’ link to download all crime related report and this report will saved in Blockchain in
encrypted format. Now logout and login as Police personnel

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 21
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

Fig :10

In above screen police personnel is login and after login will get below page

Fig : 11

In above screen police can click on ‘Add FIR/NCR/Charge sheet’ link to add FIR

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 22
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

Fig :12

In above screen police can view all crime investigation from Blockchain from anywhere.Similarly
by following above screens you can manage all crime related data in Blockchain

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 23
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

CHAPTER 7
CONCLUSION AND FUTURE SCOPE

CONCLUSION:
Indian Police Services are a crucial part of our country. On a yearly basis, more than 50 lakh
complaints against cognizable crimes are filed. Even after having systems to manage
complaints online, there is still a burden on the police officers for filing handwritten reports
and fear of filing a complaint in the mind of society. Managing Police Complaints in an
efficient and secure way is very crucial because it contains sensitive data. The proposed
system will provide transparency while also ensuring the confidentiality of the data stored. It
will also motivate people to come forward and file their complaints knowing that it cannot be
ignored by the police. It will also benefit the police officers by simplifying the tedious work of
filing reports such as FIRs. The decentralized network does not rely on the trust factor of the
stakeholders. We proposed a system that will protect against corrupt police activities and
provide justice at the very beginning.

FUTURE SCOPE :
A police complaint management system built on blockchain holds vast potential to transform
law enforcement processes by ensuring transparency, security, and efficiency. Using
blockchain’s immutability, complaints are recorded permanently, preventing any tampering or
deletion, which builds public trust. This decentralization enables seamless sharing of data
across police departments and courts, fostering collaboration and reducing duplication.
Blockchain’s encryption adds an additional layer of security to protect sensitive information,
while smart contracts can automate complaint updates and follow-up actions, ensuring timely
responses. Furthermore, citizens can track the status of their complaints in real-time,
increasing accountability within the system. The data’s interoperability with other
governmental systems, such as criminal and judicial databases, helps create a streamlined and
unified approach to legal procedures. By ensuring data accuracy and simplifying audits,

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 24
POLICE COMPLAINT MANAGEMENT SYSTEM USING BLOCKCHAIN TECHNOLOGY DEPT. OF CSE-AIML

REFERENCES

1.K. Akhila, and K. R. Ahmed. Firearm Detection Using Deep Learning. Intelligent Systems and
Applications: (2022).

2. Ahmed, S.; Bhatti, M.T.; Khan, M.G.; Lövström, B.; Shahid, M. Development and
Optimization of Deep Learning Models for Weapon Detection in Surveillance Videos. Appl. Sci.
2022.

3. Ahmed S, Bhatti MT, Khan MG, Lövström B, Shahid M. Development and Optimization of
Deep Learning Models for Weapon Detection in Surveillance Videos. 2022.

4. Ahmed, Soban, Muhammad Tahir Bhatti, Muhammad Gufran Khan, Benny Lövström, and
Muhammad Shahid. 2022. "Development and Optimization of Deep Learning Models for Weapon
Detection in Surveillance Videos. 5.

Ratcliffe, J. Video Surveillance of Public Places. US Department of Justice, Office of Community


Oriented Policing Services: Washington, DC, USA, 2006.

6. Cohen, N.; Gattuso, J.; MacLennan-Brown, K. CCTV Operational Requirements Manual 2009.
Home Office Scientific Development Branch: St. Albans, UK, 2009.

7. Murthy, C.B.; Hashmi, M.F.; Bokde, N.D.; Geem, Z.W. Investigations of Object Detection in
Images/Videos Using Various Deep Learning Techniques and Embedded Platforms—A
Comprehensive Review. Appl. Sci. 2020.

MALLAREDDY ENGINEERING COLLEGE FOR WOMEN, AUTONOMOUS INSTITUTION, UGC, GOVT OF INDIA 25

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy