Indian Currency Detection Using KNN Classifier
Indian Currency Detection Using KNN Classifier
Anusha K et al., International Journal of Emerging Trends in Engineering Research, 9(8), August 2021, 1107 – 1110
Volume 9. No. 8, August 2021
International Journal of Emerging Trends in Engineering Research
Available Online at http://www.warse.org/IJETER/static/pdf/file/ijeter13982021.pdf
https://doi.org/10.30534/ijeter/2021/13982021
ABSTRACT
2.2 IMAGE PREPROCESSING
Fake Currency Detection is the biggest problem faced by
many countries including India. The advancement of colour Image Acquisition: the images are obtained through webcam
printing technology has increased the rate of fake currency or digital camera, they were further processed using
note printing and duplicating the notes on a very large scale. MATLAB to extract the information required.
So, it has become a necessity to develop a tool that detects the
fake currency note in a less time and in a more efficient Image pre-processing : Image pre-processing is to suppress
manner using Image processing. undesired distortions or enhance some image features that are
important for further processing or analysis.
Key words : Log Gabor, Contrast enhancement, KNN
Classifier, Image acquisition, Image Processing. Image Adjusting : During image adjusting, after getting the
image from a web camera, the size of the image should be
1. INTRODUCTION reduced as per requirement and it is done with the help of
image interpolation.
In recent years a lot of fake currency note is being printed
which have caused great loss and damage towards society. Image Smoothening: During Image Smoothening, it is
With the production and circulation of fake notes, it becomes necessary to remove the noise that may affect segmentation
difficult for common people to differentiate whether the and pattern matching. Mask values can be used to determine
currency is real or fake as they differentiate on the basis of the degree of smoothing.
physical appearance that may fail many times. In this paper,
we propose a system for Verification of currency note using RGB to Gray scale conversion: The image acquired is in
image processing techniques and KNN Classifier. The RGB colour. This image is heavy and has more noise. By
proposed system has got advantages like simplicity and high converting it into gray scale, reduces the size of the image and
also the intensity information which is easy to process instead
performance speed. The result will predict whether the
of processing three components R (Red), G (Green),
currency note is fake or real. The system has more efficient
B(Blue).Gray scale Images Representation is the way of
performance of and achieves good accuracy rate. [2][4]
representing an image only by using different shades of gray
levels. Gray level image requires less information to be
2. IMAGE PROCESSING WITH MATLAB provided for each pixel.
Until now, many techniques have been proposed to identify Edge detection: It is a set of mathematical methods which
the currency note. If a note is dirty, its color characteristics are aim at identifying points in a digital image at which the image
changed widely. So it is important that how we can extract the brightness changes sharply or, more formally, has
features of the image of the currency note and apply proper discontinuities. The points at which image brightness changes
algorithm to improve accuracy to recognize the note. sharply are typically organized into a set of curved line
Here, the image is captured by a simple digital camera such segments termed edges. It is a fundamental tool in image
that all the features are highlighted. Image is then stored for processing, machine vision and computer vision, particularly
further processing. in the areas of feature detection and feature extraction.
1107
Anusha K et al., International Journal of Emerging Trends in Engineering Research, 9(8), August 2021, 1107 – 1110
3. IMPLEMENTATION OF THE SYSTEM Figure2 shows the classification of two groups using KNN
classifier. K is a constant factor which is the value obtained by
taking square root of number of samples taken for training.
KNN Algorithm uses feature similarity to predict the values
of new data points which further means the new data point
will be assigned a value based on how closely it matches the
points in the training set. Working of the algorithm is
explained by following steps:
Step1- for implementation of algorithm, load the training as
well as data set.
Step 2-Choose the K value, which is any integer value.
Step 3-For each point in the test data do the following:
3.1- calculate distance between test data and each row of
training data using Euclidean distance method.
3.2- Now, based on the distance value, sort them in
ascending order.
3.3- Next, it will choose the top K rows from the sorted
array.
3.4- now, it will assign a class to the test point based on
most frequent class of these rows.
Step 4- End.
1108
Anusha K et al., International Journal of Emerging Trends in Engineering Research, 9(8), August 2021, 1107 – 1110
1109
Anusha K et al., International Journal of Emerging Trends in Engineering Research, 9(8), August 2021, 1107 – 1110
6. REFERENCES
1. Y. Neeraja, B. Divija and M. Nithish Kumar Fake
Currency Detection Using K-nn Technique,
IJREITSS, Vol. 09, No. 1, pp. 201-205, 2019.
2. P. D. Deshpande and A. Shrivastava, Indian Currency
Recognition and Authentication using Image
Processing , IJARSE, Vol. 07, No. 7, pp. 1107-1119,
2018.
3. Saiyed Mohammed Arshad, Devdatt Sawant Sudagar &
Nausheeda B S3, Fake Indian Currency Detection
Using Image Processing, IJLTET, Special Issue
SACAIM 2017, pp. 598-602 e-ISSN:2278-621X.
4. Devid Kumar, Surendra Chauhan, Indian Fake
Currency Detection Using Computer Vision,
IRJET,Volume: 07 Issue: 05 | May 2020.
1110