[apriltag] Try loading debug OpenCV if release version fails (#6949)

This commit is contained in:
Gold856
2024-08-11 16:19:31 -04:00
committed by GitHub
parent 8e2cc51f95
commit 2892733e33

View File

@@ -33,8 +33,13 @@ class AprilTagDetectorTest {
static void beforeAll() {
try {
RuntimeLoader.loadLibrary(Core.NATIVE_LIBRARY_NAME);
} catch (IOException ex) {
fail(ex);
} catch (IOException e) {
try {
// Try adding a debug postfix
RuntimeLoader.loadLibrary(Core.NATIVE_LIBRARY_NAME + "d");
} catch (IOException ex) {
fail(ex);
}
}
}