Professional Documents
Culture Documents
Flower Recognition System
Flower Recognition System
Flower Recognition System
PROJECT REPORT
ON
BY
ROLL.NO - 417
SEAT.NO - 20338
2021-2022
TO
SAVITRIBAI PHULE PUNE UNIVERSITY
PUNE- 411041
IN PARTIAL FULFILLMENT OF
MASTER OF COMPUTER APPLICATION (M. C. A.)
1
Date:-
CERTIFICATE
in partial fulfillment of MCA-II SEM-III Mini Project for the year 2021-2022. He have
Examiner 1 Examiner 2
Date:
Place:
2
DECLARATION
We certify that the work contained in this report is original and has been done by us
under the guidance of my supervisor(s).
The work has not been submitted to any other Institute for any degree or diploma.
We have followed the guidelines provided by the Institute in preparing the report.
We have conformed to the norms and guidelines given in the Ethical Code of Conduct
of the Institute.
Whenever we have used materials (data, theoretical analysis, figures, and text) from
other sources, we have given due credit to them by citing them in the text of the report
and giving their details in the references.
3
ACKNOWLEDGEMENT
Thank You,
Tushar Sudhir Gaikwad
4
Index
Chapter Page
number
CHAPTER 1 : INTRODUCTION 6
1.1 Existing System 8
1.2 Need for System 9
1.3 Operating Environment Hardware and Software 10
CHAPTER 2 : PROPOSED SYSTEM
2.1 Proposed System (Introduction of system) 11
2.2 Project Scope 12
2.3 Objective of System 13
CHAPTER 3: ANALYSIS MODEL SDLC APPLIED 14
3.1 SYSTEM IMPLEMENTATIO PLAN 18
CHAPTER 4: SYSTEM DESIGN
4.1 System Architecture Diagram 21
4.2 Mathematical Model 22
4.3 Data Flow Diagram 24
4.4 Activity Diagram 25
4.5 Use Case Diagram 26
4.6 Sequence Diagram 28
4.7 ER Diagram 29
4.8 Class Diagram 31
ALGORITHM DETAILS 34
Proposed Algorithm 36
CHAPTER 5 : USER MANUAL
5.1 Results Screen shots (Input & Output) 39
OTHER SPECIFICATION 43
References 45
5
CHAPTER : 1
INTRODUCTION
is quite difficult.
With only the image, there is no way we can obtain further details about
6
including flowers. As the machine learning technology advances,
kingdom and its uses . In this proposed software color, shape and texture
are used to extract the features to feed the models for comparison of the
images to find the exact flower. The main base of the software is a data
set containing various images of flowers, which is further split into train
sets and test sets keeps all the information related to the image of the
(CNN) to train the datasets. For comparison the image has to be uploaded.
so on. The information provided can then be used for further information
gathering activities.
7
“Flower Recognition System” helps to identify flower species from
Classifications) and uses. Such application will be useful not only for
regular users, who would like to identify plant of an unknown species but
also for other professionals in the fields of botany or related fields. This
application can also raise interest in nature among the non-expert users
corresponding labels will be used to train the model. Once trained, the
model takes as input, the image of a flower and predicts the Name of
In our country lot of flower and plant researchers are there,and they wants
a Correct and Simple results.It is need to be developed forthe
Researchers and inventions.Basically before developing these system lot
of applications is there running but our application Is Provided simplicity
and correctness about result.for Correctness of result we need to some
mathematical operations in the system.
9
1.3 Operating Environment Hardware and Software
A] Hardware Specifications:
Processor : CORE i3
RAM : 4GB
Hard Disk : 1TB
B] Software Specification:
Operating System : Window 10 (64 bit)
Font End Tool : HTML, CSS,Bootstrap
Back End Tool : Python,Datasets
C] Tools Use:
IDE : Pycharm,Anaconda
10
CHAPTER : 2
Proposed System
11
2.2 PROJECT SCOPE
Similar projects have been recently developed for identifying flowers and
plants an
as well as plants through leaves. The key challenges faced by the
developers are finding proper feature extraction factors related to the
plants and flowers since there are many variations in shape, color and
texture of flowers. During the development of these projects, it was
observed that most of the systems focused on computational logic
involved in image representation.
Thus the main challenge identified was the semantic gap which
occursbecause of the difference in the representation of the digital image a
nd the human perception
Objectives of this project is to:
1. To identify certain flower from its image by training the application
with datasets.
2. To provide additional information and usage about the identified
flower.
3. To greatly speed up the process of flower species identification,
collection, and monitoring.
12
2.3 Objective Of System
13
CHAPTER : 3
Analysis Model
In this Waterfall model, typically, the outcome of one phase acts as the
input for the next phase sequentially.
The following illustration is a representation of the different phases of the
Waterfall Model.
14
Figure 3.6: Waterfall Model
15
phase. Each unit is developed and tested for its functionality, which is
referred to as Unit Testing.
Integration and Testing − All the units developed in the implementation
phase are integrated into a system after testing of each unit. Post
integration the entire system is tested for any faults and failures.
Deployment of system − Once the functional and non-functional testing
is done; the product is deployed in the customer environment or released
into the market.
Maintenance − There are some issues which come up in the client
environment. To fix those issues, patches are released. Also to enhance
the product some better versions are released. Maintenance is done to
deliver these changes in the customer environment.
All these phases are cascaded to each other in which progress is seen as
flowing steadily downwards (like a waterfall) through the phases. The
next phase is started only after the defined set of goals are achieved for
previous phase and it is signed off, so the name "Waterfall Model". In
this model, phases do not overlap.
Most of the preprocessing is done automatically which is one of the major
advantages of CNN. In addition to that input images were resized.
Augmentation is also applied which increases the size of the dataset by
applying operations such as rotation, shear etc.
16
To increase the user friendliness of the system, the model was deployed
into a web application
17
SYSTEM IMPLEMENTATION PLAN
19
DIAGRAMS
20
CHAPTER : 4
SYSTEM DESIGN
21
Most of the preprocessing is done automatically which is one of the major
advantages of CNN. In addition to that input images were resized.
Augmentation is also applied which increases the size of the dataset by
applying operations such as rotation, shear etc.
During the training process, the model discovers features and patterns and
learns them. This knowledge is then used to later find the name of a
flower when a new flower image is given as input. Categorical cross
entropy is used as loss function. Initially the loss values would be very
high but as the process advances the loss function is reduced by adjusting
the weight values. Once the classification is done, the CSV file is
imported and the major uses of that plant would be displayed.
To increase the user friendliness of the system, the model was deployed
into a web application.
Equation 4.2.1
f = Input Image
h= Kernelss
22
m, j= index of rows
n, k = index of column
Equation 4.2.2
23
4.3 DATA FLOW DIAGRAM
This diagram depicts how the process is done from user end as well as
from system side. Initially user will input the image of flower, then
internally pre-processing of the image will be done. The model is trained
using CNN algorithm thus will further do classification of image based on
24
localized features. User at end of the process will see the end result
generated by the model displaying expected results.
25
4.5 USE CASE DIAGRAM
The above diagram represents the actors, User and Flower Recognition
System. The Use cases which drive the process to completion are Start
Application, Select Image, Upload Image, Receive Image, Process the
Image, Upload Flower name and its features and View flower name and
its features.
26
Use Case Description :
Section Purpose
Description The Use Case describes steps of the role of User and System.
The User will firstly Start Application the select Image from
Internet and Local System and then Upload that Image.System
Sends the Image for training to the Model.after Successfully
training Image will sends to testing
27
4.6 SEQUENCE DIAGRAM
28
4.7 ENTITY RELATIONSHIP DIAGRAM
29
Entities & Attributes
1. User
2. Image
I) Resolution (must be within the range of 2-4 Mpixels)
II)Clutterdness (must be less cluttered)
III) Background (must have homogenous background)
IV) Type (gif, jpeg etc)
3. Flower Recognition System
4. Flower Recognition Application
30
4.8 CLASS DIAGRAM
31
1. User
This class contains the functions which are directly related to the
UI.Pressing_CaptureImage_Button () is called when an external user
presses the Capture Image button ().This function then invokes the
functions in the CaptureImage class which processes the request.
Pressing_RecognizeImage_Button() is called when an external user
presses the Recognize Text button.This function then invokes the
functions in the Recognize Image class which processes the request.
Pressing_UsingApplication_Button is called when an external user
presses the Using Application button. This function then invokes the
functions in the UseApplication class which processes the request.
2. CaptureImage
This class contains OpenningCamera( ),takingPicture( ) and
adjustingCamera( ).This class is solely responsible for the capturing
of image.
3. ProcessImage
The main role of this class is to pre-process the image.Pre-
processing is done by binarize( ),blurrinessReduction()
,noiseRemoval( ),brightnessAdjustment( ).This pre-processing is
done so that the image meets the criteria for further processing.It
takes the image from the CaptureImage class.
4. LocalizeImage
This class localizes the flower regions from the image using its
functions .These functions take the output of the previous function
32
as input like lines are extracted from the textual regions. This class
uses the pre-processed image from the ProcessImage class for
processing.
5. RecognizeImage
This class matches the characters which are taken from the
LocalizeImage class with the trained dataset from the TrainDataSet
class and then these characters are labelled accordingly. This is done
in Classification ( ) function.And then the final recognized text is
sent to the user by the function RecognizeImage( ).This recognized
image is then used by the Use Application class.
6. UseApplication
This class contains all the functionality of processing related to the
application of text recognition system.In this class apiProcessing( )
function handles all the processing on the recognized text retrieved
from the RecognizeText classs .Then the translated text is then
passed to the user in the function retrievingTranslatedText( ).
7. TrainDataSet
This class contains the training dataset and processing on it so that
the extracted characters can be labelled according to the trained
dataset.
33
ALGORITHM DETAILS
IMAGE PROCESSING
This process is accessed by administrator. This module perform
certain activities such as scanning images, recognizing features in
images to transfer them into identifiable format. The module
supports the following services:-
Scanning images.
Storing the images.
Processing those images.
Recognizing the features in images.
SYSTEM TRAINING
This module can be accessed by both the administrator and the end-
user. Before converting the images in to editable and searchable
images, the first and the mandatory step is providing training to the
system. Here training in the sense the image should be identified by
the user. Then the user enters all the features that are required for
recognition from the image.
This image file should be provided as an input during the training
process. The user then clicks the train button provided in the
recognition module. Then the training gets completed. Thus the
system gets familiar with the new image. This module supports:-
Training the system with images of flowers.
34
Training the system with the new flower images that are not
present in the system and that cannot be identified by the
system.
IMAGE RECOGNITION
This process can be accessed by both the administrator and the end-
user. Once the images are trained, system can recognize the features
present in the image. That means the system can recognize the
features of any flower image user chooses which makes Flower
Recognition more flexible. This is the module where the main
functionality of Flower Recognition System is tested.
In scanned image recognition, the system is first trained with the
features in the image in the training module itself. Now in the
recognition module, the system takes the scanned images image as
an input file, first crops the image and then extracts/recognizes the
features from the image and makes these images editable and
searchable. Thus the scanned image recognition recognizes the
characters from the scanned image and makes the image editable
and searchable. Hence the image recognition module on a whole
supports the following services:-
Converts the image into specific format
Recognizes the features
Heterogeneous Flower Recognition
35
IMAGE SEARCHING
This process can be accessed by both the administrator and the end-
user during the search of the user required image to implement the
Flower recognition process on it. The user requests the system to
search for a particular image. Then the system finds the images based
on CNN methodology and returns the result of the search to the user.
PROPOSED ALGORITHM
36
Table Name : ProcessImage
Description : The main role of this class is to pre-process the image.Pre-
processing is done by
binarize( ),blurrinessReduction(),noiseRemoval( ),brightnessAdjustment(
).This pre-processing is done so that the image meets the criteria for
further processing.It takes the image from the CaptureImage class.
38
CHAPTER : 5
USER MANUAL
In this above image Fig.5.2.2. shows selection of file for uploading image
40
5.3 Screen Shots
Above image Fig. 5.2.3 shows uploaded image and message is displayed “image uploaded
successfully” .
41
5.4 Screen Shots
Fig.5.1.4.Final Output
42
OTHER SPECIFICATIONS
CONCLUSION
Flower being the most attractive part is the best way to identify a plant.
Thus identifying the flower can help in knowing more about that plant.
The proposed system takes as input, an image of a flower and displays the
name of flower, family name, colors as well as countries in which flower
can be found. Since the model is based on convolutional neural network
which has proven to be one of the most efficient image classification
methods, the proposed system is highly reliable.
The reason for doing any project is to tackle problems or to gain
knowledge. The main aim of this project is to learn machine learning
models and apply it. Upon completing this project, we were able to create
an application using machine learning models and functions of python for
image processing to extract features. This project has been platform for us
to learn about a machine learning and its uses and image processing
through team work.
43
Future enhancement
APPLICATIONS
44
c) Flowers are widely used by man for regular purposes like decoration,
worship as a flower bouquet for greetings, etc. Their attractiveness,
fragrance, and color give them a prominent place in human daily life.
REFERENCES
[1] Hoo -Chang Shin, Holger R. Roth, Mingchen Gao, Le Lu, Ziyue
Xu,Isabella Nogues, Jianhua Yao, Daniel Mollura ,Ronald M. Summers,”
Deep Convolution Neural Networks for Computer -Aided Detection:
CNN Architectures, Dataset Characteristics and Transfer Learning”IEEE
2016. [2] Büşra Rümeysa Mete, Tolga Ensari , ” Flower Classification
with Deep CNN and Machine Learning Algorithms ”IEEE 2019
[3] Sathiesh Kumar, Gogul , ” Flower species recognition system using
convolution neural networks and transfer learning ”IEEE 2017
[4] Pavan Kumar Mishral, Sanjay Kumar Maurya, Ravindra KumarSingh,
Arun Kumar Misral “A semi -automatic plant identification based on
digital leaf and flower Images” IEEE -2012.
[5]Tanakorn Tiay, Pipimphorn Benyaphaichit, and Panomkhawn
Riyamongkol”Flower Recognition System Based on Image Processing”
IEEE -2014.
45
[6] Fadzilah Siraj, Muhammad Ashraq Salahuddin and Shahrul Azmi
Mohd Yusof, ”Digital Image Classification for Malaysian
BloomingFlower” IEEE – 2010
[7] Prof.Suvarna Nandyal, Miss.Supriya Bagewadi, “Automated
Identification of Plant Species from Images of Leaves and Flowers used
in the Diagnosis of Arthritis” IJREAT-Volume 1, Issue 5, OctNov, 2013.
[8] Yuita Arum Sari and Nanik Suciati,“Flower classification using
combined a*b*color and Fractal-based Texture feature”, International
Journal of Hybrid Information Technology Vol.7, No.2 (2014).
[9] Mari Partio, Bogdan Cramariuc, Moncef Gabbouj, and Ari Visa,”Rock
Texture retrieval using gray level cooccurrence Matrix” ,(ITS) Surabaya,
Indonesia.
[10] Dr.S.M.Mukane and Ms.J.A.Kendule, “Flower Classification Using
Neural Network Based Image Processing” IOSR-JECE Volume 7, Issue
3, Sep. - Oct. 2013
46