Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 784 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 784 Bytes

OpenCV-Laser-Tracker

Track a laser pointer with OpenCV in Python using a USB or laptop webcam and output its coordinates.

Optionally send laser pointer coordinates via serial to Arduino, to control servos etc.

Current version:

  • Python 2.7.5(Use installer package)
  • OpenCV 2.4.5(Paste cv2.pyd into Python27\Lib\site-packages\)
  • NumPy 1.6.1(Use installer package for Python 2.7)
  • pySerial 2.7(Use installer package for Python 2.7)- Optional

Quick Start

python track_laser.py

Use with Arduino

  • Remove # from lines 9 and 179 in track_laser.py
  • Replace COM16 with your Arduino device port
  • Upload ArduinoParser.ino sketch to Arduino and keep cable connected to computer
  • Run python track_laser.py