Abstract
Colour detection is the act of identifying the name of any colour. Color detection is required for object recognition, and it is also utilized in a variety of picture editing and sketching programs. Machine Learning (ML) has been proof useful in this area, and lot of researches have been done. This has been utilized in fields of neural networks and digital image processing recently. RGB images multiple colour recognition are powerful tools for various images for images and sketches. There have been several suggested regression models that use crop image characteristics and image indices, however, they have not been properly tested for accuracy and adaptation effectiveness for multiple colors. Therefore, this paper proposes K- Nearest Neighbour (KNN) classifier for efficient colour detection of RGB images. The KNN algorithm is a prominent ML technique and neural network classification technique. The KNN classifier is utilized to segregate distinct colors in the RGB images. The paper utilized colour histogram for feature extraction to find the features that most relevant pattern that define certain colours. The feature extraction further improved the efficacy and accuracy of KNN classifier’s in the classification of RGB images.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Gonzalez, R.C., Woods, R.E., Eddins, S.L.: Morphological reconstruction. Digital image processing using MATLAB, MathWorks (2010)
Praveen, P.: Color detection using OpenCV Python. Medium, 17 July 2020. https://medium.com/programming-fever/color-detection-using-opencv-python-6eec8dcde8c7. Accessed 23 Nov 2021
Folorunso, S.O., Awotunde, J.B., Adeniyi, E.A., Abiodun, K.M., Ayo, F.E.: Heart disease classification using machine learning models. In: Misra, S., Oluranti, J., Damaševičius, R., Maskeliunas, R. (eds.) ICIIA 2021. CCIS, vol. 1547, pp. 35–49. Springer, Cham (2022). https://doi.org/10.1007/978-3-030-95630-1_3
Awotunde, J.B., Abiodun, K.M., Adeniyi, E.A., Folorunso, S.O., Jimoh, R.G.: A deep learning-based intrusion detection technique for a secured IoMT system. In: Misra, S., Oluranti, J., Damaševičius, R., Maskeliunas, R. (eds.) ICIIA 2021. CCIS, vol. 1547, pp. 50–62. Springer, Cham (2022). https://doi.org/10.1007/978-3-030-95630-1_4
Oladipo, I.D., AbdulRaheem, M., Awotunde, J.B., Bhoi, A.K., Adeniyi, E.A., Abiodun, M.K.: Machine learning and deep learning algorithms for smart cities: a start-of-the-art review. In: Nath Sur, S., Balas, V.E., Bhoi, A.K., Nayyar, A. (eds.) IoT and IoE Driven Smart Cities. EAI/Springer Innovations in Communication and Computing, pp. 143–162. Springer, Cham (2022). https://doi.org/10.1007/978-3-030-82715-1_7
Awotunde, J.B., Misra, S.: Feature extraction and artificial intelligence-based intrusion detection model for a secure internet of things networks. In: Misra, S., Arumugam, C. (eds.) Illumination of Artificial Intelligence in Cybersecurity and Forensics, vol. 109, pp. 21–44. Springer, Cham (2022). https://doi.org/10.1007/978-3-030-93453-8_2
Kar, S.K., Mohanty, M.N.: Statistical approach for color image detection. In: 2013 International Conference on Computer Communication and Informatics, pp. 1–4. IEEE, January 2013
Swain, M.J., Ballard, D.H.: Color indexing. Int. J. Comput. Vision 7(1), 11–32 (1991)
Sarraf, S.: Hair color classification in face recognition using machine learning algorithms. Am. Acad. Sci. Res. J. Eng. Technol. Sci. 26(3), 317–334 (2016)
Yousif, M.A., Awouda, A.A.: Design and implementation of colour detection technique using fuzzy logic. Int. J. Soc. Sci. Technol. (IJSSTR) 4(5), 46–58 (2019). ISSN: 2415-6566. http://www.ijsstr.com/data/frontImages/5._October_2019.pdf
Awotunde, J.B., et al.: An improved machine learnings diagnosis technique for COVID-19 pandemic using chest X-ray images. In: Florez, H., Pollo-Cattaneo, M.F. (eds.) ICAI 2021. CCIS, vol. 1455, pp. 319–330. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-89654-6_23
Koehrsen, W.: Overfitting vs. Underfitting: A Complete Example. Medium (2021). https://towardsdatascience.com/overfitting-vs-underfitting-a-complete-example-d05dd7e19765. Accessed 23 Nov 2021
Kayhan, N., Fekri-Ershad, S.: Content based image retrieval based on weighted fusion of texture and color features derived from modified local binary patterns and local neighborhood difference patterns. Multimedia Tools Appl. 80(21–23), 32763–32790 (2021). https://doi.org/10.1007/s11042-021-11217-z
Pooja, K.S., Shreya, R.N., Sree Lakshmi, M., Yashika, B.C., Rekha, B.N.: Color recognition using K-nearest neighbors machine learning classification algorithm trained with color histogram features. Int. Res. J. Eng. Technol. (IRJET) 8(1), 1935–1937 (2017)
Raguraman, P., Meghana, A., Navya, Y., Karishma, S., Iswarya, S.: Color detection of RGB images using Python and OpenCV. Int. J. Sci. Res. Comput. Sci. Eng. Inf. Technol., 109–112 (2021). https://doi.org/10.32628/cseit217119
Yen, C.-H., Huang, P.-Y., Yang, P.-K.: An intelligent model for facial skin colour detection. Int. J. Opt. 2020, 1–8 (2020)
Bayraktar, R., Akgul, B.A., Bayram, K.S.: Colour recognition using colour histogram feature extraction and K-nearest neighbour classifier. New Trends Issues Proc. Adv. Pure Appl. Sci. (12), 08–14 (2020). https://doi.org/10.18844/gjpaas.v0i12.4981
Shu, J., Lei, J., Gao, Q., Zhang, Q.: Combing colour detection and neural networks for gland detection. In: Proceedings of the 2nd International Conference On Artificial Intelligence And Pattern Recognition - AIPR 2019 (2019). https://doi.org/10.1145/3357254.3357280
Maniyath, S., Hebbar, R., Akshatha, K.N., Architha, L.S., Subramoniam, S.: Soil color detection using KNN classifier. In: 2018 International Conference on Design Innovations for 3Cs Compute Communicate Control (ICDI3C) (2018). https://doi.org/10.1109/icdi3c.2018.00019
Sudharshan Duth, P., Mary Deepa, M.: Color detection in RGB-modeled images using MAT LAB. Int. J. Eng. Technol. 7(2.31), 29 (2018). https://doi.org/10.14419/ijet.v7i2.31.13391
Liu, C., Wang, L.: Multi-scale fuzzy color recognition and segmentation of color image. In: 2016 12th International Conference on Natural Computation, Fuzzy Systems and Knowledge Discovery (ICNC-FSKD) (2016). https://doi.org/10.1109/fskd.2016.7603312
Eyupoglu, C.: Implementation of color face recognition using PCA and k-NN classifier. In: 2016 IEEE NW Russia Young Researchers in Electrical and Electronic Engineering Conference (EIConRusNW) (2016). https://doi.org/10.1109/eiconrusnw.2016.7448153
Arumugadevi, S., Seenivasagam, V.: Color image segmentation using feedforward neural networks with FCM. Int. J. Autom. Comput. 13(5), 491–500 (2016). https://doi.org/10.1007/s11633-016-0975-5
Dhanachandra, N., Manglem, K., Chanu, Y.J.: Image segmentation using K-means clustering algorithm and subtractive clustering algorithm. Procedia Comput. Sci. 54, 764–771 (2015)
Rachmawati, E., Khodra, M.L., Supriana, I.: Histogram based color pattern identification of multiclass fruit using feature selection. In: 2015 International Conference on Electrical Engineering and Informatics (ICEEI), pp. 43–48. IEEE, August 2015
Siddesha, S., Niranjan, S., Manjunath Aradhya, V.: Color features and KNN in classification of raw arecanut images. In: 2018 Second International Conference on Green Computing and Internet of Things (ICGCIOT) (2018). https://doi.org/10.1109/icgciot.2018.8753075
Navada, B.R., Santhosh, K.V., Prajwal, S., Shetty, H.B.: An image processing technique for color detection and distinguish patterns with similar color: an aid for color blind people. In: International Conference on Circuits, Communication, Control and Computing, MSRIT, Bangalore, India, pp. 333–336 (2014)
Senthamaraikannan, S.S., William, J.: Real time color recognition. Int. J. Innov. Res. Electr. Electron. Instrum. Control Eng. 2(3), 1251–1253 (2014)
Velosa, F., Florez, H.: Edge solution with machine learning and open data to interpret signs for people with visual disability. In: ICAI Workshops, pp. 15–26. 2020
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Awotunde, J.B., Misra, S., Obagwu, D., Florez, H. (2022). Multiple Colour Detection of RGB Images Using Machine Learning Algorithm. In: Florez, H., Gomez, H. (eds) Applied Informatics. ICAI 2022. Communications in Computer and Information Science, vol 1643. Springer, Cham. https://doi.org/10.1007/978-3-031-19647-8_5
Download citation
DOI: https://doi.org/10.1007/978-3-031-19647-8_5
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-19646-1
Online ISBN: 978-3-031-19647-8
eBook Packages: Computer ScienceComputer Science (R0)