1,856
Views
24
CrossRef citations to date
0
Altmetric
Original Articles

Determination of Tangerine Volume Using Image Processing Methods

, &
Pages 760-770 | Received 14 May 2008, Accepted 14 Mar 2009, Published online: 08 Mar 2010

Abstract

In this study, two image processing techniques; namely, segmentation and ellipsoid approximation, were used to estimate the volume of tangerines. The proposed system consisted of two CCD cameras, capture cards, an appropriate lighting system and a computer. The paired t-test showed the estimated volume using segmentation method was not significantly different from the volume determined by water displacement method (p > 0.05). The difference between the volumes estimated by ellipsoid approximation and water displacement method was statistically significant (P < 0.05). The Bland–Altman approach showed the size of tangerines has no effect on the accuracy of volume estimation by segmentation method.

INTRODUCTION

Fruit size, dimensions and geometrical attributes are important geometric properties of agricultural products. More specifically, the estimation of mean size and volume of agricultural materials is needed in many applications such as meeting quality standards, increasing market value,[Citation1] monitoring growth, shrinkage, predicting yields and assessing optimal levels of fertilization and irrigation, as well as the design and development of size sorting mechanisms. Size estimation is also helpful in planning food packaging system, transportation and marketing operations. Among the physical attributes of agricultural materials, volume, mass, density and surface areas are the most important ones in sizing systems.[Citation2–5] There are some situations in which it is desirable to determine relationships among geometric dimensions; for example, fruits are often graded by size, but it may be more economical to develop a machine vision system which grades by weight or volume. The size of an agricultural produce is frequently represented by its weight because it is relatively simple to measure. However, volume-based sorting and growth monitoring may provide a more efficient method than weight sorting. In addition, the weight of agricultural produce can be estimated from volume if the density of the produce is known, since one would expect that the weight of a piece of fruit would be directly proportional to its volume. This is because fruit density is almost constant within a batch (with any density variations being small and unpredictable). Simple model equations to estimate the volume of various agricultural products such as potato chips,[Citation5] bell pepper,[Citation6] and kiwifruit[Citation7] from are available. However, measuring dimensions using a digital caliper is subject to human error and may not be an efficient and practical approach to estimate volume, particularly in sorting large quantities of agricultural products indoors or in monitoring yield during harvesting.

In recent years, image processing techniques are found increasingly useful in the food industry, especially for applications in quality inspection and shape sorting. Researches in this area indicate the feasibility of using machine vision systems to improve product quality while freeing people from the traditional manual inspection of agricultural materials. Currently, machine vision is the most effective tool for external feature measurements such as color intensity, homogeneity, bruises, size, shape, shrinkage and stem identification.[Citation8–23] Lan et al.[Citation16] used a machine vision system to obtain images of fissured rice grains. Their system was consisted of a CCD (Charge Coupled Device) black/white camera, an image frame grabber, and a computer. The machine vision system used in their study was able to reveal 94% of all the fissure lines detected in medium rice samples by a human expert and 100% in long rice samples. The use of machine vision is gaining interest for the volume determination of fruit and irregular-shaped objects, because it is a non-destructive method requiring image analyses and image processing operations. A machine vision algorithm using neural networks was developed for estimation of pear volume from 2D digital images.[Citation17] The RMS percentage error using a single digital image was 3%. This percentage was reduced to 1.9% when the volume was estimated from a set of four images. Lorestani et al.[Citation18] developed a fuzzy logic based algorithm for sorting golden delicious apples. Features such as color and size were measured by a machine vision system consisted of apple's sorter, an illumination chamber, a webcam, and a computer. Grading results obtained from the fuzzy expert system showed 91.2% and 95.2% agreement for off-line and online methods, respectively, with the results from by a human expert. Hahn and Sanchez[Citation19] developed an imaging algorithm to measure the volume of non-circular shaped agricultural products, such as carrots. Sabliov et al.[Citation20] used an image-processing algorithm to determine the volume and surface area of axi-symmetric agricultural products. These authors reported that the method could successfully estimate the volume and surface area of eggs, lemons, limes, peaches, and tomatillos. They created a representation of the produce with a set of elementary cylindrical objects of unit pixel height and estimated the volume by summing the elementary volumes of individual cylinders. Wang and Nguang[Citation21] designed a low-cost sensor using the methodology developed in Sabliov et al.[Citation20] to measure the volume and surface area of agricultural products. Bailey et al.[Citation22] demonstrated an image processing approach which estimated the weight of agricultural products accurately. More recently, Koc[Citation23] determined the volume of watermelon using ellipsoid approximation and image processing. Here we extend the ideas presented in Koc[Citation23] in two ways: (1) extend it to the case of tangerine and other axi-symmetric fruits and agri-poducts; and (2) use a more sophisticated image processing method. The objective of this study was to develop an efficient algorithm for volume determination of tangerines based on machine vision. The proposed image processing technique turned out to be quite general and may provide alternative means for estimating volume of other axi-symmetric agricultural products such as melon, kiwifruit, pomegranate, pear, eggs and limes.

MATERIALS AND METHODS

Fifty randomly selected tangerines of various sizes were purchased from a local market. The weight of each tangerine was measured by a digital balance, with an accuracy of ± 0.01 g. The minimum and maximum weights were 59.8 and 99.4 g, respectively (). In order to determine the volume of tangerines a machine vision system was designed, developed and tested. The proposed machine vision system was consisted of two CCD cameras, two capture cards, an appropriate lighting system, and a personal computer (). A white cardboard was placed on a table to provide a white background. The cameras were placed at right angles to each other in order to capture two perpendicular images on each tangerine. The light source and cameras were mounted on a frame which was attached to the measurement table. A program was developed to capture and record the surface images of the tangerine. Algorithms were all implemented using Visual Basic 6.0 programming language. Each tangerine was placed at the center of the cameras' field of view and two RGB color images were captured. To extract the fruit image, the acquired image was subtracted from the background by calculating RGB values of pixels of fruit image. Obtained RGB values were compared with background RGB values. If the difference between the two was less than 5 (≈3σ), where σ is the standard deviation, the pixel would be regarded as background else it is part of the fruit. To calibrate the system, a spherical object with known dimensions was selected. The acquired dimension by the machine vision system was then compared with the actual dimension of the spherical object.

Table 1 Weight and volumes of tangerines used in this study

Figure 1 Schematic of developed machine vision system.

Figure 1 Schematic of developed machine vision system.

Volume Evaluation using Ellipsoid Approximation

Each tangerine was approximated as a uniform ellipsoid. The volume estimation formula for an ellipsoid, a modification of sphere volume EquationEq. (1), is given by EquationEq. (2):

(1)
and
(2)
where r is the radius of sphere; and a, b and c are the three perpendicular diameters of ellipsoid shown in and . The three diameters were calculated from the two perpendicular images of the tangerine (). Dimensions a and b were obtained from the first image and c from the second image. Since the three perpendicular diameters of a sphere are equal, the volume of the sphere can be calculated easily by EquationEq. (1), provided r is known. Similarly, the volume of an ellipsoid can be calculated using EquationEq. (2), provided the three perpendicular diameters (a, b, and c) are known.

Figure 2 (a) front view: acquire two perpendicular images of tangerine and calculation of b and c diameters; top view: acquire one image with camera 1 and calculation of a diameter.

Figure 2 (a) front view: acquire two perpendicular images of tangerine and calculation of b and c diameters; top view: acquire one image with camera 1 and calculation of a diameter.

Figure 3 The dimensions of an ellipsoid.

Figure 3 The dimensions of an ellipsoid.

Volume Evaluation by Segmentation Method

By removing the background and dividing the fruit image into a number of distinct sectors or frustums ( a,b), the overall error was decreased. Surface area of each sector can be calculated using the two perpendicular diameters as in c. The surface area of each sector, (Ai , i = 1,2, …, n), is given by:

(3)
where and are the two perpendicular diameters of lateral surface. The accuracy of estimated surface area was depended on the position of minimum and maximum diameters of the tangerine's surface. The volume of each sector (Vi , i = 1,2, …, n) is then calculated by (d):
(4)
where Ai and Ai +1 are the surface areas of i and i + 1 segments, respectively; and δ is the thickness of a segment (assuming all segments are of equal thicknesses). Once the volume of all sectors was obtained, the volume of the tangerine (Vt ) can be readily calculated by adding them up:
(5)
where n = 8 is the number of sectors.

Figure 4 (a) Tangerine fruit; (b) segmentation of tangerine; (c) extraction of two diameters of one surface of one sector; (d) thickness of sector and its surface areas.

Figure 4 (a) Tangerine fruit; (b) segmentation of tangerine; (c) extraction of two diameters of one surface of one sector; (d) thickness of sector and its surface areas.

Actual Volume

The actual fruit volume and its density were determined using the water displacement method.[Citation24,Citation–25] For this purpose, a tangerine was submerged into the known water and the volume of water displaced was measured. Water temperature was kept at 25°C. Specific gravity of each tangerine was calculated by the mass of tangerine in air divided by the mass of displaced water.

Statistical Analysis

The paired t-test and the mean difference confidence interval approach were used to compare the volume determined from the two approaches (ellipsoid approximation and segmentation technique) with that of water displacement method. The paired t-test was used here for testing whether the difference between the two measurements was significantly different. The important feature of this test was its ability to compare the measurements within each subject. Furthermore, the Bland and Altman[Citation26] approach was used to plot the agreements between the tangerine volume measured by water displacement method (actual) and the estimated volumes, using ellipsoid approximation or segmentation method. The statistical analyses were performed with Analysis-it, a Microsoft® Excel add-in program (Microsoft Corporation, Redmond, WA).

RESULTS AND DISCUSSION

Comparison of Ellipsoid Approximation with Water Displacement

The volume determined by the ellipsoid approximation was compared with the mean volume measured by water displacement method. The results are shown in and a. The mean volume difference between the ellipsoid approximation and water displacement was d 1 = −7.3 cm 3 (95% confidence interval: −8.1 and −6.47 cm 3) with an underestimation by ellipsoid approximation compared to water displacement. The standard deviation of the volume differences was sd 1 = 2.87 cm 3. The paired t-test results showed that the tangerine volume measured with water displacement method was significantly different than the volume estimated by ellipsoid approximation (p < 0.0001) (). The volume differences between these two methods were normally distributed and 95% of the volume differences were expected to lie between d 1 − 1.96sd 1 and d 1 + 1.96sd 1, known as 95% limits of agreement.[Citation23,Citation26] The 95% limits of agreement for comparison of volumes measured with water displacement method and ellipsoid approximation were calculated at −12.91 and −1.66 cm 3 (b). The results showed that volumes determined using the ellipsoid approximation was less than the one measured with the water displacement method. When the ellipsoid approximation method was chosen for tangerine volume estimation, a perfect ellipsoid (such as the one shown in ) was used to describe tangerines. However, in reality, the tangerines were randomly selected from an unsorted source, and their shapes were not perfect ellipsoids. The polar radii of tangerines were unequal and were greater than the polar radii of a perfect ellipsoid. Therefore, the volume estimated by the ellipsoid approximation was less than the actual volume measured by the water displacement method. The accuracy of the ellipsoid approximation method was highly depended on the uniformity of the fruit having the presumed shape.

Figure 5 (a) Tangerine volume measured using water displacement method (WDM) and ellipsoid approximation method (EAM) with the line of equality; (b) bland–Altman plot for the comparison of tangerine volumes measured with water displacement and ellipsoid approximation methods; outer lines indicate the 95% limits of agreement (–1.66 ;–12.91 cm 3) and center line shows the average difference (−7.3 cm 3).

Figure 5 (a) Tangerine volume measured using water displacement method (WDM) and ellipsoid approximation method (EAM) with the line of equality; (b) bland–Altman plot for the comparison of tangerine volumes measured with water displacement and ellipsoid approximation methods; outer lines indicate the 95% limits of agreement (–1.66 ;–12.91 cm 3) and center line shows the average difference (−7.3 cm 3).

Table 2 t-test analyses on comparing volume measurement methods

Comparison of Segmentation with Water Displacement

A plot of the volumes measured by the segmentation and water displacement methods is shown in The mean volume difference between the two methods was d 2 = 0.66 cm 3 (95% confidence interval: −0.14 and 1.45 cm 3). The standard deviation of the volume differences was sd 2 = 2.8 cm 3. In this case, the paired t-test results showed that the volume measured with the segmentation method was not significantly different than the volume measured with the water displacement method (P = 0.1032) (). Further more, the Bland-Altman plot[Citation26] (b) indicated the volume differences between the two methods were normally distributed. The 95% limits of agreement in comparing these two methods were calculated at −4.83 and 6.14 cm 3 (b). b shows that tangerine's size showed no effect on the estimation of volume. Koc[Citation23] reported that as the size of the watermelon increased, the image processing method overestimated the volume. The improved accuracy in the current study can be attributed to a more sophisticated image processing method (two CCD cameras instead of one) used here. In summary, the average percentage differences for estimating the volume of tangerines with the ellipsoid approximation and the segmentation method were 8.9% and 2.6%, respectively.

