Design Document For An Object Detection Application Using OpenCV
Design Document For An Object Detection Application Using OpenCV
OBJECT DETECTION
USING OPENCV
Submitted to
Ms. Fakhra Aftab
1 Introduction 3
1.1 Document Purpose . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Product Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Definitions, Acronyms and Abbreviations . . . . . . . . . . . . 4
1.4 Remainder of the Documnent . . . . . . . . . . . . . . . . . . 4
2 Functional Modelling 6
2.1 Data Flow Diagram Level 0 . . . . . . . . . . . . . . . . . . . 6
2.2 Data Flow Diagram Level 1 . . . . . . . . . . . . . . . . . . . 7
2.3 Data Flow Diagram Level 2 . . . . . . . . . . . . . . . . . . . 8
4 Behavioral Modelling 11
4.1 State Transition Diagram . . . . . . . . . . . . . . . . . . . . 11
4.2 Sequence Diagram . . . . . . . . . . . . . . . . . . . . . . . . 12
4.3 Collaboration Diagram . . . . . . . . . . . . . . . . . . . . . . 13
5 Deployment View 14
5.1 Components in Deployment Diagram . . . . . . . . . . . . . . 14
2
Chapter 1
Introduction
3
it can be used for counting the number of objects in an image. Using this
system various kind of security systems can also be developed. We can also
use this system for object tracking. By recognizing the objects in the images,
combining each object in the image and passing detected object labels in the
URL we can use the object detection system for image search.
Term Definition
Admin The person who is in charge of the system and has the
authority to add images to database.
Bounding Box A rectangular border that encloses an object.
Class It represents the set of properties or methods that are
common to all objects of one type.
Database Collection of all the information monitored by this sys-
tem.
Dataset Data on which the object detection is done .
Directory A location for storing files on your computer.
Environment Vicinity in which the system is used.
Frame A set of data with information about a particular object.
Interface An interface an abstract type that is used to specify a
behavior that classes must implement.
Object Anything that has to be detected by the system.
Samples Images which are added into the dataset for the match-
ing process.
User Any person who is giving an image input for object de-
tection.
UI User Interface.
User Interface the means by which the user and a system interact.
• Chapter 2 showcases the data flow between the various users, processes
and database of the software.
4
• Chapter 3 contains the Object-oriented design of the system, which
is the discipline of defining the objects and their interactions to solve
a problem that was identified and documented during object-oriented
analysis.
All chapters of the document describes the design of the same software prod-
uct in its entirety.
5
Chapter 2
Functional Modelling
This Diagram shows the general relationship between the External Enti-
ties, Object Detection System and Data Store.
6
2.2 Data Flow Diagram Level 1
This diagram shows the data flow between internal processes, external
entities and image data set.
7
2.3 Data Flow Diagram Level 2
This Diagram shows the internal processes of the Image Processing pro-
cess.
8
Chapter 3
The class diagram provides the static view of the object detection system.
9
3.2 Data Dictionary
Note that a number of samples can be added by the system admin that
will have the same attributes.
10
Chapter 4
Behavioral Modelling
11
This Diagram shows the discrete behavior of the designed system through
finite state transitions.
This diagram describes the sequence of messages that are exchanged, along
with their corresponding occurrence specifications on the lifelines.
12
4.3 Collaboration Diagram
This Diagram shows that how the objects interact to perform the required
behavior, along with the sequence of messages.
13
Chapter 5
Deployment View
This Diagram shows models the physical deployment of the software com-
ponents.
14