ImShow-Java-OpenCV icon indicating copy to clipboard operation
ImShow-Java-OpenCV copied to clipboard

Incompatible with OpenCV 3.0 or greater

Open ehamwey opened this issue 8 years ago • 5 comments

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

ehamwey avatar Jan 28 '17 17:01 ehamwey

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 .

AnEmortalKid avatar Jan 28 '17 18:01 AnEmortalKid

@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.

AnEmortalKid avatar Jan 29 '17 16:01 AnEmortalKid

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

pflingstring avatar Aug 25 '17 13:08 pflingstring

The same exception, it do work out only in lower version...

jalr4ever avatar Apr 18 '18 11:04 jalr4ever

@setihex would this version work for you: https://github.com/AnEmortalKid/Imshow

AnEmortalKid avatar Apr 18 '18 12:04 AnEmortalKid