kapry / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 1 forks source link

FacePreview: ClassNotFoundException - java.awt.image.BufferedImage #118

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Followed the steps described on the main page for creating a new project
2. Managed to get FacePreview to compile and run
3. Changed the code to use the front facing camera

What is the expected output? What do you see instead?
I'd have expected that my face is detected and tracked. However, I only see the 
live video from the camera and the debugging mode in Eclipse gives me a
"Suspended(exception ClassNotFoundException))" for java.awt.image.BufferedImage
I've seen that several people had this issue before but none of the bug reports 
that was marked as resolved actually showed how to fix the example program.

Please let me know how to fix it or even better fix the code in the subversion
repository. Thanks very much for your help!

What version of the product are you using? On what operating system?
Samsung Galaxy Tab 10.1
OpenCV-2.3.1-android-arm.zip
javacv-android-arm.jar

Please provide any additional information below.
-

Original issue reported on code.google.com by andyknow...@googlemail.com on 18 Oct 2011 at 7:13

GoogleCodeExporter commented 8 years ago
If you install this precompiled binary package on your phone, does it work?
http://code.google.com/p/javacv/downloads/detail?name=facepreview-20111001.apk

Original comment by samuel.a...@gmail.com on 19 Oct 2011 at 3:00

GoogleCodeExporter commented 8 years ago
Yes, this one works.

Original comment by andyknow...@googlemail.com on 19 Oct 2011 at 7:27

GoogleCodeExporter commented 8 years ago
I built that using Eclipse, so unless you are doing something wrong, it should 
work. As I always explain, Android does not have the java.awt package, so it 
perfectly normal that it cannot load java.awt.image.BufferedImage. This does 
not prevent in any way JavaCV from working properly, as long as you don't try 
to use java.awt.image.BufferedImage.

Please check the log file to figure out what exactly the error is, thank you.

Original comment by samuel.a...@gmail.com on 19 Oct 2011 at 7:49

GoogleCodeExporter commented 8 years ago
Since this issue has been idling for a while, I am assuming you managed to fix 
whatever was wrong... Marking as done for now. Please post your questions on 
the mailing list next time, thank you.

Original comment by samuel.a...@gmail.com on 8 Jan 2012 at 3:42