Skip to content

Instantly share code, notes, and snippets.

@jason9075
Created June 12, 2022 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jason9075/45a62d467b06450f6f53ef897c769fb1 to your computer and use it in GitHub Desktop.
Save jason9075/45a62d467b06450f6f53ef897c769fb1 to your computer and use it in GitHub Desktop.
// Test Hello World From MyOpenCv
NativeLib cv = new NativeLib();
System.out.println(cv.stringFromJNI());
Bitmap image = BitmapFactory.decodeResource(getResources(), R.drawable.android);
cv.toGrey(image, image);
iv.setImageBitmap(image);
System.out.println(">>> " + cv.getInfo(image));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment