We are about to switch to a new forum software. Until then we have removed the registration on this forum.
import gab.opencv.*;
import processing.video.*;
Movie video;
OpenCV opencv;
void setup() {
size(800, 800);
video = new Movie(this, "a.mp4");
opencv = new OpenCV(this, 800, 800);
opencv.startBackgroundSubtraction(5, 3, 0.5);
video.loop();
video.play();
}
void draw() {
image(video, 0, 0);
opencv.loadImage(video);
opencv.updateBackground();
opencv.dilate();
opencv.erode();
noFill();
stroke(255, 0, 0);
strokeWeight(3);
for (Contour contour : opencv.findContours()) {
contour.draw();
}
}
void movieEvent(Movie m) {
m.read();
}
Answers
probably a problem with the actual video.
have you tried it with others? try some of the example videos like transit.mkv
yes i have tried with others but it is still showing same error