mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Attempt to load OpenCV when loading MediaPipe
PiperOrigin-RevId: 449227706
This commit is contained in:
parent
d6dc3c5351
commit
bea17b4357
1 changed files with 10 additions and 0 deletions
|
|
@ -50,6 +50,16 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static {
|
||||||
|
// Not all build configurations require OpenCV to be loaded separately, so attempt to load the
|
||||||
|
// library but ignore the error if it's not present.
|
||||||
|
try {
|
||||||
|
System.loadLibrary("opencv_java3");
|
||||||
|
} catch (UnsatisfiedLinkError e) {
|
||||||
|
// Do nothing.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static final String COPY_VERTEX_SHADER_NAME = "vertex_shader_copy_es2.glsl";
|
private static final String COPY_VERTEX_SHADER_NAME = "vertex_shader_copy_es2.glsl";
|
||||||
private static final String COPY_FRAGMENT_SHADER_NAME = "shaders/fragment_shader_copy_es2.glsl";
|
private static final String COPY_FRAGMENT_SHADER_NAME = "shaders/fragment_shader_copy_es2.glsl";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue