Professional Documents
Culture Documents
Rice Grains Classification Using Image Processing Technics: December 2016
Rice Grains Classification Using Image Processing Technics: December 2016
Rice Grains Classification Using Image Processing Technics: December 2016
net/publication/311373270
CITATIONS READS
18 10,764
1 author:
Kasun Herath
The Open University of Sri Lanka
20 PUBLICATIONS 34 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Understanding the Hand Gesture Command to Visual Attention Model for Mobile Robot Navigation: Service Robots in Domestic Environment View project
All content following this page was uploaded by Kasun Herath on 02 January 2017.
1
Figure 01 : Basic building block for system operation
Rice sample A and B represents the four in together. Both samples are comprised of
varieties of rice grains (Red Basmati, White different color and different shapes of grains.
Basmati, Red Samba and White Samba) mix
Grain Sample A:
Figure 02 : Sample A
Grain samples were scattered on a plate which images acquired were 2113×2177 pixel size
is 14.5cm wide and 7.5cm heights. In order to and the image was taken by using the 8
eliminate the shadow, a black mat polymer megapixels with 1.5µ pixels Digital camera.
sheet was attached to the bottom of the inner Then the image was transformed to a
surface of the plate. Grains were separated computer (i5 6th Gen processor, 8GB RAM)
manually to eliminate grain contact. The for subsequent analysis [4].
2
It is necessary to eliminate the noise from the followed in MATLAB. By compositing the
image before beginning of the algorithm red, green and blue channels to create the
development. Preprocessing operations will color image and the result of above
help to remove noise from the image. As the preprocessing steps are shown in Figure 03.
preprocessing operation following steps were
Sample-A contains the 50% of red color also uses to improve the visual appearance
rice grains and 50% of white color rice of an image. After removing noise from
grains. The grain samples were cleaned the original image the histogram also can
from impurities and subjected to the be simplified and easy to analyze. Figure
standardized lighting condition. Each 06 represents the frequency of each
image taken by this imaging system intensity values but with the noise. This is
contains 40 - 150 grains. Samples also very hard to use for the segmentation
comprise with the damaged and discolored process in the machine vision system. In
grains. order to increase an accuracy of the
results, preprocessed image is used for the
Histograms represent the frequency of segmentation (Figure 05).
each intensity value occurs in an image. It
3
Figure 06 : Histogram of the Image Sample A (Befor preprocess)
S = s(x, y, n)
In a digital 24-bit RGB picture, the values of
Parameter n is represent the color channel of each channel should be,
the image, where n = {0, 1, 2, … (N −1)}
0 < s(x, y, 0), s(x, y, 1), s(x, y, 2) < 255
In this machine vision system used the RGB In order to filter the red color grains and white
color image which has three channels for the color grains, machine vision system need to
particular color red, green and blue. The identify the RGB channel’s value ranges for
grains were separated according to the grains the red grains and white grains.
4
85 < s(x, y, 0) < 160
34 < s(x, y, 1) < 144
15 < s(x, y, 2) < 126
Table 03: Image processing data for red Table 04: Image processing data for white
grains grains
5
REFERENCES