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 & HelpVideo Capture,  Movie Playback,  Vision Libraries › Exporting Jmyron/OpenCV Processing code
Page Index Toggle Pages: 1
Exporting Jmyron/OpenCV Processing code (Read 2533 times)
Exporting Jmyron/OpenCV Processing code
Apr 20th, 2009, 1:41pm
 
Hi Processers,
I played with JMyron and OpenCV as proposed in FaceDetect library (http://www.bryanchung.net/?page_id=251)
This works well within Processing

I'm on XP

I tried to export this, but :
- the application just does not start (nothing appears)
- the applet  keeps blank with error in Java Console :

java.lang.NullPointerException
     at sketch_apr17b.stop(sketch_apr17b.java:66)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
Exception in thread "Animation Thread" java.lang.NoClassDefFoundError: Could not initialize class JMyron.JMyron
     at sketch_apr17b.setup(sketch_apr17b.java:29)
     at processing.core.PApplet.handleDraw(PApplet.java:1400)
     at processing.core.PApplet.run(PApplet.java:1328)
     at java.lang.Thread.run(Unknown Source)
Exception in thread "Animation Thread" java.lang.NoClassDefFoundError: Could not initialize class JMyron.JMyron
     at sketch_apr17b.setup(sketch_apr17b.java:29)
     at processing.core.PApplet.handleDraw(PApplet.java:1400)
     at processing.core.PApplet.run(PApplet.java:1328)
     at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
     at sketch_apr17b.stop(sketch_apr17b.java:66)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
Exception in thread "Animation Thread" java.lang.NoClassDefFoundError: Could not initialize class JMyron.JMyron
     at sketch_apr17b.setup(sketch_apr17b.java:29)
     at processing.core.PApplet.handleDraw(PApplet.java:1400)
     at processing.core.PApplet.run(PApplet.java:1328)
     at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
     at sketch_apr17b.stop(sketch_apr17b.java:66)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
Exception in thread "Animation Thread" java.lang.NoClassDefFoundError: Could not initialize class JMyron.JMyron
     at sketch_apr17b.setup(sketch_apr17b.java:29)
     at processing.core.PApplet.handleDraw(PApplet.java:1400)
     at processing.core.PApplet.run(PApplet.java:1328)
     at java.lang.Thread.run(Unknown Source)


Any hints ?
Re: Exporting Jmyron/OpenCV Processing code
Reply #1 - Apr 30th, 2009, 1:15pm
 
I have the same problems for JMyron based programs and some other libraries - i guess it;s because the applets must be signed but i can't do that - i'm stuck ! pls help Cry
Re: Exporting Jmyron/OpenCV Processing code
Reply #2 - Jul 24th, 2009, 9:29am
 
This seems to be a recurring problem with all external video libraries in processing (gsvideo, jmcvideo, opencv, etc.)....

I would love to understand why... but i just don't have enough knowledge to figure it out.

Would like that some java wizard would explain why this happens....  Cry
Re: Exporting Jmyron/OpenCV Processing code
Reply #3 - Apr 11th, 2010, 12:21pm
 
i am using only processing + Jmyron, and no other library. although, i suppose i'm referencing the processing video lib, through use of pixel[] ? i have signed all jar applets, and uploaded applet folder = on website (browser safari) am asked to allow key, but still nothing happens.

in firefox the applet doesn't work at all (no asking to allow webcam access, for eg).

is it simply that Jmyron doesn't work with self-cert jar signing?
Page Index Toggle Pages: 1