Figure 6 (a) Tangerine volume measured using water displacement method (WDM) and segmentation method (SM) with the line of equality; (b) bland–Altman plot for the comparison of tangerine volumes measured with water displacement and segmentation methods; outer lines indicate the 95% limits of agreement (−4.83; 6.14 cm 3) and center line shows the average difference (0.66 cm 3).

Figure 6 (a) Tangerine volume measured using water displacement method (WDM) and segmentation method (SM) with the line of equality; (b) bland–Altman plot for the comparison of tangerine volumes measured with water displacement and segmentation methods; outer lines indicate the 95% limits of agreement (−4.83; 6.14 cm 3) and center line shows the average difference (0.66 cm 3).

CONCLUSION

In this paper, two methods for estimating the volume of tangerines were presented. Both methods were quite general and may be readily applied for volume computation of other ellipsoidal agricultural products such as eggs, lemons, limes, peaches, onion, melon, kiwifruit, pomegranate, and pear. The volumes computed showed good agreement with analytical and experimental results. The difference between the volumes estimated by ellipsoid approximation and water displacement method was statistically significant (P < 0.05) while the difference between the volumes estimated by segmentation method and water displacement method was not statistically significant (P > 0.05). The Bland–Altman approach[Citation26] showed that the size of tangerine had no effect on the estimation of volume. The developed method proved to be accurate, precise, and easy to be used. It should be pointed out that the method used here was rotationally invariant and did not require fruit alignment on the conveyor. The method used here for background segmentation was not based on threshold values, and therefore it can be used with other fruits. The present work may be extended in several ways. For instance, the characterization results of citrus fruits showed that the computed volume by segmentation method and measured mass parameters are highly correlated. Therefore, the same algorithm presented here may be used to grade the fruits based on the mass by using the estimated volume information that has already been computed by segmentation method. In fact, the authors have recently extended the algorithms for estimating the mass and surface areas of orange[Citation27] and other citrus fruits.[Citation28] However, further studies are still needed to integrate estimated volume, surface area and mass of fruits with already available color information (RGB or HSI) in devising a fully automatic multi-product sorting system for grading citrus fruits. Research in this direction is currently being continued and the results will be published in near future.

ACKNOWLEDGMENTS

The financial support provided by the Research Department of University of Tehran, Iran, is gratefully acknowledged. Also, the authors would like to thank Mr. T. Bagherpour and Mr. M. Aliakbari for their valuable helps and assistants.

REFERENCES

  • Wilhelm , L.R. , Suter , D.A. and Brusewitz , G.H. 2005 . Food and Process Engineering Technology , 23 – 25 . Michigan : ASAE .
  • Tabatabaeefar , A. and Rajabipour , A. 2005 . Modeling the mass of apples by geometrical attributes . Scientia Horticulturae , 105 : 373 – 382 .
  • Wright , M.E. , Tappan , J.H. and Sistler , F.E. 1986 . The size and shape of typical sweet potatoes . Transactions of the ASAE , 29 ( 3 ) : 678 – 682 .
  • Safwat , M. and Moustafa , A. 1971 . Theoretical prediction of volume, surface area and center of gravity for agricultural products . Transactions of the ASAE , 14 ( 2 ) : 549 – 553 .
  • Segnini , S. , Pedreschi , F. and Dejmek , P. 2004 . Volume measurement method of potato chips . International Journal of Food Properties , 7 : 37 – 44 .
  • Ngouajio , M. , Kirk , W. and Goldy , R. 2003 . A simple model for rapid and nondestructive estimation of bell pepper fruit volume . HortScience , 38 : 509 – 511 .
  • Hall , A.J. , McPherson , H.G. , Crawford , R.A. and Seager , N.G. 1996 . Using early-season measurements to estimate fruit volume at harvest in kiwifruit . New Zealand Journal of Crop & Horticultural Science , 24 : 379 – 391 .
  • Lee , W.S. , Slaughter , D.C. and Giles , D.K. 1999 . Robotic weed control system for tomatoes . Precision Agriculture , 1 : 95 – 113 .
  • Majumdar , S. and Jayas , D.S. 2000 . Classification of cereal grains using machine vision: II- Color models . Transactions of the ASAE , 43 ( 6 ) : 1677 – 1680 .
  • Shahin , M.A. and Symons , S.J. 2001 . A machine vision system for grading lentils . Canadian Biosystems Engineering , 7 : 7.7 – 7.14 .
  • Paliwal , J. , Borhan , M.S. and Jayas , D.S. 2004 . Classification of cereal grains using a flatbed scanner, Canadian Biosystems Engineering , 46 : 3.1 – 3.5 .
  • Shigeta , K. , Motonaga , Y. , Kida , T. and Matsuo , M. 2004 . Distinguishing damaged and undamaged chaff in rice whole crop silage by image processing . ASAE/CSAE Annual International Meeting . August 1–4 2004 , Ontario, Canada. Paper No. 043125
  • Shahin , M.A. , Symons , S.J. and Meng , A.X. Seed Sizing with image analysis, Paper No. 043121 . ASAE Annual International Meeting .
  • Abbasgholipour , M. , Omid , M. and Borghei , A.M. Development of an efficient algorithm for grading raisins based on color features . Proceedings of International Conference on Innovations in Food & Bioprocess Technologies . Dec 12–14 , Thailand. pp. 448 – 457 . Pathum Thani .
  • Jafari , A. , Mohtasebi , S.S. , Eghbali-Jahromi , H. and Omid , M. 2006 . Weed detection in sugar beet fields using machine vision . International Journal of Agriculture & Biology , 8 ( 5 ) : 602 – 605 .
  • Lan , Y. , Fang , Q. , Kocher , M.F. and Hanna , M.A. 2002 . Detection of fissures in rice grains using imaging enhancement . International Journal of Food Properties , 5 : 205 – 215 .
  • Forbes , K.A. and Tattersfield , G.M. 1999 . Estimating fruit volume from digital images . IEEE , Africon 1 : 107 – 112 .
  • Lorestani , A.N. , Omid , M. , Bagheri-Shooraki , S. , Borghei , A.M. and Tabatabaeefar , A. 2006 . Design and evaluation of a fuzzy logic based decision support system for grading of golden delicious apples, International Journal of Agriculture & Biology . 8 ( 4 ) : 440 – 444 .
  • Hahn , F. and Sanchez , S. 2000 . Carrot volume evaluation using imaging algorithms . Journal of Agricultural Engineering Research , 75 : 243 – 249 .
  • Sabliov , C.M. , Boldor , D. , Keener , K.M. and Farkas , B.E. 2002 . Image processing method to determine surface area and volume of axi-symmetric agricultural products . International Journal of Food Properties , 5 : 641 – 653 .
  • Wang , T.Y. and Nguang , S.K. 2007 . Low cost sensor for volume and surface area computation of axi-symmetric agricultural products . Journal of Food Engineering , 79 : 870 – 877 .
  • Bailey , D.G. , Mercer , K.A. , Plaw , C. , Ball , R. and Barraclough , H. High speed weight estimation by image analysis . Proceedings of the 2004 New Zealand National Conference on Non Destructive Testing . July 27–29 , New Zealand. pp. 89 – 96 . Palmerston North .
  • Koc , A.B. 2007 . Determination of watermelon volume using ellipsoid approximation and image processing . Postharvest Biology & Technology , 45 : 366 – 371 .
  • Akar , R. and Aydin , C. 2005 . Some physical properties of gumbo fruit varieties . Journal of Food Engineering , 66 : 387 – 393 .
  • Mohsenin , N.N. 1986 . Physical Properties of Plant and Animal Material , 51 – 87 . New York : Gordon and Breach Science Publishers .
  • Bland , J.M. and Altman , D.G. 1999 . Measuring agreement in method comparison studies . Statistical Methods in Medical Research , 8 : 135 – 160 .
  • Khojastehnazhand , M. , Omid , M. and Tabatabaeefar , A. 2009 . Determination of orange volume and surface area using image processing technique . International Agrophysics , 23 ( 3 ) : 237 – 242 .
  • Omid , M. , Khojastehnazhand , M. and Tabatabaeefar , A. 2010 . Estimating volume and mass of citrus fruits by image processing technique . Journal of Food Engineering , 100 ( 2 ) : 315 – 321 .

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.