cvtsh248 / Camera-Based-Stylus

A python 2 program that tracks a stylus with a slightly deep blue tip. Based on the motion of the tip, the mouse on the computer's screen will move.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Camera-Based-Stylus

A work in progress python 2 program that tracks a stylus with a slightly deep blue tip using opencv. Based on the motion of the tip, the mouse on the computer's screen will move.

Features

  • Tracking of the stylus is fairly accurate
  • The ability to right click with a short tap.

Setup

Place the camera about 19 - 23 cm above a light surface (ideally plain), facing downwards.

Run the program

python stylus.py

Dependencies

  • opencv
  • PyAutoGUI
  • numpy

About

A python 2 program that tracks a stylus with a slightly deep blue tip. Based on the motion of the tip, the mouse on the computer's screen will move.

License:MIT License


Languages

Language:Python 100.0%