Immersive Virtual Painting: Pushing Boundaries in Real-Time Computer Vision using OpenCV with C++
Satyam Mishra, Vu Duy Trung, Le Anh Ngoc, Phung Thao Vi, Sundaram Mishra
DOI: http://dx.doi.org/10.15439/2023R58
Citation: Proceedings of the 2023 Eighth International Conference on Research in Intelligent Computing in Engineering, Pradeep Kumar, Manuel Cardona, Vijender Kumar Solanki, Tran Duc Tan, Abdul Wahid (eds). ACSIS, Vol. 38, pages 41–50 (2023)
Abstract. This paper presents an innovative approach for immersive virtual painting using real-time computer vision techniques. A meticulously crafted color detection algorithm implemented in C++ and OpenCV achieves up to 97.4\% accuracy in identifying specified hues from live video feeds. The detected colors are seamlessly translated into vibrant brush strokes rendered on a digital canvas in real-time. The algorithms exhibit remarkable speed, analyzing each frame within 15ms, enabling ultra-low latency painting interactions. Optimization strategies involving parallel processing and code optimizations provide further performance gains. Comparative analysis reveals 3-4x faster execution using C++ over Python for color detection. The platform delivers an intuitive, natural, and uninterrupted painting experience, as validated through user studies. By automating color detection and digital rendering, this research transforms virtual painting from a passive activity to an immersive form of human-computer co-creativity. The fusion of computer vision, rendering algorithms, and optimization techniques establishes new frontiers in interactive digital art platforms and reshapes human-computer collaboration. Highlights: This research achieves exceptional accuracy in real-time color detection, with up to 97.4\% precision in identifying specified hues across thousands of video frames. The integrated system enables seamless user interaction for natural virtual painting expressions, eliminating disruptive color selection interruptions. Comparative analysis reveals significant 3-4x performance gains by implementing the algorithms in C++ instead of Python, underscoring the efficiency benefits of C++ for real-time computer vision applications. User studies validate the immersive experience delivered by the platform, with users highlighting the responsiveness, precision, and intuitive interaction unmatched by traditional virtual painting tools. The proposed techniques establish a new paradigm in real-time computer vision, pushing the boundaries of virtual creativity platforms and reshaping human-computer collaboration in the arts.
References
- E. Peruzzo et al., “Interactive Neural Painting,” Computer Vision and Image Understanding, vol. 235, p. 103778, Oct. 2023, http://dx.doi.org/10.1016/j.cviu.2023.103778.
- “Interactive painting wall,” Dec. 2020, Accessed: Oct. 04, 2023. [Online]. Available: https://typeset.io/papers/interactive-painting-wall-b8axvzlew8
- J. Singh, L. Zheng, C. Smith, and J. Echevarria, “Paint2Pix: Interactive Painting based Progressive Image Synthesis and Editing.” arXiv, Aug. 17, 2022. http://dx.doi.org/10.48550/arXiv.2208.08092.
- S. A.-K. Hussain, “Intelligent Image Processing System Based on Virtual Painting,” Journal La Multiapp, vol. 3, no. 6, Art. no. 6, 2022, http://dx.doi.org/10.37899/journallamultiapp.v3i6.754.
- “Real-time displaying method of detection process of azotometer color determination method,” Dec. 2014, Accessed: Oct. 04, 2023. [Online]. Available: https://typeset.io/papers/real-time-displaying-method-of-detection-process-of-vvmggpa702
- A. Albajes-Eizagirre, A. Soria-Frisch, and V. Lazcano, “Real-time color tone detection on video based on the fuzzy integral,” in International Conference on Fuzzy Systems, Jul. 2010, pp. 1–7. http://dx.doi.org/10.1109/FUZZY.2010.5584123.
- M. E. Moumene, K. Benkedadra, and F. Z. Berras, “Real Time Skin Color Detection Based on Adaptive HSV Thresholding,” Journal of Mobile Multimedia, pp. 1617–1632, Jul. 2022, http://dx.doi.org/10.13052/jmm1550-4646.1867.
- M. S. Prathima, S. P. Milena, and P. Rm, “Imposter detection with canvas and WebGL using Machine learning.,” in 2023 2nd International Conference for Innovation in Technology (INOCON), Mar. 2023, pp. 1–6. http://dx.doi.org/10.1109/INOCON57975.2023.10101070.
- “Sensors | Free Full-Text | Real-Time Detection and Measurement of Eye Features from Color Images.” Accessed: Oct. 04, 2023. [Online]. Available: https://www.mdpi.com/1424-8220/16/7/1105
- V.-D. Ly and H.-S. Vu, “A Flexible Approach for Automatic Door Lock Using Face Recognition,” in Annals of Computer Science and Information Systems, 2022, pp. 157–163. Accessed: Nov. 05, 2023. [Online]. Available: https://annals-csis.org/proceedings/rice2022/drp/18.html
- S. Mishra and L. T. Thanh, “SATMeas - Object Detection and Measurement: Canny Edge Detection Algorithm,” in Artificial Intelligence and Mobile Services – AIMS 2022, X. Pan, T. Jin, and L.-J. Zhang, Eds., in Lecture Notes in Computer Science. Cham: Springer International Publishing, 2022, pp. 91–101. http://dx.doi.org/10.1007/978-3-031-23504-7_7.
- M. Ponika, K. Jahnavi, P. S. V. S. Sridhar, and K. Veena, “Developing a YOLO based Object Detection Application using OpenCV,” in 2023 7th International Conference on Computing Methodologies and Communication (ICCMC), Feb. 2023, pp. 662–668. http://dx.doi.org/10.1109/ICCMC56507.2023.10084075.
- S. Mishra, C. S. Minh, H. Thi Chuc, T. V. Long, and T. T. Nguyen, “Automated Robot (Car) using Artificial Intelligence,” in 2021 International Seminar on Machine Learning, Optimization, and Data Science (ISMODE), Jan. 2022, pp. 319–324. http://dx.doi.org/10.1109/ISMODE53584.2022.9743130.
- “Computer Vision Application Analysis based on Object Detection,” IJSREM. Accessed: Oct. 04, 2023. [Online]. Available: https://ijsrem.com/download/computer-vision-application-analysis-based-on-object-detection/
- S. Mishra, N. T. B. Thuy, and C.-D. Truong, “Integrating State-of-the-Art Face Recognition and Anti-Spoofing Techniques into Enterprise Information Systems,” in Artificial Intelligence and Mobile Services – AIMS 2023, Y. Yang, X. Wang, and L.-J. Zhang, Eds., in Lecture Notes in Computer Science. Cham: Springer Nature Switzerland, 2023, pp. 71–84. http://dx.doi.org/10.1007/978-3-031-45140-9_7.
- L. Bai, T. Zhao, and X. Xiu, “Exploration of computer vision and image processing technology based on OpenCV,” in 2022 International Seminar on Computer Science and Engineering Technology (SCSET), Jan. 2022, pp. 145–147. http://dx.doi.org/10.1109/SCSET55041.2022.00042.
- Kunal Patel, Akash Patil, Abhiraj Shourya, Rajesh Kumar Malviya, and Prof. Maghana Solanki, “Deep Learning for Computer Vision: A Brief Overview of YOLO,” IJARSCT, pp. 403–408, May 2022, http://dx.doi.org/10.48175/IJARSCT-3943.
- A. Naumann, F. Hertlein, L. Dörr, S. Thoma, and K. Furmans, “Literature Review: Computer Vision Applications in Transportation Logistics and Warehousing.” arXiv, Jun. 07, 2023. http://dx.doi.org/10.48550/arXiv.2304.06009.
- Z. Jiang and J. I. Messner, “Computer Vision Applications In Construction And Asset Management Phases: A Literature Review,” Journal of Information Technology in Construction (ITcon), vol. 28, no. 9, pp. 176–199, Apr. 2023, http://dx.doi.org/10.36680/j.itcon.2023.009.
- A. Khan, A. Laghari, and S. Awan, “Machine Learning in Computer Vision: A Review,” EAI Endorsed Transactions on Scalable Information Systems, vol. 8, no. 32, Apr. 2021, Accessed: Oct. 04, 2023. [Online]. Available: https://eudl.eu/doi/10.4108/eai.21-4-2021.169418
- H.-S. Vu and V.-H. Nguyen, “Safety-Assisted Driving Technology Based on Artificial Intelligence and Machine Learning for Moving Vehicles in Vietnam,” in Annals of Computer Science and Information Systems, 2022, pp. 279–284. Accessed: Nov. 05, 2023. [Online]. Available: https://annals-csis.org/proceedings/rice2022/drp/05.html
- Shreya M. Shelke, Indrayani S. Pathak, Aniket P. Sangai, Dipali V. Lunge, Kalyani A. Shahale, and Harsha R. Vyawahare, “A Review Paper on Computer Vision,” IJARSCT, pp. 673–677, Mar. 2023, http://dx.doi.org/10.48175/IJARSCT-8901.
- D. A. Taban, A. A. Al-Zuky, A. H. AlSaleh, and H. J. Mohamad, “Different shape and color targets detection using auto indexing images in computer vision system,” IOP Conf. Ser.: Mater. Sci. Eng., vol. 518, no. 5, p. 052001, May 2019, http://dx.doi.org/10.1088/1757-899X/518/5/052001.
- “Systems and methods for color recognition in computer vision systems,” Jul. 2014, Accessed: Oct. 04, 2023. [Online]. Available: https://typeset.io/papers/systems-and-methods-for-color-recognition-in-computer-vision-1ev6walrk4
- C. Dhule and T. Nagrare, “Computer Vision Based Human-Computer Interaction Using Color Detection Techniques,” in 2014 Fourth International Conference on Communication Systems and Network Technologies, Apr. 2014, pp. 934–938. http://dx.doi.org/10.1109/CSNT.2014.192.
- A. Shams-Nateri and E. Hasanlou, “8 - Computer vision techniques for measuring and demonstrating color of textile,” in Applications of Computer Vision in Fashion and Textiles, W. K. Wong, Ed., in The Textile Institute Book Series. , Woodhead Publishing, 2018, pp. 189–220. http://dx.doi.org/10.1016/B978-0-08-101217-8.00008-7.
- “Color in Computer Vision: Fundamentals and Applications,” Aug. 2012, Accessed: Oct. 04, 2023. [Online]. Available: https://typeset.io/papers/color-in-computer-vision-fundamentals-and-applications-2mcj19jtdt
- M. Fischer, C. Jähn, F. Meyer auf der Heide, and R. Petring, “Algorithm Engineering Aspects of Real-Time Rendering Algorithms,” in Algorithm Engineering: Selected Results and Surveys, L. Kliemann and P. Sanders, Eds., in Lecture Notes in Computer Science. , Cham: Springer International Publishing, 2016, pp. 226–244. http://dx.doi.org/10.1007/978-3-319-49487-6_7.
- B. S. Kim, S. H. Lee, and N. I. Cho, “Real-time panorama canvas of natural images,” IEEE Transactions on Consumer Electronics, vol. 57, no. 4, pp. 1961–1968, Nov. 2011, http://dx.doi.org/10.1109/TCE.2011.6131177.
- “[PDF] Scalable Algorithms for Realistic Real-time Rendering | Semantic Scholar.” Accessed: Oct. 04, 2023. [Online]. Available: https://www.semanticscholar.org/paper/Scalable-Algorithms-for-Realistic-Real-time-F%C3%BCtterling/6190ec44c6b350be854d644a4c2ed74e90e5eb56
- P. Yuan, M. Green, and R. W. H. Lau, “Dynamic image quality measurements of real-time rendering algorithms,” in Proceedings IEEE Virtual Reality (Cat. No. 99CB36316), Mar. 1999, pp. 83-. http://dx.doi.org/10.1109/VR.1999.756935.
- E. Eisemann, U. Assarsson, M. Schwarz, and M. Wimmer, “Shadow Algorithms for Real-time Rendering,” 2010, http://dx.doi.org/10.2312/egt.20101068.
- V. Rakesh, P. Chilukuri, P. Vaishnavi, P. Sreekaran, P. Sujala, and D. R. Krishna Yadav, “Real Time Object Recognition Using OpenCV and Numpy in Python,” in 2023 International Conference on Innovative Data Communication Technologies and Application (ICIDCA), Mar. 2023, pp. 421–426. http://dx.doi.org/10.1109/ICIDCA56705.2023.10099584.
- B. M U, H. Raghuram, and Mohana, “Real Time Object Distance and Dimension Measurement using Deep Learning and OpenCV,” in 2023 Third International Conference on Artificial Intelligence and Smart Energy (ICAIS), Feb. 2023, pp. 929–932. http://dx.doi.org/10.1109/ICAIS56108.2023.10073888.
- “Real-time Face Recognition System using Python and OpenCV,” IJSREM. Accessed: Oct. 04, 2023. [Online]. Available: https://ijsrem.com/download/real-time-face-recognition-system-using-python-and-opencv/
- Vishwarkma Institue of Technology, Pune, Maharashtra, India, P. Bailke, S. Divekar, and Vishwarkma Institue of Technology, Pune, Maharashtra, India, “REAL-TIME MOVING VEHICLE COUNTER SYSTEM USING OPENCV AND PYTHON,” IJEAST, vol. 6, no. 11, pp. 190–194, Mar. 2022, http://dx.doi.org/10.33564/IJEAST.2022.v06i11.036.
- D. Davis, D. Gupta, X. Vazacholil, D. Kayande, and D. Jadhav, “R-CTOS: Real-Time Clothes Try-on System Using OpenCV,” in 2022 2nd Asian Conference on Innovation in Technology (ASIANCON), Aug. 2022, pp. 1–4. http://dx.doi.org/10.1109/ASIANCON55314.2022.9909352.