Extracting images out of OpenCV- strange results.

edited October 2015 in Questions about Code

Hi,

I'm trying to process images using OpenCV. I'm getting video in (GoPro->Blackmagic Intensity->Black Syphon->Processing with Syphon library). What can I use to display the video stream in Processing?

This is the code I have at the moment:

public void draw() {    
  if (client.newFrame()) {
    canvas = client.getGraphics(canvas);

    opencv.loadImage(canvas);

    opencv.blur(5,5);
    PImage newframe = opencv.getSnapshot();
    //println(opencv.getSize());
    image(newframe,0,0, width, height);
  }  
}

If I set the last line to image(canvas,0,0,width,height) I get the unprocessed output of the camera. That works fine. But I want to get the camera processed by OpenCV (in this case, with the blur applied).

This is an image of the result of: Screen Shot 2015-10-01 at 1.43.18 pm

Thanks,

jford.

Tagged:
Sign In or Register to comment.