Skip to content

Control your cursor so it points wherever you are pointing your gun!

Notifications You must be signed in to change notification settings

zain-noman/OpenCV-ArUco-LightGun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCV-ArUco-LightGun

Control your cursor so it points wherever you are pointing your gun! The algorithm works by first detecting the position and orintation of the aruco marker. Then it calculates where the forward vector of the aruco gun intersects with the screen which is treated as a plane. An IIR filter is then further added to smooth the cursor motion. This implementation has the advantage that it responds to tilt changes as well as position changes as compared to other methods that can not be used for lightguns. A camera calibration script is also provided. The camera calibration script can be used to set the cameraMatrix and DistortionCoeffs by looking for a checkerboard pattern.

About

Control your cursor so it points wherever you are pointing your gun!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages