Method to acquire regions of fruit, branch and leaf from image of red apple in orchard

Similar documents
License Plate Localisation based on Morphological Operations

VEHICLE LICENSE PLATE DETECTION ALGORITHM BASED ON STATISTICAL CHARACTERISTICS IN HSI COLOR MODEL

The Study on the Image Thresholding Segmentation Algorithm. Yue Liu, Jia-mei Xue *, Hua Li

Image Measurement of Roller Chain Board Based on CCD Qingmin Liu 1,a, Zhikui Liu 1,b, Qionghong Lei 2,c and Kui Zhang 1,d

Computing for Engineers in Python

INDIAN VEHICLE LICENSE PLATE EXTRACTION AND SEGMENTATION

A new seal verification for Chinese color seal

Research of an Algorithm on Face Detection

Efficient 2-D Structuring Element for Noise Removal of Grayscale Images using Morphological Operations

AUTOMATED MALARIA PARASITE DETECTION BASED ON IMAGE PROCESSING PROJECT REFERENCE NO.: 38S1511

CHAPTER 4 LOCATING THE CENTER OF THE OPTIC DISC AND MACULA

Detection of License Plates of Vehicles

Preprocessing and Segregating Offline Gujarati Handwritten Datasheet for Character Recognition

An Improved Bernsen Algorithm Approaches For License Plate Recognition

A Study of Image Processing on Identifying Cucumber Disease

Measuring Leaf Area using Otsu Segmentation Method (LAMOS)

Advances in the Application of Image Processing Fruit Grading

A Novel Fault Diagnosis Method for Rolling Element Bearings Using Kernel Independent Component Analysis and Genetic Algorithm Optimized RBF Network

Comparison of Two Pixel based Segmentation Algorithms of Color Images by Histogram

An Evaluation of Automatic License Plate Recognition Vikas Kotagyale, Prof.S.D.Joshi

Image processing for gesture recognition: from theory to practice. Michela Goffredo University Roma TRE

A Detection Method of Rice Process Quality Based on the Color and BP Neural Network

Color Image Segmentation Using K-Means Clustering and Otsu s Adaptive Thresholding

Segmentation of Liver CT Images

CCD Automatic Gain Algorithm Design of Noncontact Measurement System Based on High-speed Circuit Breaker

Application of Machine Vision Technology in the Diagnosis of Maize Disease

Urban Feature Classification Technique from RGB Data using Sequential Methods

Keywords Fuzzy Logic, ANN, Histogram Equalization, Spatial Averaging, High Boost filtering, MSE, RMSE, SNR, PSNR.

Automatic Segmentation of Fiber Cross Sections by Dual Thresholding

Keyword: Morphological operation, template matching, license plate localization, character recognition.

