Académique Documents
Professionnel Documents
Culture Documents
SUBMITTED BY
Sardar Bilal Hussain 2015-GCUF-76831
Habibullah 2015-GCUF-76197
BACHELOR OF SCIENCE
IN
COMPUTER SCIENCE
(BSCS)
DECLARATION
The work reported in this thesis carried out by me under the supervision of Hafza Mehreen
Department of Computer Sciences GC University, Faisalabad, Sahiwal Campus, Pakistan.
I here to declare that the title of Project Online Complain and Threat Awareness
Platform and the contents of thesis are the product of my own research and no part has been
copied from any published source (except the references, standard mathematical or genetic
models /equations /formulas /protocols etc.). I further declare that this work will not been
submitted for award of any other degree /diploma. The University may take action if the
information provided found inaccurate at any stage.
_______________ ______________
ii
OCTA
This is to certify that Sardar Bilal Hussain Roll No. 2015-GCUF-76831, Habibullah Roll
No. 2015-GCUF-76197, has successfully completed the final project named as: Online
Complain & Threats Awareness Platform, at the Department of Computer Science,
Government College University, Faisalabad, to fulfill the partial requirement of the degree of
BS(CS).
Chairperson
Signature with Stamp……………………………
iii
OCTA
ACKNOWLEDGEMENT
We thank the management of GCUF, our faculty and the staff of the Computer
Sciences Department, for motivating us to think beyond books and imbibing in us
the attitude and aptitude to implement what we have studied so far to make us
aware with some of the real-world challenges. We would like to convey our
heartfelt gratitude to our project guide “Ma’am Hafza Mehreen” inspiring us to
take up this project. His valuable guidance and timely support, without which, we
would have never been able to complete the project, cannot be forgot.
Finally, we would like to express our gratitude for the faculty members of
Computer Sciences Department of GCUF and thank them for their cooperation
and timely assistance. Finally, we would like to thank our parents for their
moral support.
iv
OCTA
ABSTRACT
The purpose of this creation for helping the user to communicate with our police via Portal. So that
the user can do their home. That complaint will automatically show at the portal of the respective
police station so the complaint can be submit and resolved on time. In police portal we will give
option of the do complaints, see news feed and prisoners ran away from the police custody. In
police custody console we will use face recognizer so that it will easy for the officer to detect the
prisoner face.
In this Production, there is an option of login for Investigation Officer that he can see daily
notifications by Admin and Applications whether he is in home or anywhere and he can see daily
base threats that is occur in station area.
v
OCTA
TABLE OF CONTENTS
1 INTRODUCTION
1.1 Introduction & History ............................................................................. 2
1.2 Clear Statement of the problem ................................................................ 3
1.3 Introduction to the Software tools ............................................................ 4
1.4 Objectives ................................................................................................. 4
1.5 Proposed Solution..................................................................................... 5
1.6 Motivation ................................................................................................ 5
1.7 Scope of Proposed Solution ..................................................................... 6
1.8 Relevance to Courses ............................................................................... 6
1.8.1 Introduction to Computer Programming (CSC103) ............................................ 6
1.8.2 Object Oriented Programming (CSC241) ............................................................ 6
1.8.3 Web Engineering (CSC336) ................................................................................ 6
1.8.4 Software Engineering (CSC291 & CSC392) ....................................................... 6
1.8.5 Database Systems (CSC271) ............................................................................... 6
1.8.6 Computer Communication and Networking (CSC339) ....................................... 6
1.9 Tools & Techniques ................................................................................. 7
1.9.1 Hardware Details ................................................................................................. 7
1.9.2 Software Details ................................................................................................... 7
1.10 Document Details ..................................................................................... 7
2 STATE OF THE ART
2.1 Cognitive Services .................................................................................... 9
2.2 Face API ................................................................................................... 9
2.3 Online Complain & Threats Awareness Platform .................................. 9
2.3.1 Implementations of the Online Complain & Threats Awareness
Platform in the world ......................................................................................... 9
2.4 Existing Applications ............................................................................. 10
2.5 Drawbacks of Existing Applications ...................................................... 10
2.6 The Necessity ......................................................................................... 10
2.6.1 Appoint Confidentiality ..................................................................................... 10
vi
OCTA
REFERENCES .................................................................................................. 52
viii
OCTA
LIST OF FIGURES
Figure 1: Waterfall Model .................................................................................................................... 14
Figure 2: Incremental Model................................................................................................................. 15
Figure 3: Spiral Model .......................................................................................................................... 16
Figure 4: Agile Iterative Model ............................................................................................................ 17
Figure 5: Adopted Methodology ........................................................................................................... 18
Figure 6: Work Plan (using Gantt chart) ............................................................................................... 23
Figure 7: Login (Use Case) ................................................................................................................... 24
Figure 8: Maintain database (Use Case) ............................................................................................... 25
Figure 9: Take photo (Use Case) .......................................................................................................... 26
Figure 10: Select photo from gallery (Use Case) .................................................................................. 27
Figure 11: Face verification (Use Case) ............................................................................................... 29
Figure 12: Logout (Use Case) ............................................................................................................... 30
Figure 13: Administrator functionalities (Use Case) ............................................................................ 31
Figure 14: User functionalities (Use Case) ........................................................................................... 32
Figure 15: Administrator (Sequence Diagram) ..................................................................................... 33
Figure 16: User (Sequence Diagram).................................................................................................... 34
Figure 17: Administrator (Activity Diagram) ....................................................................................... 35
Figure 18: User (Activity Diagram) ...................................................................................................... 36
Figure 19: Entity Relationship Diagram ............................................................................................... 37
Figure 20: Front Page (Screenshot) ...................................................................................................... 39
Figure 21: Admin Portal (Screenshot) .................................................................................................. 40
Figure 22: Add Employee (Screenshot) ................................................................................................ 41
Figure 23: Add News Feed (Screenshot) .............................................................................................. 42
Figure 24: Assign Complaints (Screenshot) ......................................................................................... 43
Figure 25: Complaints from User (Screenshot) .................................................................................... 44
ix
OCTA
List of Tables
x
CHAPTER 1
INTRODUCTION
OCTA
1 INTRODUCTION
In this chapter, we will introduce this application, software tools, problem statement,
objectives, scope of this application, proposed application, motivation of this proposed
solution, relevance to courses and tools & techniques those are uses to implement this
application.
For this reason, we created unique application working for the help of these peoples who
cannot waste their time on going to Police station and just want one click to submit the
complaints.
For the reason we design a mobile application which is based on "ONLINE COMPLAIN &
THREATS AWARENESS PLATFORM ".
Our project based on ANDROID, UWP and WEB API (ASP.NET MVC5). We have created
this Application for Criminal & Terrorists face detection.
Our application will use cognitive service for detecting face it will work online.
For face detection, we will create API controller in web application and we will get prisoners
& criminal record in our application but using JSON conversions.
This application is bases on latest Microsoft technology JSON and cognitive services built
already separately. We are make it with combination.
2
OCTA
User can easily do complaint from application using this app user can see news feed and they
can get access by swipe the page to choose action.
Admin have login module for see relevant complaint and assign these complaints to
employees after that the data that we enter in admin panel will be assign to the employee in
database according to area categories.
• Do Complaint
• Select City
• Select Station.
ONLINE COMPLAIN & THREATS AWARENESS PLATFORM are not use yet but we are
trying to implement this through an organization on Google play store. During the last decade
availability of the internet connections at the reasonable cost to make it affordable to a much
wider group of users.
Now a day’s people want to secure themselves in easier way by this type of complaint cells
but this production is first time in Mobile Application that is access by handheld devices.
The " VISUAL STUDIO 2017" and POSTMAN ", "ADOBE PHOTOSHOP “are the software
that are used in the backend for overall developing this project. Reason behind using latest
versions is that; they support latest technologies and libraries for developing this project.
For front end we are using XAML, HTML and for backend implementation, C#, ASP.NET
framework have been used. Rather than writing numerous lines of code, we are using built in
3
OCTA
controllers for making API and DATABASE. You can add scaffolding to your project when
you want quickly add code that interacts with data models. In this, you may also use ready-
made objects. Each object has its own properties, determining its positions, nature of its text
and much more.
Model: Model contains the application logic, represents the things in the application.
Controllers: The controller decide what to do with the various user actions.
• For add and removes we use modules for this purpose and, we use Nugget Packages
for support minimum latency.
We are using API controller for creating JSON and calling it into mobile application.
1.4 Objectives
The objectives are important to achieve the goal. The main objectives of this project are:
• Make a reliable, inexpensive and easy solution for people who want to access
complaint cell at any place.
• Do complaint easily from user’s relevant area.
• Admin can store new employee through their respective login portal.
• Admin can Detect face Verification.
• Assign complaints according to area.
• Our application is compatible with cross platforms.
• ONLINE COMPLAIN & THREATS AWARENESS PLATFORM can see all stuff of
movies.
• Today, the platform like this has become a need of our society.
• Online systems are always welcome in this new world of I.T.
4
OCTA
Online Complain & Threats Awareness Platform is a cross Platform based, all type of
complaints that have user to do with face detection that was launch earlier this year with the
objective of providing users with a single platform on web forms do not in mobile App.
After using the app for a good long while, we have come to realize that we no longer need
web base platform for do complaints like PM Complaint Cell. This app does it all and more!
This application has friendly user interface. It is very useful for us for do complaint. In this
app we verified prisoners with detect emotions.
The aim is to provide one platform for users and Police Officers.
1.6 Motivation
Online Complain & Threats Awareness Platform saves significant amount of time in terms of
going to Police Station to meet with relevant officer to resolve their problems. Despite the
inexistence of these types of projects application, the following features are the motivational
source of our project:
Primarily, the scope pertains to the Cross product features for making Online Complain &
Threats Awareness Platform live. It focuses on the company, the stakeholders and
applications, which allow for online complaint, identity capturing and complaint according to
user. According to our survey those we have done to check the feasibility of this project, the
modules that selected to implement in this cross platform based project (Online Complain &
Threats Awareness Platform) are he modules are need of society.
5
OCTA
We have studied the basics of programming in this course. Using the concepts of C#.
Using the concepts of OOP approach in programming pattern and coding design we
implemented our project.
Using the concepts of Web Engineering, application will developed using C#.net framework,
ASP.NET.
This course helped us to evaluate our development methodologies those are uses in our
project.
In this project, we develop relational database system for efficient working of the project by
using the concepts of database systems.
Communication to different ends will done using the knowledge learned from this course.
Online Complain & Threats Awareness Platform! Cross platform based Project consists of
software and hardware tools and technologies. Hardware details are given in section 1.9.1,
Software details are given in section 1.9.2 and document details are given in section 1.10.3.
6
OCTA
• Postman
• Adobe Photoshop
Presently, our app for a user to do complaint first user can click from Get Started button and
then after enter the data about himself like as CNIC, Area and Station that will be shown on
the do complaints page.
After that write complaint and submit by the user.
If you do not complaint then see news feed about Police Headquarter by swiping the
complaints page.
In Admin portal the only way to get face verification about prisoners are through directly
capture picture, select picture from police database, and then detect accuracy of pictures.
It is a problem for those people who don’t want to search .in this app just use button clicks no
more searching required .it is best application for complaints and threats awareness.
7
CHAPTER 2
STATE OF THE ART
OCTA
OCTA is a mobile application in which user can do his/her complaint and submit according to
their area. Admin detect prisoner image is detected by using Microsoft cognitive services.
9
OCTA
for all the users and admin to get all the information needed as quick as possible that too from
anywhere in the world. The persons and updating in time.
Admin can assign complaint at any time at any place and user can resolve their complaint at
any time at any place.
Currently, there are no more familiar websites we have in the pocket now a day but we will
try our best to implement this projects in the market for the first time because it will make ease
in the world of Criminal courts.
Presently, our system for detect face of prisoner and complaint cell. The only way to get all
these features to complaint cell and helping for officers to face recognition of prisoner. Hence,
it’s a very big problem for those who don’t have any idea of how to do complaint in Police
station. This application is beneficial for those users who want to know direct do complaint in
relevant station about his/her criminal or fraud cases.
Currently, there is no other Mobile application exists so we have no drawbacks but if it exists
then we have several drawbacks:
• There is no application of this type is in the market so it’s very difficult to implement
this into market
• People cannot easily attract to the application we have to take them here.
• We should have to work deeply and work in the way so that people show their interest
in this project.
Appoint Confidentiality must maintained by Online Complain & Threats Awareness Platform
By this administrator have full control over all Portals.
Online Complain & Threats Awareness Platform must show accurate records of prisoners.
Online Complain & Threats Awareness Platform must provide the facility of better streaming
using internet connection.
Those problems have been occurring in the existing applications, overcome in proposed
project. In this, we are implemented all of the functionality by using any device with internet
access for application to handling the circulate entries and built better streaming for the user.
The objective of the project is a system that used for providing easiest approach according to
user needs. It captures the information of prisoner and provide the prisoner list. It provides a
facility for all user according to their area and stations.
11
CHAPTER # 3
In this chapter, we will discuss that what are the existing methodologies and which one we
have chosen for implementation of this project in an effective way and we will discuss
advantages of adopted methodology.
Whenever a small or large project have started to develop, first thing all of programmers
required is methodology. Methodology is a way of developing a project, in which all the
programmers gather the user’s requirements, design the project, implement it, and after all this
testing and maintenance of the project, in a satisfaction of user and according to the project
requirements.
In the software development process, the very first model that published from other
engineering processes that is cascaded from one phase to another form that known as Waterfall
model. This model is also known as linear sequential model. In the waterfall model, firstly all
the requirements gathered. After gathering all the requirements and analysis of all the
requirements further move to next phase that is making the design of a project and then Simple
mentation, testing and maintenance phases.
As all the next phases of this model is dependent on previous phase. All the phases worked as
a waterfall after one another. It is a documentation driven model. In this model, feedback of
the client received at the end of the project and when the product will delivered to the user.
Hence, mistake in the product requirement specification will discovered after delivered to the
13
OCTA
user. This is Time and cost consuming methodology, that is why we have not used this
methodology in developing this project.
To overcome the drawbacks of the waterfall model, incremental model is used. In incremental
model, the product developed in increments and partitioned into smaller pieces. These smaller
pieces then built and delivered to client in increments. Quick response from clients. Each
module is smaller than compare to whole module.
14
OCTA
Spiral Model developed by Barry Boehm. The main idea of this model is to avert risk, as there
is always an element of risk in development of software. For example, key personnel may
resign at a critical juncture, the manufacturer of the software development may go bankrupt,
etc. In its simplified form, the Spiral Model is Waterfall model plus risk analysis. In this case
each stage is preceded by identification of alternatives and risk analysis and is then followed
by evaluation and planning for the next phase.
If risks cannot be resolved, project immediately terminated. This depicted in the following
diagram.
15
OCTA
Agile model is useful when there is no hope for changings in product after deployment. It is a
approach to project management that is utilized in software development. This method assists
teams in responding to the unpredictability of constructing software. It uses incremental,
iterative work sequences that commonly known as sprints. The ability to create and respond to
change to succeed in an uncertain and turbulent environment.
16
OCTA
17
OCTA
18
OCTA
19
CHAPTER 4
The procedure for gathering requirements has its own defined procedure according to the
complexity of the application. To define project schedule and processing, different models and
techniques also focused on this chapter.
The techniques we have used to collect requirements are observations and interviews.
1. Functional Requirements
2. Non-Functional Requirements
Functional requirements are the requirements that should provide by an application. It defined
as a service statement. Functional requirements tell how an application should behave in
different situations and how it will react to an input.
21
OCTA
REQ-F4: The user will be able to select area from list according to stations.
Non-functional requirements are the constraints or checks on the services and functions
provided by an application such as constraints on the development standards/process and
constraints of time etc.
REQ-NF1: Mobile application shall provide better response and performance. It shall take
initial load time depending on internet connection strength.
REQ-NF2: Mobile application shall provide good quality of working in normal internet
connection.
4.2.3.1 Availability
4.2.3.2 Maintainability
Making changes or upgradeability in the app will not be that much difficult. By having some
knowledge of programming, some features of the application might converted to a new version.
22
OCTA
4.2.3.3 Consistency
A Gantt chart is a scheduling technique that used commonly in project management. It is one
of the useful and common way of representation of activities displayed in contrast to time. On
the vertical side of the chart activities list displayed and on the top a time scale which is
appropriate. A bar represents each activity’s length and shows the start date, end date and
duration of the activity. This shows following information.
Working Schedule
No. Activities Duration(weeks)
1 2 3 4 5 6 7 8 9 10 11 12 13 14
1 Selection of Supervisor
23
OCTA
An important part of the analysis phase is to draw the diagrams of Use cases. They are used
through the phase of analysis of a project to find and divide functionality of the application.
Application is separated into actors and use cases.
Actors play the role that are played by the application users. Use cases define the application
behavior when one of the actors sends any motivation. This type of behavior can be described
by text. It describes the motivation nature that activates use case, the inputs and outputs to some
other actors and the behavior of conversion of inputs to the outputs.
Usually the use case describes everything that can go wrong during the detailed behavior and
what will be helpful action taken by the application.
Actor: Administrator
24
OCTA
Pre-Condition:
Post-Condition:
Basic Path:
Constraints:
1. If provided email address and password are incorrect or invalid, application redirect to
main page for login.
Non-Functional Requirements:
25
OCTA
Actor: Administrator
Pre-Condition:
1. UC1
2. The administrator must provide complete details of a employee.
Post-Condition:
Basic Path:
26
OCTA
Non-Functional Requirements:
1. Better response
2. Reliable
Actor: Admin
Pre-Condition:
Post-Condition:
Basic Path:
27
OCTA
Non-Functional Requirements:
1. Better response
2. Easy to use
3. Availability
4. Short response time.
Actor: User
Pre-Condition:
1. UC3
2. Selected photos exists in database.
Post-Condition:
Basic Path:
CONSTRAINTS:
NON-FUNCTIONAL REQUIREMENTS:
Actor: User
29
OCTA
Pre-Condition:
Post-Condition:
Basic Path:
CONSTRAINTS:
NON-FUNCTIONAL REQUIREMENTS:
1. Better response
2. Reliable
Actor: Administrator
30
OCTA
Pre-Condition:
1. UC1
Post-Condition:
Basic Path:
NON-FUNCTIONAL REQUIREMENTS:
1. Secure
2. Reliable
3. Better performance
4. Short Response Time
31
OCTA
32
OCTA
Sequence diagrams are usually related with the understanding of use case in the logical View
of the system which is under development. “Sequence diagrams are sometimes called event
diagrams, timing diagrams, event scenarios”.
33
OCTA
A parallel vertical line on sequence diagram is called lifeline. Different objects or processes
that live simultaneously, and, on horizontal arrows, the messages exchanged, in the order in
which processes occur. This allows some specification of some simple runtime scenarios in a
graphical pattern.
34
OCTA
Activity is an operation of the system. Activity diagrams are not only used for visualizing the
dynamic nature of a system, but they are also used to construct the executable system by using
35
OCTA
forward and reverse engineering techniques. The only missing thing in the activity diagram is
the message part.
36
OCTA
37
OCTA
38
CHAPTER # 5
SYSTEM IMPLEMENTATION
OCTA
5 SYSTEM IMPLEMENTATION
In this chapter, we will focus on an implementation of “Online Complain & Threats
Awareness Platform” application. Where administrator and user can perform many activities
on mobile app.
5.1 Introduction
The most important goal of this phase is to develop the application. The work in this phase
should be much more straightforward because of the work done in the planning and design
phases. This phase involves changing design specifications into executable programs. When
the design is there, developers can have an idea on looks of application. All that is needed by
developers is to put them at one place to understand about the intended project.
5.2 Screenshots
40
OCTA
41
OCTA
42
OCTA
43
OCTA
44
OCTA
45
OCTA
46
OCTA
47
CHAPTER 6
SYSTEM TESTING
OCTA
6 SYSTEM TESTING
In this chapter, we will discuss the testing phase of developed application “Online Complain
& Threats Awareness Platform” in different manner to know that how much efficient and
effective application is.?
6.1 Introduction
A process of performing as application or program with the intention of finding errors and
whether the app is fulfilling user needs. It can also be defined as the ability of a program in
meeting the required or desired results.
A process of performing as application or program with the intention of finding errors and
whether the application is fulfilling user needs.
The software units in an application are modules and routines that are assembled and integrated
to perform a specific function. Unit testing focuses first on modules, independently of one
another, to locate errors. This enables, to detect errors in coding and logic that are contained
within each module. This testing includes entering data and ascertaining if the value matches
to the type and size supported by C#. The various controls are tested to ensure that each
performs its action as required.
Commonly used method is White-Box Testing method. Every time a component of the
program is changed, it can be run for testing that is the biggest and famous benefit of this testing
phase. Issues that are arises during this phase, allowing to be resolved as quickly as possible.
Unit testing is familiar by software developers. It allows them to test their application units
before moving them to testers for formal testing.
49
OCTA
To test the complete application, system testing has been used. It is beneficial to check whether
the application meets its requirements and fulfill Quality Standards.
Integration testing allows the software developers to integrate all the components/ units of the
application within a program and then test them in a group. Basically, this testing level is used
to catch the defects in the user interface between the functions/ modules. It is useful to
determine how logically and efficiently all the units/ components are running together. Here
the streaming module and encoding module options are integrated and tested. This testing
provides the assurance that the application is well integrated functional unit with smooth
transition of data.
User acceptance of an application is the key factor for the success of any application. The
application under consideration is tested for user acceptance by constantly keeping in touch
with the application users at time of developing and making changes whenever required.
50
OCTA
51
OCTA
52
CHAPTER 7
7.1 Conclusion
“Online Complain & Threats Awareness Platform” is developed for do complaints with simple
click. The main objective of this application is to provide the facility of easily do complaint
through CNIC and area according to station. In other side see news feed only one swipe on
next page. Make a reliable, inexpensive and easy solution for people who want to submit
complaint at any place. Admin can store new employee through their respective login portal.
Online Complain & Threats Awareness Platform can see all stuff of Criminal cases which are
relevant to the Police Station. Today, the platform like this has become a need of our society.
Online systems are always welcomed in this new world of I.T. It can be used in any location
for Detect the Face of old and new Prisoners by database.
54
OCTA
7.3 REFERENCES:
[1] https://msdn.microsoft.com/en-us/library/dd381412(v=vs.108).aspx
[3] https://msdn.microsoft.com/en-us/library/dd381412(v=vs.108).aspx
[5] https://deanilvincent.github.io/2017/05/16/xamarin-forms-simple-login-with-rest-
api/
[7] Carter, David L., and Louis A. Radelet. The police and the community. Upper Saddle River,
NJ: prentice hall, 2002.
[8] Collao, Rodrigo. "Developing Affordable Smart Solutions for Police Reporting." (2018).
[9] Del Sole, A., 2018. Computer Vision on Mobile Apps with Xamarin. In Microsoft Computer
Vision APIs Distilled (pp. 43-67). Apress, Berkeley, CA.
[10] Puder, A., Tillmann, N. and Moskal, M., 2014, June. Exposing native device APIs to web
apps. In Proceedings of the 1st International Conference on Mobile Software Engineering and
Systems (pp. 18-26). ACM.
[11] Ding C, Tao D. Trunk-branch ensemble convolutional neural networks for video-based
face recognition. IEEE transactions on pattern analysis and machine intelligence. 2017 May
2;40(4):1002-14.
55