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 › ProcessingTest + OpenCV Java Samples + Browser
Page Index Toggle Pages: 1
ProcessingTest + OpenCV Java Samples + Browser (Read 1014 times)
ProcessingTest + OpenCV Java Samples + Browser
Oct 3rd, 2009, 10:56pm
 
Hi,

There is a nice example of using PApplet within Eclipse!
(learningprocessing.com/files/ProcessingTest.zip)

Another nice example of PApplet with OpenCV.
(ubaa.net/shared/processing/opencv/download/opencv_java_samples.zip)

If I copy OpenCV_PApplet.java into ProcessingTest eclipse project and run it (as Java Applet inside eclipse)...  works,  Smiley

If I create a file (test1.tml) with
<applet code="MyProcessingSketch.class" width="300" height="300" />
and put into apache2 web server along with core.jar
and call localhost/test1.html... works,  Smiley

Now, if I try another file (test2.html) with
<applet code="OpenCV_PApplet.class" width="300" height="300" />
and add other files to apache2 (OpenCV.jar, libOpenCV.*)
and then call localhost/test2.html...

Nothing but an empty frame, no errors, and no images from camera.
looks like the webserver or firefox can't see OpenCV library.

How can i do this? (PApplet + OpenCV + WebServer + Browser)


Thanks in advance!

Marcus
Page Index Toggle Pages: 1