How can I use Kinect as a normal webcam?

Hello, I am a processing beginner and tried to run this example below:


Capture cam;

void setup() {
  size(640, 480);

  String[] cameras = Capture.list();

  if (cameras.length == 0) {
    println("There are no cameras available for capture.");
  } else {
    println("Available cameras:");
    for (int i = 0; i < cameras.length; i++) {

    // The camera can be initialized directly using an 
    // element from the array returned by list():
    cam = new Capture(this, cameras[0]);

void draw() {
  if (cam.available() == true) {;
  image(cam, 0, 0);
  // The following does the same, and is faster when just drawing the image
  // without any additional resizing, transformations, or tint.
  //set(0, 0, cam);

However, I got an error message that says there is no capture device detected. I have my Kinect on PC, but it seems like Processing does not recognize Kinect as an webcam.
How can I make it recognize Kinect as webcam?


Sign In or Register to comment.