Unable to show video image using OpenCV

hi forum i am trying to display image video and want to pass it to opencv for image processing but the image wont show up. thabk you for help

import processing.video.*;
import java.awt.*;
import gab.opencv.*;

  OpenCV opencv;
  Movie test;

    void setup() {
      size(680, 480);
      background(0);
      test = new Movie(this, "vid1.mp4");
      test.loop();
      opencv = new OpenCV(this, test.width, test.height);
    
    }
 
    void draw() {
      opencv.loadImage(test);
      //image(test, 0, 0, width, height);
      image(opencv.getOutput(), 0, 0);
    }
    
  void movieEvent(Movie m) {
    m.read();
  }

Hello @doni,

Related:

:)