could not load video

edited February 2017 in Kinect
        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

Sign In or Register to comment.