Hi there,
When using the Capture class, Processing quits on me, saying:
Invalid memory access of location 0x1e57e140 eip=0x1e57e140
Then, the little window it opened crashes, and looking at the error-report, the following seems to be the cause:
Thread 34 Crashed:: Java: Animation Thread
0 ???
0x1e57e140 get_feature_flags + 0
1 lib3ivxEnc.dylib
0x1e4fb2b8 InitHooks + 5088
2 lib3ivxEnc.dylib
0x1e4fd0ab InitThrivex + 68
3 lib3ivxEnc.dylib
0x1e5110fa l3_init + 11
Is there a way to fix this? I really need to be able to use webcam input.
This is my (example) code. As you see it uses JMyron, but the same thing happens when using the capture function:
import JMyron.*;
JMyron m;//a camera object
void setup(){
size(320,240);
m = new JMyron();//make a new instance of the object
m.start(width,height);//start a capture at 320x240
m.findGlobs(0);//disable the intelligence to speed up frame rate
println("Myron " + m.version());
}
void draw(){
m.update();//update the camera view
int[] img = m.image(); //get the normal image of the camera
loadPixels();
for(int i=0;i<width*height;i++){ //loop through all the pixels
pixels[i] = img[i]; //draw each pixel to the screen
}
updatePixels();
}
void mousePressed(){
m.settings();//click the window to get the settings
}
public void stop(){
m.stop();//stop the object
super.stop();
}
1