Professional Documents
Culture Documents
CoE 121 Project Slides
CoE 121 Project Slides
Identification
Introduction
SIGNIFICANCE OF PLANTS
Statement of the
Problem
In agriculture, edible leaves of vegetables are important sources of energy
of animals and humans alike. To correctly identify weeds from actual
leaves of plants is an integral part of a farmer’s job to ensure the plants
grow correctly and create quality produce. Furthermore, with many
varieties of leafy vegetables farmers have to deal with, it can get very
confusing sometimes. With that, in mind, with the ever advancing of
technology, there could become a tool which helps farmers in that aspect
of their tough and grueling jobs.
Objectives
Specific Objectives:
General Objectives:
Database Creation
Image Testing
Image
Collection
9 classes of vegetable leaves were collected. Each class has
20 images to be collected, 10 for training and 10 for testing
- Ampalaya
- Basil
- Cilantro
- Gabi
- Kangkong
- Laurel
- Lemongrass
- Malunggay
- Pechay
Database
Creation
Using the train images and the code, a database is created by
generating a Gabor Filter and filtering the image to create the
vector of the featues generated form the image. This feature
vector is then added to the database. This is done to 10
images of 9 different species of plants stated earlier.
Image Testing
The 10 images for test is used together with the Image Test
code. The image undergoes the same process as Database
creation where the feature vector is created using Gabor
Filters. Furthermore, the feature vector is not added to the
database and instead undergo KNN algorithm. KNN algorithm
calculates the distance by subtracting the feature vector from
every item in the database then getting the sum to find the total
distance. The database entry with the minimum value/distance
is then identified to find the class. This class can be said to also
be the same class of the inputted test image.
Incorrect (Basil) 0%
10%
Results
AMPALAYA
90% - Correct
10% - Incorrect (Basil)
Correct
90%
0%
Results
BASIL
100% - Correct
Correct
100%
Incorrect (Lemongrass) 0%
10%
CILANTRO
30%
Correct
60% - Correct
60%
GABI Correct
60%
60% - Correct
40% - Incorrect (Laurel)
Incorrect (Gabi) 0%
10%
KANGKONG Correct
50%
50% - Correct
30% - Incorrect (Ampalaya)
10% - Incorrect (Gabi)
Incorrect (Basil)
30%
Results Correct
LAUREL
50%
Incorrect (Basil)
50% - Correct
40%
Results
LEMONGRASS
100% - Correct
Correct
100%
Incorrect (Lemongrass) 0%
10%
Results
Incorrect (Pechay)
10%
MALUNGGAY
Incorrect (Basil)
10%
70% - Correct
10% - Incorrect (Basil)
10% - Incorrect (Pechay)
Correct
70%
Results
Incorrect (Lemongrass)
9.1%
PECHAY Correct
54.5%
50% - Correct
30% - Incorrect (Basil)
Incorrect (Basil)
27.3%