Automated Visual Fruit Detection For Harvesting
Automated Visual Fruit Detection For Harvesting
Abstract— The quest of learning computer vision and much more food, and ranchers will confront genuine strain
utilizing it for growth of mankind has been a long one. Over to stay aware of interest.
the most recent twenty years different procedures have been The accurate detection of different fruits is considered
proposed. As the quantity of handling methods continue to challenging and essential tasks. For the achievement of
expand, it gets simpler to make innovations which can accurate results at these tasks, the need of a high-quality
without much of a stretch distinguish objects. The quantity labelled dataset is required. However, there is a lack of such
of object locators accessible today indisputably show that publicly available benchmark datasets for precision farming,
identification should be possible with less complex which restricts the efficient application of modern
strategies which are suitable for a large portion of the technologies, like machine learning algorithms, in
clients. This opens the chance of improving the current greenhouses.
object detectors and makes it cost proficient. This paper
proposes the application of current innovations in
cultivating, it presents the detection of a ripened fruit by an II. OBJECTIVE
automated cost-effective Fruit Harvester. This project is The objective of our project is to be able to detect different
intended to help the farmers save their effort by making types of fruits that are required to be harvested or plucked
their work convenient which consequently increases from the tree. The autonomous robot uses computer vision
productivity in order to detect the fruits with the help of a camera
module. This real time detection is aided by the images and
Keywords — OpenCV, Vision recognition system, Fruit other data used to train the algorithm used. Once there is a
Detection machine vision, fruit harvesting robot, YOLO, fruit detected it is scanned to detect if it is the appropriate
RPI Camera module, Image processing colour for harvesting. Once this process is completed the
robotic arm attached to the robot is placed in position to
harvest the fruit from the tree.
I. INTRODUCTION
III. PROPOSED DESIGN
Horticulture assumes a critical part in mankind's regular day
to day existence as well as in the worldwide economy. Due
to the lack of manpower to carry out the harvesting process The project will comprise a camera module that will capture
it has become increasingly necessary to integrate technology images from the reaEl-time video at 30 frames per second.
into this process. Progressed innovations can be utilized to These images would then undergo various pre-processing
give computerized answers for physically performed techniques. The preprocessing will be done on the
assignments supporting, along these lines, accuracy Raspberry pi. Method 1 uses OpenCV. Method 2 uses
cultivating. Thus, the incorporation of those cutting-edge OpenCV and neural networks (Tensorflow/PyTorch).
advancements in cultivating represents a moving
assignment to the exploration local area from an assortment We have used the Open-CV which is an open-source
of logical fields like Remote Sensing, Machine Learning or platform for the overall implementation of the project. It
Robotics. is a powerful framework which has many algorithms and
Today there has been innovation to mechanize most of the techniques for identifying and classifying images. It
human work however it is least in the field of Agriculture. helps to pre-process data and is much faster than most of
The farming area in India endures most considering its old the other libraries with a very high operational speed
techniques for reaping which require heaps of labour and with minimum glitches. It has in-built trained models
results in helpless yields. At the core of this wonder is the which reduce out setup time for training models for
requirement for essentially expanded creation yields. The comparison. It conveniently uses the Raspberry-PI and
UN gauges the total populace will ascend from 7.3 billion python platforms to make the recognition task easier. It
today to 9.7 billion out of 2050. The world will require is widely used for real time applications which have a
high accuracy requirement. It has defined functions
which help in detecting an object in variable lighting
1
• Proceedings for DJ SPARK 2020 ISBN:
Automated Visual Fruit Detection for Harvesting
Block Diagram:
Method 1A:
2
• Proceedings for DJ SPARK 2020 ISBN:
Automated Visual Fruit Detection for Harvesting
ACKNOWLEDGMENT
This project and technical paper was greatly supported by
Prof. Aarti Ambedkar. Her appropriate mentoring and total
guidance helped us at every stage of this project and this
Implementation: paper would not have been possible without his valuable
This is the image processing method. We will be extracting contributions. We thank our colleagues who provided
various features from the images in the dataset so that our insight and expertise that greatly contributed to the research
model will learn to classify the fruits as per our requirement. and helped us with the entire process.
Some features are mentioned below :- The following was
carried out to detect a Tomato and Apple. We start by
converting the rgb image to gray scale. REFERENCES
Using kernel of 7 by 7, we applied median blur is used to 1. “APPLE DEFECT DETECTION USING DEEP
reduce salt and pepper noise. We tried using different LEARNING BASED OBJECT
blurring techniques and found median blur as most DETECTION FOR BETTER POST HARVEST
appropriate. HANDLING” Paolo F.
To detect the colour, a mask is applied on the captured Valdez
frame such that only the desired colour i.e. colour of fruit is 2. “Using YOLOv3 Algorithm with Pre- and Post-
highlighted. The captured image is in the RGB colour space Processing for Apple Detection in Fruit-
and is converted into the HSV colour space. This helps in Harvesting Robot” Anna Kuznetsova, Tatiana Maleva and
highlighting the single colour and blocking all other colours Vladimir
from the image. The mask will be further divided into two Soloviev.
types, one for the lower intensity levels and one for the 3. You Only Look Once: Unified, Real-Time Object
higher intensity levels. We also used trackbar as an Detection” Joseph Redmon , Santosh
alternative approach to get the desired value of red in HSV. Divvala , Ross Girshick , Ali Farhadi, University of
For improving the accuracy of contours morphological Washington , Allen Institute for AI , Facebook AI
transformation is used on the image. Applied morphological 4. Baeten, J.; Donné, K.; Boedrij, S.; Beckers, W.; Claesen,
operation closing to remove holes inside fruit image. E. Autonomous Fruit Picking Machine:
Applied morphological operation opening to remove A Robotic Apple Harvester. In Field and Service Robotics;
external image noise. Since morphological transformation Springer Verlag: Berlin, Germany,
had a certain time lag in real time we used simple 5. Bargoti, S., and Underwood, J. Deep fruit detection in
thresholding along with image dilation. dilation function is orchards. In 2017 IEEE International Conference on
used to remove noise from the image. This along with canny Robotics and Automation (ICRA) (May 2017), pp. 3626–
edge detection gave a output with negligible time lag in real 3633.
time.
3
• Proceedings for DJ SPARK 2020 ISBN:
Automated Visual Fruit Detection for Harvesting
4
• Proceedings for DJ SPARK 2020 ISBN: