基于彩色滤光片和直方图的水果识别系统

B. Sugandi, Rahmi Mahdaliza
{"title":"基于彩色滤光片和直方图的水果识别系统","authors":"B. Sugandi, Rahmi Mahdaliza","doi":"10.33096/ilkom.v13i2.822.140-147","DOIUrl":null,"url":null,"abstract":"Nowadays, many children and adults do not know the type or name of fruits, especially if the fruit is a rare one. In this paper, a system was developed that can recognize fruit names in real time using a camera as a visual sensor. The camera captured the image and processed using image processing. This paper proposed a method using HSL color filters, RGB histograms and shapes of fruit objects to detect and recognize fruits. The proposed method was divided into two processes, namely the training and testing processes. The training process was carried out to obtain a database of each fruit. The first process of training was object detection using an HSL color filter. The calculation of the RGB histogram was conducted on the HSL color filtered object. After that, the object's roundness was measured. Meanwhile, the testing process was done by looking for the similarity of the histogram data of the test object with the reference object by using the histogram distance equation. The similarity of the object was determined by the distance value of the histogram of the tested fruit with the referenced fruit. Similar objects would have histogram distances less than the threshold values. Tests were implemented in several types of fruit. The test results showed the system could recognize fruit names accurately. E-ISSN 2548-7779 ILKOM Jurnal Ilmiah Vol. 13, No. 2, August 2021, pp. 140-147 141 Sugandi & Mahdaliza (Fruit recognition system using color filters and histograms) presented in section 4. Conclusions and some suggestions for future improvement of the system were presented in section 5. Method In this article, an algorithm was developed to perform automatic and real time recognition of fruit names. The fruit image was detected using an HSL color filter. The detected fruit was calculated based on its RGB histogram and shape (roundness). The matching process was done by comparing the test image with the reference image. The complete steps of the algorithm procedure used in this article were described in Figure 1. A. Hue, Saturation and Luminance (HSL) Color Filters The HSL color filter was a color filter used to distinguish one part of an object's color from another. HSL color filters are widely used to distinguish objects, especially if the background conditions are changing due to the influence of light. Compared to the original Red, Green and Blue (RGB) colors, HSL colors are easier to use to distinguish one object from another [13] – [16]. The conversion of the original RGB color to HSL was formulated in equation (1) r = R 255 ; g = G 255 ; b = B 255 d = max( r, g, b) − min( r, g, b) L = max(R, G, B) +min(R, G, B) 2 (1)","PeriodicalId":33690,"journal":{"name":"Ilkom Jurnal Ilmiah","volume":" ","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2021-08-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Fruit recognition system using color filters and histograms\",\"authors\":\"B. Sugandi, Rahmi Mahdaliza\",\"doi\":\"10.33096/ilkom.v13i2.822.140-147\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Nowadays, many children and adults do not know the type or name of fruits, especially if the fruit is a rare one. In this paper, a system was developed that can recognize fruit names in real time using a camera as a visual sensor. The camera captured the image and processed using image processing. This paper proposed a method using HSL color filters, RGB histograms and shapes of fruit objects to detect and recognize fruits. The proposed method was divided into two processes, namely the training and testing processes. The training process was carried out to obtain a database of each fruit. The first process of training was object detection using an HSL color filter. The calculation of the RGB histogram was conducted on the HSL color filtered object. After that, the object's roundness was measured. Meanwhile, the testing process was done by looking for the similarity of the histogram data of the test object with the reference object by using the histogram distance equation. The similarity of the object was determined by the distance value of the histogram of the tested fruit with the referenced fruit. Similar objects would have histogram distances less than the threshold values. Tests were implemented in several types of fruit. The test results showed the system could recognize fruit names accurately. E-ISSN 2548-7779 ILKOM Jurnal Ilmiah Vol. 13, No. 2, August 2021, pp. 140-147 141 Sugandi & Mahdaliza (Fruit recognition system using color filters and histograms) presented in section 4. Conclusions and some suggestions for future improvement of the system were presented in section 5. Method In this article, an algorithm was developed to perform automatic and real time recognition of fruit names. The fruit image was detected using an HSL color filter. The detected fruit was calculated based on its RGB histogram and shape (roundness). The matching process was done by comparing the test image with the reference image. The complete steps of the algorithm procedure used in this article were described in Figure 1. A. Hue, Saturation and Luminance (HSL) Color Filters The HSL color filter was a color filter used to distinguish one part of an object's color from another. HSL color filters are widely used to distinguish objects, especially if the background conditions are changing due to the influence of light. Compared to the original Red, Green and Blue (RGB) colors, HSL colors are easier to use to distinguish one object from another [13] – [16]. The conversion of the original RGB color to HSL was formulated in equation (1) r = R 255 ; g = G 255 ; b = B 255 d = max( r, g, b) − min( r, g, b) L = max(R, G, B) +min(R, G, B) 2 (1)\",\"PeriodicalId\":33690,\"journal\":{\"name\":\"Ilkom Jurnal Ilmiah\",\"volume\":\" \",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2021-08-08\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Ilkom Jurnal Ilmiah\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.33096/ilkom.v13i2.822.140-147\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Ilkom Jurnal Ilmiah","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.33096/ilkom.v13i2.822.140-147","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

如今,许多儿童和成年人不知道水果的类型或名称,尤其是如果水果是罕见的。在本文中,开发了一个可以使用相机作为视觉传感器实时识别水果名称的系统。相机捕捉到图像并使用图像处理进行处理。本文提出了一种利用HSL滤色器、RGB直方图和水果物体形状来检测和识别水果的方法。所提出的方法分为两个过程,即训练和测试过程。培训过程是为了获得每种水果的数据库。训练的第一个过程是使用HSL滤色器进行物体检测。对HSL彩色滤波对象进行RGB直方图的计算。然后,测量物体的圆度。同时,通过使用直方图距离方程寻找测试对象的直方图数据与参考对象的相似性来完成测试过程。对象的相似性由测试水果与参考水果的直方图的距离值确定。类似对象的直方图距离将小于阈值。对几种水果进行了测试。测试结果表明,该系统能够准确识别水果名称。E-ISSN 2548-7779 ILKOM Jurnal Ilmiah第13卷第2期,2021年8月,第140-147页141 Sugandi和Mahdaliza(使用滤色器和直方图的水果识别系统),见第4节。第5节给出了结论和对未来系统改进的一些建议。方法本文开发了一种水果名称的自动实时识别算法。使用HSL彩色滤光片检测水果图像。检测到的水果是根据其RGB直方图和形状(圆度)计算的。匹配过程是通过将测试图像与参考图像进行比较来完成的。本文中使用的算法过程的完整步骤如图1所示。A.色调、饱和度和亮度滤色器HSL滤色器是一种用于区分对象颜色的一部分与另一部分的滤色器。HSL滤色器被广泛用于区分物体,特别是当背景条件由于光的影响而发生变化时。与原始的红、绿、蓝(RGB)颜色相比,HSL颜色更容易用于区分一个对象和另一个对象[13]-[16]。原始RGB颜色到HSL的转换公式化为方程(1)r=R255;g=g 255;b=b 255 d=最大(r,g,b)−最小(r,g,b)L=最大(r,g,b)+最小(r,g,b)2(1)
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Fruit recognition system using color filters and histograms
Nowadays, many children and adults do not know the type or name of fruits, especially if the fruit is a rare one. In this paper, a system was developed that can recognize fruit names in real time using a camera as a visual sensor. The camera captured the image and processed using image processing. This paper proposed a method using HSL color filters, RGB histograms and shapes of fruit objects to detect and recognize fruits. The proposed method was divided into two processes, namely the training and testing processes. The training process was carried out to obtain a database of each fruit. The first process of training was object detection using an HSL color filter. The calculation of the RGB histogram was conducted on the HSL color filtered object. After that, the object's roundness was measured. Meanwhile, the testing process was done by looking for the similarity of the histogram data of the test object with the reference object by using the histogram distance equation. The similarity of the object was determined by the distance value of the histogram of the tested fruit with the referenced fruit. Similar objects would have histogram distances less than the threshold values. Tests were implemented in several types of fruit. The test results showed the system could recognize fruit names accurately. E-ISSN 2548-7779 ILKOM Jurnal Ilmiah Vol. 13, No. 2, August 2021, pp. 140-147 141 Sugandi & Mahdaliza (Fruit recognition system using color filters and histograms) presented in section 4. Conclusions and some suggestions for future improvement of the system were presented in section 5. Method In this article, an algorithm was developed to perform automatic and real time recognition of fruit names. The fruit image was detected using an HSL color filter. The detected fruit was calculated based on its RGB histogram and shape (roundness). The matching process was done by comparing the test image with the reference image. The complete steps of the algorithm procedure used in this article were described in Figure 1. A. Hue, Saturation and Luminance (HSL) Color Filters The HSL color filter was a color filter used to distinguish one part of an object's color from another. HSL color filters are widely used to distinguish objects, especially if the background conditions are changing due to the influence of light. Compared to the original Red, Green and Blue (RGB) colors, HSL colors are easier to use to distinguish one object from another [13] – [16]. The conversion of the original RGB color to HSL was formulated in equation (1) r = R 255 ; g = G 255 ; b = B 255 d = max( r, g, b) − min( r, g, b) L = max(R, G, B) +min(R, G, B) 2 (1)
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
审稿时长
4 weeks
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信