Unknown exception in JNI code OpenCv, Windows 7 64bit platform

asked 2013-05-18 06:20:03 -0500

Urvik gravatar image

updated 2013-05-18 06:20:48 -0500

I am using OpenCv 2.4.5 on Windows 7 64 bit platformm. I wrote program to capture image from camera. I can able to run successful on Mac. But on Windows 7 64 bit platform, Camera light is starting and stopping so it is taking frame from camera. Width of Frame grabbed from camera is also 640 so it is taking frame from camera.

But when I write frame to File using this below line of code

Highgui.imwrite("camera.jpg", frame);

then it gives me error java.lang.Exception: Unknown exception in JNI code {highgui::imwrite_11()}

Same program works fine on Mac. Except on windows I am using dll while on mac dylib file for OpenCV library.

edit retag flag offensive close merge delete