/** * OpenCV demo application in Java. * * Uses the CvBase class (CvBase.java) * * This is just a translation of the C++ example in cvdemo.cpp, cvbase.cpp, * and cvbase.hpp. * * Opens a display window and reads input frames from either a camera or video * file. Processes each frame (no operation by default) and displays the * results. * * Provides basic functions to pause/unpause the live input, emit debugging * information for selected frames, and to save both raw capture and processed * images. * * TBD build instructions * * Tested on: * * ubuntu 10.04 + javacv-20101104 + opencv 2.1.0 src (built without SSE) + * libv4l-dev * * @author vona **/ class CvDemo { /** Program entry point. **/ public static void main(String argv[]) { CvBase b = new CvBase("cvdemo"); System.out.println("ate "+b.init(argv.length, argv)+" args"); b.mainLoop(); b.release(); } }