Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. if (requestCode == CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE) {
  2. if (resultCode == RESULT_OK) {
  3. Mat img = Highgui.imread(file.getAbsolutePath());
  4. if(img!=null)
  5. n.detectDocument(img.getNativeObjAddr());
  6.  
  7. jbyteArray JNICALL Java_com_example_superemr_NSuperEMR_detectDocument(JNIEnv *env, jobject object, jlong addr)
  8. {
  9. Mat* image = (Mat*) addr;
  10. imwrite("/mnt/sdcard/work/hala.jpg",*image);
  11. return NULL;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement