Introduction #
In the pursuit of accurate detection and recognition of fruits and vegetables, the authors of the Fruit Recognition dataset acknowledge the persistent challenges posed by the similarities between various fruit types and the complexities of real-world environments, including lighting and background variations.
The dataset consists of 44,406 fruit images gathered over a span of 6 months. These images were taken within our laboratory’s controlled environment under various conditions, as elaborated below. All images were captured against a clear background with a resolution of 320×258 pixels, using an HD Logitech webcam for photography.
In the current era, traditional bar code technology continues to be used in fruit shops and supermarkets for price and source traceback information. Managing individual bar codes for various fruit categories poses challenges for shopkeepers. The authors highlight the significance of machine learning-based algorithms in object detection and recognition, particularly in addressing the preference of customers to select fruits individually rather than opting for prepackaged ones.
The data collection process confronted various challenges, including lighting variations, pose changes, camera artefacts, and shadows. The authors employed the split-and-merge algorithm to remove image backgrounds. To ensure model robustness, the dataset incorporated images with diverse illumination conditions and captured artefacts, specular reflections, and shadows, akin to real-world scenarios in supermarkets and fruit shops. The dataset further enhanced realism by featuring images taken at different times and days. The authors encountered substantial diversity in image quality and lighting. Data samples displayed environmental variations, adding complexity to the dataset. The authors emphasize the importance of a substantial dataset for effective deep learning algorithm training, particularly in cases where fruits share colour and size similarities.
Note, that this is a newer version of the dataset and the actual number of images and their resolution differ from what was described in the paper.
Summary #
Fruit Recognition Dataset is a dataset for a classification task. It is used in the food and retail industries.
The dataset consists of 44792 images with 0 labeled objects. There are no pre-defined train/val/test splits in the dataset. Alternatively, the dataset could be split into 15 image sets with corresponding classes: apple (6161 images), kiwi (4292 images), mango (4154 images), guava (3138 images), banana (3027 images), orange (3012 images), pear (3012 images), peach (2629 images), pitaya (2501 images), plum (2298 images), tomatoes (2171 images), pomegranate (2167 images), carambola (2080 images), muskmelon (2078 images), and persimmon (2072 images). Additionally, some fruit images contain information about different fruit kinds in sub-category. The dataset was released in 2018 by the Karakoram International University, Pakistan, King Saud University, Saudi Arabia, University of Agder, Norway, and Taiz University, Yemen.
Here are the visualized examples for the classes:
Explore #
Fruit Recognition dataset has 44792 images. Click on one of the examples below or open "Explore" tool anytime you need to view dataset images with annotations. This tool has extended visualization capabilities like zoom, translation, objects table, custom filters and more. Hover the mouse over the images to hide or show annotations.
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/v/M/1R/e42Hn6cbBdnhjmUfiiEFPqmrJkpUUt2vtMcDiUuiwI3wRloEJxOE2L1j1Wo1kMqcBsRT37Ac3fIunIusXUth4OWdN78o42LORXOCHwPyRzxKuhcnlgNrteAk9Yrv.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/g/z/GB/DRKQLxN0P09k84pIGYmmYr8B4zUL6e6vLEFbgdHncxpGG7fg5Wk9uwERiEN4C0KHm7TQ7XVpiDp5PSVTCtd65wNlqWPhtAseahhX9TYdyjWnkofEtKsRlxwOJKoe.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/d/J/QJ/WDTiiJ5BFpXHxxWVbKiezz8l5z7KTfdrrFq73OnwaFnEfGfubNLj7AOVea2wAJ5bfpK5l8Ccnj84PvJu9mdGQdr5jvXupsfG7sD2UfjxOvHeiscSTUT1xtBkx6XV.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/l/m/gb/pGfgXXPyIqxYcvTLZFHswvmGOhaUoA0Nugsry9SKvOceyMnkEjsfktONz1qwfV8PNmneEiV5cNhLsYe3Uy0up0vCzY7vWupRi1820gdvGYHjP3mEyqc5wPMnzqzu.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/3/2/w6/xuuuJ6kSqfaxMOprjGv5WGhb8SugjJdJALhD4RI3vNokgoDywL1qAwtpLAk15NmDGgGCcf8mvDTwFx2qxIYzEDAE9ELhidNUgcaH1NvuH5egLJm2KORVnZ5cVVeY.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/q/b/WG/dXzogBNrRXJAownzdpKf5A5OjR47yjkehm3aL7lMiW3XkDYgJIRw7LvspTZqL0dctBAc6Jir4ODY5AXavTIUqvyoSPwLj8YWmdtMTQ3yWxaowzc330tcKkj8QvFD.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/k/y/8W/tg7yz5Jhoig7FqmEfzjtiYaydvCX2Ynu7QUqAreX4lKs10nCQRV5wQdys6i2HxXZdrhzusTCwBnJuhFxKW7KhtPtQ71zBpLPbVcE3B2tbssH9goCthiKe3wprj2g.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/z/8/ch/XeR1jvcV07yOFoVJQhpJKybp0RT0AsSRmQFAapioj11XZ6slsicLxP6665GfH91UGWItQJb9kdhjwc5v2KyJWGd8my7kbTDyfovgQw5WnD5L3hhBnscaApfhYdan.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/P/9/2m/LrzYEwvLB6X1IrbbyTnoUDH2UOJwOgAQlDk3DwLNXvpuiKiOjxlWKfjVSHL0snMlyheyCmH80zC1VzKXjMDvuTUnJplD8C172BapCRmFIdEYTOmWdS6ra7Fm6ryA.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/J/6/NZ/SfBVDXMo65NdoYENo3slsJSEXhf3WTyRK62GJLzOFHTmBnerOOIAetBc25SXOlZrKa6gBqmr83C7qvEFxb9PA9kGmsBGtnRewzEYLbmYV9xCpiwm2YfA8IJBbIR0.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/x/n/8l/0ALp44y3YwlON4mXguNTkTljipJVB2te7k4WLQTFdWgdc86eT8ERzBljNbCj05AxVQi2AsObUL34kQq9H2THGLprUWWcejAI9Mwso9VzWtVrxP1NWokcm0jCyPiM.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/l/b/cC/Bb5eNt6FtK3TKOkhrh8v96hDgIkR3QBpKJDs1i5r6T3kfSTkNV7KX1xAUDcjOKwdIvAjFJhNKsxEMEDdqreC8cnVQJQyOLMwL2kAXvpLWv3XaTAgZ2kvAJR9tVcl.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/I/j/3D/WSQr1WnCR0gRhvkqapBJOQKgGkPQt2oI1aKKHYl07FcBzZeagM9KUTQWZg8JgoNAz84HIjsv84yzowsGD0EVvrXACPeeJIKZMbntG7TyyP8PThsoVsc9HQEH9x25.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/W/K/zz/YdDsOVGOfBI3l4QuLxuWkYWyKG16K2xCl2BgIgfoi9p5o90shfjKDHX37rhGMnwi5g7zNgXNoDA4py6ELYsIIv8hLKuoC1QZe892Z4Xj292ltLtV0ciJ8jErsGWX.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/T/C/PH/CZ6mVnQsQwkxA6CmkaNnTvCHdxl4SARYpnG8lSJYyOnBDcY2TuzlwQW6VYdlKaxo61znqWIlGtDmBniVwr9z4NU5a6rj8yInb4TYxQtri5MwbTjm9qaIFgHeVw9i.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/l/J/MK/wNoXtd2ejf3FgdkCbTjiuMNA23kkR7cVIgdSxA8RvtfBc93UombQORCFkJEKqdbO9ZNv8lFEYxB0hEAR4YzLGpDBH7WfvnXrM4wz2cZB6H8geFW2goy7jTGZHas4.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/0/s/y6/l6g8U3z69xksA7c4sLn7TgxNkDG80efjBetlqX21XsAVYWCrnT977KfBHwe6EXBpTWXjS0TDQtsx8FMF1Xnc57vCl0c2S7dbV4JMjPD76vDo6RoCHPFEIca9yQuQ.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/X/C/YR/qTUGffQ9XSIxfMieAFkjd9guKTwolAaVK4Qupb5vrWlNRlLyWxtyeKoLpfSPcRSAXclJX6PRQnaxxwjpga6GIEuavPGluYJDBgAcSTqdEY8tDo9Kex67kLCEyEQv.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/6/g/FF/80CweWMoOZkckK3ZX9vd7bUnvedhG3TnNGsRicPwf6EYI2M95HuqQHVqGKJqrUBKi3MyHMWqrddUEPQJECCn0JS8fPSGRnFoFhReHpC0zzLKOMUgz6SDSyBdOca3.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/P/9/0V/sAd4JQizztRrdtGH1R2iWlvxKUk6DpEuVgwav2IRAFASFXpwcmjqZwmIA7lWBJVnXexQPA4ddrm5VoMLTN4WjhHIakQtL2Nb20SCoPJwI1Z6qnGSJKfRrjJW2cc8.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/B/W/M2/SG9NtetVsxYBpDMrZsH4BgNjErCJMZ6z1YclOGgn55XHMXdFtylz6Hpe6z5nRPsN6tLNDAJ02mDBgh4LFBtBc4U2W48uB8nr5MOpHlTa3rjosBbngMu3uPboJitY.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/G/V/h9/wWLLFymfSrH7u9fxW73Rib2EhEs0OeS9PV0LE3Wu15kgdrUGHsnlpxhXL2Dxb1vecfJSEIlt3U1Hl6mW6GKvLtiha9ADWbQhjuu6j4JflwIRNrtmjMTkpbqtNt7x.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/J/2/eC/txuU1pyo6cS6u5hDpyREmAo8BJQyYyOSJKfa2slknaC7wj27mNKzLC61nUUSzfBPxAiInN9bUoB2RstCd7XR21umK4ryz92n66TgoTNijz3ZxEc0vpdzcWJhGUdB.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/Y/j/ep/iC4qqBULsn8dYO38DeIpRa8HFujh8EQUXUweXnhtC16DdDFcVKGNiB5KhXD3Cges13NWJO4QFYg5LPqKrwccL0KFwt298tX9hwiAGM83t2WoUFgdvcAbvj7J534s.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/l/d/nR/yuIiAZSQuJM1gxbonJ12Rn6jaIKaklKcBAKmQQsWmkcMvT1XR9iy5xUW60jxIHg4U7XUtxmlJfICaxOZZXqoTAEVLf2EUOWLiyKzjl5Kk4shgyGqcm6wetwRI6XH.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/f/H/y5/0wm55AhSxErKl2LNlB0cfvSdFE9xTnmOnJukmviFREG5LTsE0Gag18RE2RSnFPfKt6FOBvr8PpbfpuU7rEanfeuSG72rZ1CH7XOSJY3Jl5LQaxdUz0CrFypRcgyh.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/F/r/n8/QbUh96uZoX7eT5Loq6OF2esc0hzRQhKwU1nu6l7JAHrTeJweiEawcx5x3oypbw8yHwoBF5pjtsvNttpGGkHvkW69QtXlQFLjm8K1uCdqEGPBuOQ1VMkJW8A4rKVP.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/H/Z/Bb/a3MtKSxO8cCMZRf60BtJ48TLsmDugg70Tiy9zJIrR9YWQd6UArNWeJij9zWnXHn4UJ5pcMNLtjZj91RI6fbIGhooylI7T2DpfaVU3HppcrSDXDORZCPdGyjA4PES.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/s/X/dT/POT8gmd97NdtBbi9ZSvIFDIMYfy3iNyp7ecW2eFmcEHI4kDvVhmwBffzVVr70roDsYiECDGmGy9ggNTGDgE4qcEwOFpRxIpXk12Vmos9bpfGCAG7O2VtkJcqcUR1.png)
![Sample image from Fruit Recognition](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/Z/m/Wd/WQ2hCMGjYrbWTI7vZu8VBgCY9uKenjzkiBzSn3Jwr3WHAh0LO1LYLByelfhXcSCDmSNPnkFYO9uF9smtgEZ05XSQxDTxJTR1c692ZbOrpErsuvxDkL6OlpDpNKv9.png)
License #
Citation #
If you make use of the Fruit Recognition data, please cite the following reference:
@dataset{israr_hussain_2018_1310165,
author = {Israr Hussain, and
Qianhua He and
Zhuliang Chen and
Wei Xie},
title = {Fruit Recognition dataset},
month = jul,
year = 2018,
publisher = {Zenodo},
version = {V 1.0},
doi = {10.5281/zenodo.1310165},
url = {https://doi.org/10.5281/zenodo.1310165}
}
If you are happy with Dataset Ninja and use provided visualizations and tools in your work, please cite us:
@misc{ visualization-tools-for-fruit-recognition-dataset,
title = { Visualization Tools for Fruit Recognition Dataset },
type = { Computer Vision Tools },
author = { Dataset Ninja },
howpublished = { \url{ https://datasetninja.com/fruit-recognition } },
url = { https://datasetninja.com/fruit-recognition },
journal = { Dataset Ninja },
publisher = { Dataset Ninja },
year = { 2024 },
month = { sep },
note = { visited on 2024-09-08 },
}
Download #
Dataset Fruit Recognition can be downloaded in Supervisely format:
As an alternative, it can be downloaded with dataset-tools package:
pip install --upgrade dataset-tools
… using following python code:
import dataset_tools as dtools
dtools.download(dataset='Fruit Recognition', dst_dir='~/dataset-ninja/')
Make sure not to overlook the python code example available on the Supervisely Developer Portal. It will give you a clear idea of how to effortlessly work with the downloaded dataset.
The data in original format can be downloaded here.
Disclaimer #
Our gal from the legal dep told us we need to post this:
Dataset Ninja provides visualizations and statistics for some datasets that can be found online and can be downloaded by general audience. Dataset Ninja is not a dataset hosting platform and can only be used for informational purposes. The platform does not claim any rights for the original content, including images, videos, annotations and descriptions. Joint publishing is prohibited.
You take full responsibility when you use datasets presented at Dataset Ninja, as well as other information, including visualizations and statistics we provide. You are in charge of compliance with any dataset license and all other permissions. You are required to navigate datasets homepage and make sure that you can use it. In case of any questions, get in touch with us at hello@datasetninja.com.