Thanks @Erel for your prompt response.
With the following code :
B4X:
#AdditionalJar: opencv-4.10.0.aar
'
'
'
'
Sub Button1_Click
Dim ocvJava As JavaObject
ocvJava.InitializeStatic(Application.PackageName & ".main$OCVClass")
End Sub
'
'
#if java
import org.opencv.core.*;
public static class OCVClass {
// Static block to load OpenCV library
static {
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
}
}
#End If
I had the error: couldn't find "libopencv_java4100.so