With this Quarkus extension, you can use OpenCV in native executables generated by GraalVM.
<dependency>
<groupId>io.quarkiverse.opencv</groupId>
<artifactId>quarkus-opencv</artifactId>
<version>LATEST</version>
</dependency>
The OpenCV library is loaded automatically when starting your application so you don't need to load it yourself.
Quarkus OpenCV supports creating native executables with Mandrel/GraalVM.
However, given how the OpenCV library is copied to a temporary location by the OpenPnP packaging, you might need to pass the -XX:MaxDirectMemorySize=128m
option to the native executable.
This issue will be solved in Java 22.
Quarkus | Quarkus OpenCV |
---|---|
3.x | 2.x |
2.x | 1.x |
Thanks goes to these wonderful people (emoji key):
Guillaume Smet 💻 🚧 |
This project follows the all-contributors specification. Contributions of any kind welcome!