An Image Processor Bill Acceptor For Iraqi Currency: 10.22401/ANJS.22.2.10
An Image Processor Bill Acceptor For Iraqi Currency: 10.22401/ANJS.22.2.10
78-86
78
Ammar Awni Abbas
training. In [4] a complete survey for all fields universal recognition program for all
of currency detection and authentication plus currencies is the main objective for that paper,
recognition of the serial number of the the proposed algorithm was tested on five
banknote is presented, Techniques used in currencies with huge success. The process of
each of the four areas recognize banknote recognition using Matlab with the most
information (denomination, serial number, common security characteristics is discussed
authenticity, and physical condition) based on in [13]. An embedded system for detecting the
image or sensor data, and are actually applied fake currency is proposed by [14], which
to banknote processing machines. A scale- relied on some special currency characteristics,
invariant feature transform (SIFT) algorithm a neural network is used for recognition
combined with mobile camera is used to and a Light Emitting Diode (LED) for
recognize the currency [5], the correct authentication. The success rate was 100%. In
recognition average for the color SIFT is 0.79 [15] the shape and color information is used in
While, for Gray SIFT the correct recognition the algorithm, two currencies are used in the
average is 0.53. Similarity mapping used to data base of the program. The results showed
recognize banknotes images captured by light that the scanned images have better results
sensor in [6], the proposed method has an error than images taken by a digital camera. In [16]
rate of 0.002 with rejection rate of 0.004 which an ensemble neural network (ENN) is used, by
is much better than other methods. In paper using negative correlation learning (NCL) the
[7], the authors tried to use simple algorithms system gains experience on different parts or
to increase the speed of recognition for the portion of input patterns in an ensemble. After
Chinese yuan (RBM) with great efficiency, the applying certain filters to classify the acquired
recognition ratio of the (100, 50 old style, 50 image a neural networks method for
new style, 20 and 10 of the RBM bill) is (95%, identification is used by [17]. [18] Used the
99%, 99%, 92% and 98%) respectively. In [8] mobile phone camera to make the recognition
an image processing technique is used for the in real time to help people with impaired
recognition process in Matlab program, the visual conditions.
authentication of the 100 teka (currency of
Bangladesh) is made with 100% success rate. 3. Instrument and software setting
[9] Proposed a radial basis for classification The proposed system is shown in Fig.(1),
that uses basic features with correlation to it's composed of the following Hardware parts:
detect the currency, the overall Average 1- Motion sensor, to detect the currency is
Recognition Rate for the data of 110 images is being presented by the user.
computed as 91.51%. The proposed algorithm 2- Servo motor to roll the paper in, when it
is fully automatic and requires no human gets the signal from the motion sensor.
intervention. The characters of the note is 3- Plastic clear Chamber, which consists of
heuristically analyzed to get the exact features two layers of plastic plates joined together
of them before the recognition in [10], by glue forming a clear chamber to host the
Heuristic analysis of Serial Number for 9 rolled in note, the servo motor (1) roll in the
character, taking in account four individual banknote and let it lay on this chamber for
properties of a character(hue, saturation, further processing.
contrast and brightness) reveals that particular 4- Web camera (1) for the recognition and
trend in terms of values of hue and saturation, authentication, this camera faces the plastic
contrast and brightness. It can be concluded chamber from horizontal view.
that while contrast and brightness are 5- Arduino Uno microcontroller to connect to
dependent on the extrinsic factors of sensor, the relay.
hue and saturation are more likely dependent 6- Two-Channel relay: connected to the
on the consistent pattern design of note. In Arduino Uno which is used to
[11] a review of the recognition processes is activate/deactivate the White and
made. After applying certain filters to classify Ultraviolet lights.
the acquired image a neural networks method 7- White bulb light: used for recognition
for identification is used by [12], making a process.
79
Al-Nahrain Journal of Science Vol.22 (2), June, 2019, pp.78-86
80
Ammar Awni Abbas
2- The system is connected via Arduino Uno detect the amount of the banknote. The process
microcontroller to a two channel-relay of currency recognition consists of five steps
that switch ON an ordinary white light, that is repeated between the target image and
followed by, a taking a photo in shape of each of the templates:
frame captured from the live feed of web 1- Read both the Template images and the
camera (1) attached to the system, the target image.
photo is used to recognize the banknote 2- Detect feature point of both images using
amount by applying the pattern the detectSURFFeatures function, this
recognition software between the target function returns a Speeded-Up Robust
image and a set of templates that is a Features (SURF) Points object, points,
scanned image of the various containing information about SURF
denomination of notes. features detected in the 2-D grayscale input
3- The program send a signal to the Arduino image I. The detectSURFFeatures function
Uno microcontroller, which in turn sends implements the Speeded-Up Robust
a signal to the two channel relay to turn Features (SURF) algorithm to find blob
ON the Ultraviolet light. features.
4- Another photo is taken from the web 3- Extract feature descriptors: using
camera (1) is taken when the Ultraviolet extractFeatures function which Extract
light is ON, and the same recognition interest point descriptor. The function
program is activated with another set of derives the descriptors from pixels
templates that is made with Ultraviolet surrounding an interest point. The pixels
light. This photo is used to authenticate represent and match features specified by a
the currency. single-point location. Each single-point
5- If the currency is authentic, a servo motor specifies the center location of a
(2) is turned ON to push the currency to neighborhood. The method used for
the currency accumulation sack. With the descriptor extraction depends on the class
value registered in the system for further of the input points, in this case we used
operations. Speeded-Up Robust Features (SURF)
6- Otherwise, the servo motor(2) also turned obtained from the second stage.
ON to push the currency to the 4- Find the putative point matches: using the
accumulation sack with a flag raised to matchFeatures function which match the
program to take a photo of the person who features using their descriptors. This
present the fake banknote using web function returns indices of the matching
camera (2). This will prevent fake features in the two input feature sets
currency from circulating in the monetary obtained from Templates and target
system. images. The input feature is a binary
The recognition process is made by Features image.
exploiting the capabilities of the computer 5- The program detects the matched features
vision toolbox in MATLAB. By discovering between the target and each of the
point correspondences between the reference template, the image with the largest match
templates and the objective picture, the points is considered to be a hit.
matching is made when the template image The same procedure is repeated for the
that has the largest point correspondences with authentication process with the exception that
the target image. the ultraviolet light is turned ON when the
The proposed program is based upon the webcam takes the photo and same applied to
Speeded-Up Robust Features (SURF) which the template images.
uses scale- and rotation-invariant detector and
descriptor. The main idea is to use integral
images for image convolutions.
There are eight denominations in the Iraqi
currency making a total of sixteen template
pictures that the program must choose from to
82
Ammar Awni Abbas
Table (1)
The Recognition and Authentication results.
50 250 500 1000 5000 10000 25000 50000
Banknote
Dinars Dinars Dinars Dinars Dinars Dinars Dinars Dinars
No. of authentic
290 290 290 290 290 290 290 290
notes tested
No. of forged notes
10 10 10 10 10 10 10 10
tested
Total 300 300 300 300 300 300 300 300
Recognition 300 300 300 300 300 300 300 300
Authentication 300 300 300 300 300 300 300 300
Error 0 0 0 0 0 0 0 0
Accuracy 100% 100% 100% 100% 100% 100% 100% 100%
In Fig (3) the target image on the left that The target image on the left and the best
is processed by the suggested device and the match coupled with the target on the right for
match is found, for descriptive reasons the the 500 dinar denomination.
target and the best match are presented in the
same image on the right with the match points
on both images illustrated on both images.
83
Al-Nahrain Journal of Science Vol.22 (2), June, 2019, pp.78-86
84
Ammar Awni Abbas
The region of interest ROI in case of Raspberry Pi Camera Module v2). Both
authentication is the phosphoric rectangle that microcontrollers are supported by Matlab and
appears after shedding the ultraviolet light, can benefit from the computer vision
cropping that part, speeds up the process of capabilities of Matlab. The algorithm is very
authentication and eliminates the use of robust, it can distinguish images in spite of a
unnecessary preprocessing operation. The scale change, rotation, background color or
program couples the currency denomination impediment. The computer vision functions
that is used as target for the recognition minimize the amount of coding needed while
processing with a corresponding phosphoric retaining high speed, so there is a possibility of
rectangle for that certain currency to be used operation in real time. To further enhance the
for the authentication process. work by taking the following measures:
1.Adding more security features to be
checked by the algorithm such as security
thread and water marks.
2.The ability to recognize and authenticate
currencies other than the Iraqi currency, by
expanding the algorithm to accept other
banknotes templates.
7. References
[1] Jara M., Obregón C., Del Castillo C.
"Exploratory analysis for the identification
of false banknotes using portable X-ray
Fluorescence spectrometer", Applied
Radiation and Isotopes, 135(1), 212–218,
Fig.(10): The Note is authentic, a match 2018.
found between target and template. [2] Rajebhosale S., Gujarathi D., Nikam S.,
Gogte P., Bahiram N., "Currency
Recognition System Using Image
Processing", International Research
Journal of Engineering and Technology
(IRJET), 4(3), 2599-2601, 2018.
[3] Ren Y., "Banknotes Recognition in real
time using ANN", M.Sc. thesis presented
to the university of Auckland, New
Zeeland, 2017.
[4] Lee J., Hong H., Kim K., Park K., "A
Survey on Banknote Recognition Methods
by Various Sensors", Sensors Journal,
17(2), 235-359, 2017.
Fig.(11): The Note is forged, No match found [5] Abu Doush L., AL-Btoush S., "Currency
between target and template. recognition using a smartphone:
Comparison between color SIFT and gray
The algorithm will find no match for the scale SIFT algorithms", Journal of King
phosphoric rectangle in the forged note as Saud University- Computer and
shown in Fig.(11). Information Sciences, 29(4), 484-492,
2017.
6. Discussions
[6] Pham T., Park H., Kwon S., Park K.,
The suggested configuration can be turned
Jeong D., Yoon S., "Efficient Banknote
into a standalone device. The algorithm can be
Recognition Based on Selection of
uploaded to the microcontroller such as
Discriminative Regions with One-
Arduino or Raspberry Pi where the webcams
can be replaced by (OV 7670for Arduino or
85
Al-Nahrain Journal of Science Vol.22 (2), June, 2019, pp.78-86
86