Ask Your Question

Revision history [back]

Why do you copy all of Marios Code if you are only interested in the capture? It's hard to find your problem if you hide it deep within irrelevant code.

The line you have to look at is this one:

Capture cam = new Capture(this, 404, 304, 15);

Just open a file as described here: http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture-videocapture