Skip to content
Snippets Groups Projects
Asher's avatar
hanlinm2 authored
3e53e304
History
Name Last commit Last update
img
README.md
pen_tracking.py

Digital Notes With Any Pen on Any Surface

Watch the video demo:

Video Demo

Requirements

OpenCV
numpy

To run the program:

python3 pen_tracking.py

Instructions

  1. Use green masking tape on the corners of an A4 paper
tape taped paper
  1. Tape the tip of a pen or pencil with the same masking tape.
  2. Run python3 pen_tracking.py
  3. Calibrate. Close the laptop lid so that the four corners of the paper is in view and have coordinates attached to them. Press Q to confirm calibration and move the paper away.
paper with corner coordinates on camera
  1. Now you can start drawing and taking notes. Press Q to quit. Press C to clear canvas.
white background with writing on it in blue Drawing with taped pen on table from the camera view