Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Passing Capture reference

$
0
0

Hi,

I am trying to pass a Capture reference. This somehow always returns false even thought camera is available.

boolean readCamera() {

//The variable cam is a Capture function and is global.

  if (!cam.available()) {
    return false;
  }

  cam.read();
  return true;
}

Can someone give me some pointers please.

Thanks

S


Viewing all articles
Browse latest Browse all 2896

Trending Articles