ImShow-Java-OpenCV
ImShow-Java-OpenCV copied to clipboard
Incompatible with OpenCV 3.0 or greater
When running the showImage() method in OpenCV 3.0 or greater, an exception is returned:
Exception in thread "Thread-0" java.lang.NoClassDefFoundError: org/opencv/highgui/Highgui
This is because Highgui has been removed in opencv 3.0 and split into two different packages - see this stackexchange for more details http://stackoverflow.com/questions/25059576/highgui-is-missing-from-opencv-3-0-0-jar
I might have a local version that works on 3.0 if you check my repo it might be there.
On Saturday, January 28, 2017, Emile Hamwey [email protected] wrote:
When running the showImage() method in OpenCV 3.0 or greater, an exception is returned:
Exception in thread "Thread-0" java.lang.NoClassDefFoundError: org/opencv/highgui/Highgui
This is because Highgui has been removed in opencv 3.0 and split into two different packages - see this stackexchange for more details http://stackoverflow.com/questions/25059576/highgui-is- missing-from-opencv-3-0-0-jar
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/master-atul/ImShow-Java-OpenCV/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ADUDwUMFVAW60-d_RoZslzG4pVRZk1fDks5rW3yIgaJpZM4LwkEb .
@ehamwey here's an imshow that works on 3.0 - https://github.com/AnEmortalKid/Imshow/blob/stable/src/test/java/com/anemortalkid/imshow/Imshow.java Feel free to rename it to ImShow3 and you can probably PR it into this guy.
The source code does work on OpenCV >= 3.0. Apparently only the .jar file wasn't updated. After building the .jar file anew with the current code it works. Tested on OpenCV 3.2.0
The same exception, it do work out only in lower version...
@setihex would this version work for you: https://github.com/AnEmortalKid/Imshow