Cannot find a class or type named "capture"
in
Contributed Library Questions
•
6 months ago
Hi,
I need help from you guys, I dont know why this is not working, I am noobie in programming, may you help me?
When I run this code, is giving me this mesages: "Cannot find a class or type named "capture""
This is the sorce:
import jp.nyatla.nyar4psg.*;
import processing.opengl.*;
import processing.video.*;
capture myCam;
NyARMultiBoard nya;
float i = 0;
void setup(){
size(640,400,P3D);
myCam = new Capture(this,width,height,30);
String[] patts = {"patt.hiro"};
double[] width = {80};
nya = new NyARMultiBoard(this,width,height, "camera_para.dat", patts, widths);
}
void draw(){
background(200);
myCam.read();
image(myCam,0,0);
if(nya.detect(myCam)){
nya.markers[0].beginTransform();
translate(0,0,25);
box(50);
nya.markers[0].endTransform();
}
}
----------------------------------
I am running Windows 7, 32 bites, Processing in Java.
Trying to make an "Augmented Rality app", the tools are seted up.
-----------------------------------
Thanks!
1