Professional Documents
Culture Documents
FYP Project Paper
FYP Project Paper
Joydeep Sengupta
Department of Electronics and Communication Engineering
Visvesvaraya National Institute of Technology
Nagpur, India
joydeep.sengupta44@gmail.com
Abstract—With the rapidly increasing technology and de- and deep learning is widely used nowadays. It is very much
velopment in machine learning, deep learning and artificial implemented in every place where there is a requirement of
intelligence, improving the billing system is an effective means semantic segmentation. Object detection using deep learning
of reducing wastage of time. Nowadays, even though barcode
scanners have become as fast as ever but for fruits and vegetables, makes many existing problems to be solved very productively
it still needs to be entered manually into the computer which is and easily. As of now in India, the problem of late billings
very time taking and hectic process. Vegetable and fruit markets in supermarkets like Walmart, Spencer’s and Reliance are
have become an integral part of our life hence in such places the very much prevalent, even though more number of checkout
environment must be made hassle free and more importantly, stations are being added, Billing for fruits and vegetables is
the billing should be less laborious and efficient without wasting
time. In order to overcome the existing problems associated with very tough with these bar-codes and RF-ID tags. We have used
the barcode and RFID tags, we proposed an automatic billing basic convolutional network (CNN) for single fruit detection
system that detects the fruits and vegetables and then displays and achieved an accuracy of 98 percent, CNN is an algorithm
the final Bill. The main objective of this project is to detect the based on classification, where we have to use convolutional
fruits, display the fruits detected and then to bill these items. To layers in such a way that select the interested region from the
achieve this, we have used two different algorithms, 1) Fine tuned
Convolutional Neural Network that we built from base model. 2) image and classify them. Even though this method is slow, we
To increase accuracy for real time object detection and for the were able to achieve high accuracy by fine tuning the model
bounding boxes to be displayed, we used state of the art YOLO but this model doesn’t give the bounding boxes and cannot be
based on pytorch as YOLO predicts the bounding boxes and used for multiple fruits in a same image hence we used YOLO
detects the object faster than other detection algorithms and is algorithm which is based on regression where we predict the
more reliable.
Index Terms—YOLO, bounding boxes, Convolutional Neural
classes and give bounding boxes and detect multiple objects.
Network(CNN), Automatic Billing, Object detection. The main problems that we addressed through this project are
1) Reducing the use of bar-codes as it is very expensive
because it requires bar-coding of each and every product and
I. I NTRODUCTION
is very time taking at the time of billing.
In recent days, People have become time conscious and are 2) The generalization of prices as the price of fruits and
very hesitant to waste time. In these fast moving times, with vegetables is not fixed everywhere and depends on bargaining
increasing technology day by day. Time has become the most skills, this would make common prices if linked with the same
important resource for the people all over the world hence data set everywhere.
there is a need to fasten the billing process mainly in grocery 3) Decreasing the man power in turn reducing the management
shops, vegetable and fruit markets where there is lot of rush. costs for the supermarkets
We also might have had bad experiences in grocery shops, fruit
markets where we had to weight in long queues even for one
or two products also. Object detection using Machine learning
II. L ITERATURE S URVEY vertically and through some angle which is found through
YOLO(You Only Look Once) is an emerging and very trial and error. All of this data is imported in batches of
efficient model for object detection. Hence, a lot of research 32/64 for ease of use.
is being done on it and the idea of an automated smart billing 2) YOLO:
system for supermarkets, vegetable stores etc.
• We have collected images from Open images dataset by
Real Time Object Detection with Yolo by Geetha Priya S, N
google in Yolo v4 format,A custom dataset that consists
DuraiMurugan, SP chokkalingam[1]. In this paper, they have
of 19 classes was constructed by us from Open Images
proposed a YOLO algorithm for the detection of objects using
dataset V5 by google in the format of yoloV4, but
only one neural network. This paper also mentions the ad-
this dataset was poor as it downloaded many irrelevant
vantages that Yolo has over other Object detection algorithms
images. This dataset consists 19 classes of fruits and
and also concludes that YOLO is a much more efficient and
vegetables , each class having around 200 images hence
fastest algorithm to use in real time. The paper written by
making a total of 3650 images in the train dataset and
Marcus Klasson[2] focussed on the implementation of object
the test dataset consists of 200 mixed fruit images in
recognition models executed into assistive technologies, this
various conditions. We used darknet framework as the
paper explains the working of CNN on multiple datasets.
first iteration of YOLOV4 was built on darknet.
Food Image Recognition for Price Calculation using Con-
• Here is a flow chart that depicts the dataset,training and
volutional Neural Network by Md Jan Nordin, Norshakirah
detection process of the yolo algorithm
Aziz, Ooi Wei Xin[3]. This paper helped us by providing
a good way for billing the obtained food materials after
object detection. Object Detection Based on YOLO Network
by Chengji Liu,Yufan Tao, Jiawei Liang, Kai Li ,Yihang
Chen[4]. This paper proposed a yolo based model to solve
the problem of image degradation due to noise, blurring etc in
case of traffic signs. Kavan Patel[7] proposed a self checkout
portal in supermarkets using the YOLO algorithm but he
failed to complete the implementation of this model. Another
paper written by Huimin Yuan and Ming Yan[9] proposed an
intelligent billing system using cascade R-CNN. After all this
literature survey, we found out that many authors have tried
to build a smart billing system using deep learning but they
were not able to get a good result. So, in this paper, we are
proposing a smart billing system for supermarkets based on
the highly advanced YOLO model.
As you can see that the predictions with the test images can
out perfectly as expected but as it is CNN algorithm, we were
able to get the bounding boxes and get good accuracy on real
life test images.
B. YOLOv4:
Fig. 8. Detection using YOLOV5
The model is trained using the YOLOv4 model on RTX
3090 with a 24gb graphic card for 16 hours and was able
to obtain a accuracy of 70%. Following images represent the
results of yolov4,