The OpenIMAJ difference-of-Gaussian/SIFT implementation is quite fast. To illustrate this, we have created two demos that illustrate SIFT extraction and matching (with homography fitting) in near real-time using a webcam as an input.
If you want to try these demos yourself you'll currently need to be on a Mac, Windows or Linux machine and have a webcam (supported by Quicktime on the mac, DirectShow on Windows or video for linux on linux). You'll also need a version of Java greater than 1.6.
An assembled JAR with all the required dependencies can downloaded here. To run the first demo, open a command prompt and navigate to the directory where you downloaded the JAR, and then run:
java -Xmx1G -cp VideoSIFT.jar org.openimaj.demos.video.videosift.VideoSIFT
The second demo can be run with:
java -Xmx1G -cp VideoSIFT.jar org.openimaj.demos.video.videosift.VideoKLTSIFT
Both demos operate in the same way; once loaded they display a live video picture. Hold the object you wish to track in front of the camera and press the spacebar to pause the video. You can then click on the video window to select the outline of the object you wish to track. Once the object is outlined, press the "c" key to capture the model, and then press the spacebar to resume the video. The object should then be tracked as you move it around.
The sourcecode for the demos is available in the subversion repository in the /trunk/demos/VideoSIFT
maven project.
Anonymous
Hi there, I think this happens when your webcam isn't attached or properly installed. We have had previous success with this version of ubuntu as it comes with video4linux.
What webcam do you have?