Skip to content

kougaku/jcvcapture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JcvCapture

Video Capture Library for Processing based on JavaCV

How to Use

import jcvcapture.*;

JcvCapture cam;

void setup() {
  size(640, 480);
  
  cam = new JcvCapture(this, 640, 480);  // 640x480, 0th device, use VideoInput capture

  // cam = new JcvCapture(this, 640, 480, 0);                        // 640x480, 0th device, use VideoInput capture
  // cam = new JcvCapture(this, 640, 480, 0, JcvCapture.VIDEOINPUT); // 640x480, 0th device, use VideoInput capture
  // cam = new JcvCapture(this, 640, 480, 0, JcvCapture.OPENCV);     // 640x480, 0th device, use OpenCV capture (Startup is slow)
  
  cam.frameRate(30);
  cam.start();
}

void draw() {
  cam.read();
  image(cam, 0, 0);
}

API

start()
stop()
read()
frameRate()

Note: available() and captureEvent() callback do not exist.

About

Video Capture Library for Processing based on JavaCV

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages