Skip to content

Commit

Permalink
Make sure OpenCV library is properly load upon class initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykola Mokhnach committed Mar 31, 2017
1 parent d6a368c commit 04dd5bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/io/appium/java_client/ScreenshotState.java
Original file line number Diff line number Diff line change
Expand Up @@ -323,4 +323,8 @@ public static double getOverlapScore(BufferedImage refImage, BufferedImage tplIm
public enum ResizeMode {
NO_RESIZE, TEMPLATE_TO_REFERENCE_RESOLUTION, REFERENCE_TO_TEMPLATE_RESOLUTION
}

static {
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
}
}

0 comments on commit 04dd5bc

Please sign in to comment.