Closed perlman closed 1 year ago
bioformats2raw depends on https://github.com/openpnp/opencv; it's definitely not expected that you would need to compile and install OpenCV Java bindings separately. Was there a particular error message that you saw before doing that?
I was getting an exception that libopencv_javaNNN
could not be loaded. These went away when I installed OpenCV by hand.
But, I am now unable to reproduce by truncating the JNA library path. I'm wondering if any of the hundred dependencies or an inadvertent JVM selection were at play.
I'll investigate. I'm certainly glad to see that open-no/opencv
includes the native libraries.
The current README does a nice job of explaining how to install BLOSC and setting
JAVA_OPTS
. Similar documentation for OpenCV would be helpful.On my Mac, I had to follow the homebrew instructions in the OpenCV Java tutorial to get the java bindings and then adding the path (in my case,
/opt/homebrew/Cellar/opencv/4.8.1_1/share/java/opencv4
) toJAVA_OPTS
.I have a feeling I am missing something obvious on how to properly set up OpenCV for use with Java... Compiling OpenCV isn't much fun, even with a semi-automatic tool like homebrew.