MAV-ID card processing using camera images

][ R G [ Q] Y =[ a b c. d e f. g h I

COMPARATIVE PERFORMANCE ANALYSIS OF HAND GESTURE RECOGNITION TECHNIQUES

Integrated Digital System for Yarn Surface Quality Evaluation using Computer Vision and Artificial Intelligence

SYLLABUS CHAPTER - 2 : INTENSITY TRANSFORMATIONS. Some Basic Intensity Transformation Functions, Histogram Processing.

Road Network Extraction and Recognition Using Color

Displacement Measurement of Burr Arch-Truss Under Dynamic Loading Based on Image Processing Technology

NON UNIFORM BACKGROUND REMOVAL FOR PARTICLE ANALYSIS BASED ON MORPHOLOGICAL STRUCTURING ELEMENT:

The Research of the Strawberry Disease Identification Based on Image Processing and Pattern Recognition

A Real Time based Image Segmentation Technique to Identify Rotten Pointed Gourds Pratikshya Mohanty, Avinash Kranti Pradhan, Shreetam Behera

AUTOMATIC IRAQI CARS NUMBER PLATES EXTRACTION

DISEASE DETECTION OF TOMATO PLANT LEAF USING ANDROID APPLICATION

IMAGE TYPE WATER METER CHARACTER RECOGNITION BASED ON EMBEDDED DSP

A Solution for Identification of Bird s Nests on Transmission Lines with UAV Patrol. Qinghua Wang

An Algorithm and Implementation for Image Segmentation

Automatic Vehicles Detection from High Resolution Satellite Imagery Using Morphological Neural Networks

Vehicle Number Plate Recognition with Bilinear Interpolation and Plotting Horizontal and Vertical Edge Processing Histogram with Sound Signals

MATHEMATICAL MORPHOLOGY AN APPROACH TO IMAGE PROCESSING AND ANALYSIS

A Novel Algorithm for Hand Vein Recognition Based on Wavelet Decomposition and Mean Absolute Deviation

COLOR IMAGE SEGMENTATION USING K-MEANS CLASSIFICATION ON RGB HISTOGRAM SADIA BASAR, AWAIS ADNAN, NAILA HABIB KHAN, SHAHAB HAIDER

Chapter 17. Shape-Based Operations

Road marking abrasion defects detection based on video image processing

Checkerboard Tracker for Camera Calibration. Andrew DeKelaita EE368

The Research of the Lane Detection Algorithm Base on Vision Sensor

Weed Detection in Agriculture Using Image Processing

Automatic Crack Detection on Pressed panels using camera image Processing

CHAPTER-4 FRUIT QUALITY GRADATION USING SHAPE, SIZE AND DEFECT ATTRIBUTES

Table of contents. Vision industrielle 2002/2003. Local and semi-local smoothing. Linear noise filtering: example. Convolution: introduction

Iraqi Car License Plate Recognition Using OCR

Lane Detection in Automotive

Typical Uses of Erosion

Automatic Morphological Segmentation and Region Growing Method of Diagnosing Medical Images

International Journal of Innovative Research in Engineering Science and Technology APRIL 2018 ISSN X

A COMPARATIVE ANALYSIS OF DIFFERENT COLOR SPACES FOR RECOGNIZING ORANGE FRUITS ON TREE

A New Framework for Color Image Segmentation Using Watershed Algorithm

Digital Image Processing Based Quality Detection Of Raw Materials in Food Processing Industry Using FPGA

A Method of Using Digital Image Processing for Edge Detection of Red Blood Cells

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

A rapid automatic analyzer and its methodology for effective bentonite content based on image recognition technology

An Efficient Color Image Segmentation using Edge Detection and Thresholding Methods

Fovea and Optic Disc Detection in Retinal Images with Visible Lesions

A New Localization Algorithm Based on Taylor Series Expansion for NLOS Environment

A Novel Morphological Method for Detection and Recognition of Vehicle License Plates

Journal of Asian Scientific Research IMPROVEMENT OF PEST DETECTION USING HISTOGRAM ADJUSTMENT METHOD AND GABOR WAVELET

Carmen Alonso Montes 23rd-27th November 2015

IMAGE ANALYSIS FOR APPLE DEFECT DETECTION

Computer Vision. Intensity transformations

A Fast Algorithm of Extracting Rail Profile Base on the Structured Light

CSE 564: Visualization. Image Operations. Motivation. Provide the user (scientist, t doctor, ) with some means to: Global operations:

More image filtering , , Computational Photography Fall 2017, Lecture 4

An Analysis of Image Denoising and Restoration of Handwritten Degraded Document Images

Region Based Satellite Image Segmentation Using JSEG Algorithm

Image Enhancement System Based on Improved Dark Channel Prior Chang Liu1, a, Jun Zhu1,band Xiaojun Peng1,c

Geometric Feature Extraction of Selected Rice Grains using Image Processing Techniques

Color Image Segmentation Based on PCNN

Digital Image Processing 3/e

Number Plate Recognition System using OCR for Automatic Toll Collection

Computer Vision. Howie Choset Introduction to Robotics

An Image Matching Method for Digital Images Using Morphological Approach

SRI VENKATESWARA COLLEGE OF ENGINEERING. COURSE DELIVERY PLAN - THEORY Page 1 of 6

Shadow-resistant segmentation based on illumination invariant image transformation

Correction of Clipped Pixels in Color Images

Colored Rubber Stamp Removal from Document Images

Demosaicing Algorithm for Color Filter Arrays Based on SVMs

Intelligent Identification System Research

KEYWORDS Cell Segmentation, Image Segmentation, Axons, Image Processing, Adaptive Thresholding, Watershed, Matlab, Morphological

Traffic Sign Recognition Senior Project Final Report

Single Image Haze Removal with Improved Atmospheric Light Estimation

Driver Fatigue Detection System Based on DM3730

COMPUTER-AIDED DETECTION OF CLUSTERED CALCIFICATION USING IMAGE MORPHOLOGY

Transcription:

Modern Physics Letters B Vol. 31, Nos. 19 21 (2017) 1740039 (7 pages) c World Scientific Publishing Company DOI: 10.1142/S0217984917400395 Method to acquire regions of fruit, branch and leaf from image of red apple in orchard Jidong Lv School of Information Science and Engineering, Changzhou University, Gehu Road, Changzhou 213164, China vveaglevv@163.com Liming Xu Department of Equipment Engineering, Jiangsu Urban and Rural Construction College, Heyu Road, Changzhou 213147, China lxccdx@163.com Received 7 September 2016 Published 12 April 2017 This work proposed a method to acquire regions of fruit, branch and leaf from red apple image in orchard. To acquire fruit image, R-G image was extracted from the RGB image for corrosive working, hole filling, subregion removal, expansive working and opening operation in order. Finally, fruit image was acquired by threshold segmentation. To acquire leaf image, fruit image was subtracted from RGB image before extracting 2G-R-B image. Then, leaf image was acquired by subregion removal and threshold segmentation. To acquire branch image, dynamic threshold segmentation was conducted in the R-G image. Then, the segmented image was added to fruit image to acquire adding fruit image which was subtracted from RGB image with leaf image. Finally, branch image was acquired by opening operation, subregion removal and threshold segmentation after extracting the R-G image from the subtracting image. Compared with previous methods, more complete image of fruit, leaf and branch can be acquired from red apple image with this method. Keywords: Apple; image segmentation; image processing; threshold segmentation. 1. Introduction Harvesting robot based on machine vision has primary task of acquiring regional image of fruit, leaf and branch. Various scholars 1 3 developed researches on the identification of fruit object. However, these methods do not touch the detection of Corresponding author. 1740039-1

J. Lv & L. Xu branch, leaf and other obstacles. Moreover, the incomplete information about fruit region may affect the precision in subsequent identification of fruit. When acquiring branch region, Ji et al. proposed a method of iterative threshold segmentation for branch based on adaptive histogram equalization with limited contrast ratio to realize the stripping of branch region. 4 According to aberration components of R-B and G-B in RGB color system, Cai et al. removed background by adaptive threshold segmentation with maximum between cluster variance. In addition, they segmented branch region from citrus image by removing bright region and dark region with gray threshold segmentation. 5 The above methods mainly involve the extraction of branch region. In order to acquire multi-regional information about fruit and leaf, Jia et al. identified apple, leaf and branch by optimized radial basis function (RBF) with neural network based on K-means cluster segmentation, genetic algorithm (GA) and least mean square (LMS). 6 This method has high training success rate and accuracy, but the accuracy improvement is time consuming. This work established a process flow with effective combination of basic image processing (with low complexity) and different characteristics of target regions based on above research. Consequently, complete region of fruit, branch and leaf can be acquired. 2. Materials and Methods The color difference between fruit and background is significant with R-G factors as color characteristics in RGB color space. After removing fruit in image, the color difference between leaf and background is significant with 2G-R-B factors as color characteristics. After removing fruit and leaf in image, the color difference between branch and background is also significant with R-G factors as color characteristics. These color characteristics can be used as segmentation vectors to acquire target region. 2.1. Acquisition method Erosion, dilation and opening operations In this work, the region of fruit, branch and leaf is acquired with aberration image, the non-target image in which is fragmented. At this time, the erosion operation is always effective to weaken or eliminate the most fragments of non-target image. Erosion can be described with Eq. (1). In order to maximize the integrity of target image, converse dilation working is always conducted after erosion. Relative to erosion, dilation operation is to expand boundary points of object outward. Dilation can be described with Eq. (2). Assumed that A and B are sets of Euclidean space. Figures 1 and 2 demonstrate the process that structural element B either erodes or expands binary image A. Obviously, the erosion of A by B makes C smaller in Fig. 1, and the dilation of A by B makes C larger in Fig. 2. Opening can remove isolated points, burr and pores and smooth the boundary of large object without obvious change of area. Opening can be described with Eq. (3). Opening forms after eroding and expanding the image. 1740039-2

Method to acquire regions of fruit, branch and leaf from image of red apple in orchard A B C Fig. 1. Erosion operation. A Fig. 2. B Dilation operation. A B = {x E N x + b A}, b B, (1) A B = {c E N c = a + b}, a A, b B, (2) Subregion removal and hole filling S = A B = (A B) B. (3) Some non-target regions in aberration image should be removed. These regions are always smaller than target image, so we marked the connected regions by 8- neighborhood tracer method. Then, small regions with pixel amount smaller than a threshold according to statistics were removed to remain target region. Apples are not in homogeneous color, so holes may occur in fruit region. However, we can directly fill these holes by flood fill algorithm which is suitable for the fill of internal defined region as a regional fill method. C Threshold segmentation Fixed threshold segmentation has good effects when segmenting image with obvious gray thresholds in target region and background region. However, for image with complex background, dynamic threshold segmentation has better effects compared with fixed threshold segmentation. As dynamic threshold segmentation with good performance, Otsu method can seek dynamic threshold by calculating interclass variance between target and background in image. Specifically, let the gray range of image I be {0, 1,..., m 1}, P i means that the probability of gray level is i. Let T be the threshold segmenting prospect and background, the image can be divided into target class A 0 = {0, 1,..., T } and background class A 1 = {T +1, T +2,..., m 1}. In the image, target class accounts for w 0 with average gray level of u 0, while background class for w 1 with average gray level of u 1. The total average gray level 1740039-3

J. Lv & L. Xu of image is u T. Therefore, w 0 = w 1 = T P i, (4) i=0 m 1 i=t +1 P i = 1 w 0, (5) u 0 = u 1 = T i=0 m 1 i=t +1 ip i w 0, (6) ip i w 1, (7) u T = w 0 u 0 + w 1 u 1. (8) When T traversed from the smallest to the largest gray level makes Eq. (9) for variance the largest, T is the optimal threshold in segmentation. 2.2. Execution flow σ 2 = w 0 w 1 (u 0 u 1 ) 2. (9) Figure 3 shows the process of acquiring fruit and leaf region from the image of red apple in orchard: (1) The image collected by visual sensor was used to extract regional information about target object. (2) In RGB color space, red apple has significant color difference with the background with R-G color factors as color characteristics. Then, R-G calculation was conducted to acquire aberration image according to RGB three-channel image collected in (1). Extraction of R-G image Original mage Segmentation by dynamic threshold Extraction of fruit image Subtraction Addition Extraction of leaf image Subtraction Extraction of branch image Fig. 3. General flowchart of the presented method. 1740039-4

Method to acquire regions of fruit, branch and leaf from image of red apple in orchard (3) The steps to acquire fruit image based on R-G aberration image are as follows. (a) In order to eliminate redundant branches in aberration image, erosive working was conducted to R-G aberration image based on the disc structural element with radius of 5. (b) There is a hole between the calyx at the end of apple and the fruit body because of large color difference. Without processing, fruit region may be deficient and incomplete. Therefore, floodfill algorithm was used to fill the hole in the eroded R-G aberration image. (c) After hole filling, there are still noisy points or blocks besides fruit. In order to eliminate these noisy points or blocks, all the pixels with gray level smaller than 20 in R-G aberration images were set as 0. Then, connected regions in image were marked and counted by 8-neighborhood trace method to remove subregions with total pixels less than 2000. (d) Reverse dilation working was conducted against the erosive working in Step (b). Therefore, the integrity of fruit image can be maximized after removing subregions based on disc structural elements with radius of 5. (e) There are still non-target objects on the edge of target region in expanded R-G aberration image. Therefore, opening was conducted based on disc structural elements with radius of 10 to weaken these non-target objects. (f) Fruit image was acquired from R-G aberration image by segmenting RGB original image with gray level of 0 as threshold after opening. (4) Fruit image was subtracted from RGB original image to acquire subtracted image. (5) The steps to acquire leaf image based on the subtracted image are as follows. (a) With 2G-R-B color factors as color characteristics, green leaf is significantly different from the background. Therefore, 2G-R-B operation was conducted to subtracted image to acquire aberration image. (b) In order to eliminate abundant noisy points or blocks in aberration image, connected regions in 2G-R-B aberration image were marked and counted by 8-neighborhood trace method. Then, subregions, with pixel smaller than 500, were removed. (c) After subregion removal, gray level of 0 in 2G-R-B image was taken as threshold. Then, RGB original image was segmented to acquire leaf image. (6) Small fruits in distance were not included in fruit image acquired by Step (3) (fruits far away from visual sensor look small, and harvesting robot based on machine vision can only pick large fruits near the sensor), while all the fruit image should be subtracted from RGB original image. Therefore, fruit image segmented with dynamic threshold was acquired from R-G aberration image according to Step (2). (7) In the fruit image acquired by dynamic threshold segmentation, fruit region may be missing. In order to supplement the missing fruit region, the image was added to the fruit image acquired in Step (3) to acquire addition image. 1740039-5

J. Lv & L. Xu (8) Addition image and leaf image were subtracted from RGB original image to acquire subtracted image. (9) The steps to acquire branch image based on subtracted image are as follows. (a) With R-G color factors as color characteristics, branch is significantly different from the background. R-G operation was conducted to subtracted image again to acquire aberration image. (b) In order to eliminate redundant noisy points or blocks in R-G aberration image, opening was conducted to R-G aberration image based on disc structural element with radius of 2. (c) Connected regions in R-G aberration image were marked and counted by 8-neighborhood trace method. Then, subregions with pixel smaller than threshold were removed. (d) After subregion removal, gray level of 0 in 2G-R-B image was taken as threshold. Then, RGB original image was segmented to acquire leaf image. 3. Experimental Results Above flows were applied in the test of fruit, branch and leaf region acquisition to verify validity (Apple variety was Fuji). Figure 4 shows the test effects. In order to further verify the effectiveness of the presented method, we compared the results with those by K-means based on a color channel in Lab color space and OTSU based on R-G image. This work used the evaluation index, relatively ultimate measurement accuracy (RUMA). The smaller the average value of RUMA is, the better the effect of this method. RUMA = Real area of target Area by segmentation Real area of target 100%. (10) Table 1 shows average RUMA results (120 apple images) by different segmentation methods. It can be seen that the average RUMA of fruit, branch and leaf are 5.2%, 10% and 13.9%, respectively. Compared with those by K-means, the average RUMA decreases by 21.93%, 34.34% and 16.6%, respectively. Compared with (a) Original image (Frontlighting,Backlighting, Complex background) (b) Fruit image (c) Branch image (d) Leaf image Fig. 4. Effect picture. 1740039-6

Method to acquire regions of fruit, branch and leaf from image of red apple in orchard Table 1. RUMA of different methods. RUMA (%) Methods Fruit Branch Leaf Otsu 17.10 30 14.9 K-means 27.13 44.34 30.5 The presented method 5.2 10 13.9 those by OTSU, the average RUMA decreases by 11.9%, 20% and 1%. Therefore, the presented method has better effects with superior RUMA. 4. Conclusions A method was proposed to acquire fruit, branch and leaf region from the image of red apple in orchard. The experiment shows that the effects of method to acquire fruit, branch and leaf in this work are much better. The average RUMA of fruit, branch and leaf are 5.2%, 10% and 13.9%, respectively. Acknowledgments This work was partly supported by Natural Science Foundation of Jiangsu Province with Grant No. BK20140266; Natural Science Research Program for Higher Education in Jiangsu Province with Grant No. 14KJB210001and NSFC with Grant No. 61501060. References 1. H. Ejvan et al., Biosyst. Eng. 86 (2003) 2. 2. D. M. Bulanon, T. F. Burks and V. Alchanatis, Trans. ASABE 52 (2008) 1. 3. Y. Song et al., Biosyst. Eng. 118 (2014) 1. 4. W. Ji et al., Trans. Chinese Soc. Agric. Mach. 45 (2014) 4. 5. J. R. Cai et al., Trans. Chinese Soc. Agric. Mach. 40 (2009) 11. 6. W. K. Jia et al., Trans. Chinese Soc. Agric. Eng. 31 (2015) 18. 1740039-7