Download of lkdemo.cpp (lkdemo.cpp ( external link: SF.net): 13,103 bytes) will begin shortly. If not so, click link on the left.

File Information

File Size
13,103 bytes
MD5
9ea85e083d477bdc29c9e6cff65a3ce2

Projeto Descrição

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.