[WebCamXtra/Myron] Processing error
Brought to you by:
jtnimoy
From: Federico J. P. <fed...@ar...> - 2004-07-15 13:15:27
|
a3bm() { Hi! I'm trying to make this work with Processing, and looking at the forum, i found somebody who has the same problem than me. ( http://processing.org/discourse/yabb/YaBB.cgi?board=3DVideoCamera;action= =3Ddisplay;num=3D1084818049;start=3D0 ) I made this example and found that the four images -that should be different- are the same. What can be wrong? F. JMyron m;//a camera object =20 int xpos =3D 0;=20 int ypos =3D 0;=20 =20 void setup() =20 {=20 =20 size(640, 480); =20 framerate(25);=20 m =3D new JMyron();//make a new instance of the object=20 m.start(320,240);//start a capture at 320x240=20 m.findGlobs(1);=20 m.update();=20 m.adaptivity(110);=20 m.adapt();// immediately take a snapshot of the background for differenci= ng=20 println("Myron " + m.version());=20 m.findGlobs(1);=20 } =20 =20 void loop(){=20 m.update();//update the camera view=20 int[] img =3D m.cameraImage(); ;=20 for(int j=3D0;j<4;j++) {=20 switch(j) {=20 case 0: =20 img =3D m.cameraImage(); =20 break;=20 case 1:=20 img =3D m.retinaImage(); =20 break;=20 case 2: =20 img =3D m.differenceImage(); =20 break;=20 case 3:=20 img =3D m.globsImage(); =20 break; =20 }=20 for(int i=3D0;i<320*240;i++){ //loop through all the pixels=20 pixels[i+j*320*240] =3D img[i]; //draw each pixel to the screen=20 }=20 }=20 }=20 =20 public void stop(){=20 m.stop();//stop the object=20 }=20 =20 } --=20 area3 loves you, S.L. perez gald=F3s 7, 3=BA (08012) barcelona spain TE: +34-93-415-9480=20 Key fingerprint =3D 7A 81 0A 0C 0D 58 4E E3 57 96 70 AA ED C7 29 E7 =AF`.(=AF`. * <fed...@ar...> * .=AF).=AF) |