Track, in realtime, horizontal and vertical displacement of object in webcam. Log timestamp, x and y to comma-separated value (.csv) file importable to spreadsheet.

Uses Lukas-Kanade algorithm and based on lkdemo.cpp in OpenCV, stripped down to track single point in high contrast against a uniform background. Based on the BSD licensed OpenCV, TrackXY also has BSD-style license.

I am a bit embarrassed to be posting this here, because it's such a rudimentary program, but I couldn't find any other ready-made program that would track an object in real-time from webcam, other than an $80 special-purpose program used in the original (torsion balance) experiment we were replicating. I released TrackXY to reduce barriers to entry to science.

Planned features include versions for each platform, a GUI, comprehensive data management, and data analysis tools.

To analyze motion in /recorded/ video (not real-time), you may prefer something like PhysMo, also a SourceForge project.

Project Samples

Project Activity

See All Activity >

License

BSD License

Follow TrackXY

TrackXY Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of TrackXY!

Additional Project Details

Operating Systems

Windows

Intended Audience

Science/Research

User Interface

Console/Terminal

Programming Language

C++

Related Categories

C++ Physics Software, C++ Realtime Processing Software, C++ Test and Measurement Software, C++ Data Analytics Tool

Registered

2012-10-17