PenTracker

Overview

PenTracker is a Computer Vision model that a team of us in SST developed in 2023 to track and predict the movement of a pen on a surface.

The model uses a laptop webcam to identify the pen in the webcam's view using Haar Cascades. Once the pen is identified in frame, the model is able to know its exact relative position to the camera. This allowed the model to be used as in input source to the device.

The model was developed using Python and OpenCV.

Training

The model was trained using a dataset of images of a pen on a surface. The images were taken from various angles and distances to ensure that the model was able to identify the pen in any position.

Once the images were taken, they were labelled as Positive or Negative, to indicate if the pen was in frame or not. The Positive set of images needed an extra set of highlighting the exact positioning of the pen in the frame. This was a highly tedious process as it required a lot of manual work.

Usage

As an experimental input source, it does not have full software support, however, if you wish to try, you may obtain the source code from the Github repository to try this out.

Improvements