Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/samples/java/opencv_version.java
16337 views
1
import org.opencv.core.Core;
2
3
class opencv_version {
4
5
static { System.loadLibrary(Core.NATIVE_LIBRARY_NAME); }
6
7
public static void main(String[] args) {
8
9
if ((1==args.length) && (0==args[0].compareTo("--build"))) {
10
11
System.out.println(Core.getBuildInformation());
12
} else
13
if ((1==args.length) && (0==args[0].compareTo("--help"))) {
14
15
System.out.println("\t--build\n\t\tprint complete build info");
16
System.out.println("\t--help\n\t\tprint this help");
17
} else {
18
19
System.out.println("Welcome to OpenCV " + Core.VERSION);
20
}
21
}
22
23
}
24
25