opencv_version.java 581 B

1234567891011121314151617181920212223
  1. import org.opencv.core.Core;
  2. class opencv_version {
  3. static { System.loadLibrary(Core.NATIVE_LIBRARY_NAME); }
  4. public static void main(String[] args) {
  5. if ((1==args.length) && (0==args[0].compareTo("--build"))) {
  6. System.out.println(Core.getBuildInformation());
  7. } else
  8. if ((1==args.length) && (0==args[0].compareTo("--help"))) {
  9. System.out.println("\t--build\n\t\tprint complete build info");
  10. System.out.println("\t--help\n\t\tprint this help");
  11. } else {
  12. System.out.println("Welcome to OpenCV " + Core.VERSION);
  13. }
  14. }
  15. }