An Approach for Air Drawing Using Background Subtraction and Contour Extraction

Fuente: arXiv
Saved in:
Bibliographic Details
Main Author: Acharya, Ramkrishna
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929739579523072
author Acharya, Ramkrishna
author_facet Acharya, Ramkrishna
contents In this paper, we propose a novel approach for air drawing that uses image processing techniques to draw on the screen by moving fingers in the air. This approach benefits a wide range of applications such as sign language, in-air drawing, and 'writing' in the air as a new way of input. The approach starts with preparing ROI (Region of Interest) background images by taking a running average in initial camera frames and later subtracting it from the live camera frames to get a binary mask image. We calculate the pointer's position as the top of the contour on the binary image. When drawing a circle on the canvas in that position, it simulates the drawing. Furthermore, we combine the pre-trained Tesseract model for OCR purposes. To address the false contours, we perform hand detection based on the haar cascade before performing the background subtraction. In an experimental setup, we achieved a latency of only 100ms in air drawing. The code used to this research are available in GitHub as https://github.com/q-viper/Contour-Based-Writing
format Preprint
id arxiv_https___arxiv_org_abs_2503_01497
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle An Approach for Air Drawing Using Background Subtraction and Contour Extraction
Acharya, Ramkrishna
Computer Vision and Pattern Recognition
Machine Learning
In this paper, we propose a novel approach for air drawing that uses image processing techniques to draw on the screen by moving fingers in the air. This approach benefits a wide range of applications such as sign language, in-air drawing, and 'writing' in the air as a new way of input. The approach starts with preparing ROI (Region of Interest) background images by taking a running average in initial camera frames and later subtracting it from the live camera frames to get a binary mask image. We calculate the pointer's position as the top of the contour on the binary image. When drawing a circle on the canvas in that position, it simulates the drawing. Furthermore, we combine the pre-trained Tesseract model for OCR purposes. To address the false contours, we perform hand detection based on the haar cascade before performing the background subtraction. In an experimental setup, we achieved a latency of only 100ms in air drawing. The code used to this research are available in GitHub as https://github.com/q-viper/Contour-Based-Writing
title An Approach for Air Drawing Using Background Subtraction and Contour Extraction
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2503.01497