We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › JMyron | Processing 0090
Page Index Toggle Pages: 1
JMyron | Processing 0090 (Read 254 times)
JMyron | Processing 0090
Feb 23rd, 2008, 9:38pm
 
Hey all,

I'm trying to run a sketch that reacts depending on the amount of people in the frame. I found that you could use JMyron's findGlobs() function to do this. The only issue is the last working version of Processing it was tested in was Processing 0090. I'm running Processing 0135. The code from the sample libraries does not work. I get a weird Java message.

Code:

/*

a very simple example that draws the camera pixels
to the screen using the pixel[] array.

last tested to work in Processing 0090

JTNIMOY

*/

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();
}

//This JAVA error appears in the console below

Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: /Applications/Processing 0135/libraries/JMyron/library/libJMyron.jnilib:

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1739)

at java.lang.Runtime.loadLibrary0(Runtime.java:822)

at java.lang.System.loadLibrary(System.java:993)

at JMyron.JMyron.<clinit>(JMyron.java:14)



Does anyone know what's wrong?
Does anyone know where I can get a copy of Processing 0090?

~TSG
Page Index Toggle Pages: 1