Skip to content

Commit 04dd5bc

Browse files
author
Mykola Mokhnach
committed
Make sure OpenCV library is properly load upon class initialisation
1 parent d6a368c commit 04dd5bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/io/appium/java_client/ScreenshotState.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,4 +323,8 @@ public static double getOverlapScore(BufferedImage refImage, BufferedImage tplIm
323323
public enum ResizeMode {
324324
NO_RESIZE, TEMPLATE_TO_REFERENCE_RESOLUTION, REFERENCE_TO_TEMPLATE_RESOLUTION
325325
}
326+
327+
static {
328+
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
329+
}
326330
}

0 commit comments

Comments
 (0)