glencoesoftware/bioformats2raw

Add documentation for OpenCV to README

Closed this issue · 2 comments

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) to JAVA_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.

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.