Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (requestCode == CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE) {
- if (resultCode == RESULT_OK) {
- Mat img = Highgui.imread(file.getAbsolutePath());
- if(img!=null)
- n.detectDocument(img.getNativeObjAddr());
- jbyteArray JNICALL Java_com_example_superemr_NSuperEMR_detectDocument(JNIEnv *env, jobject object, jlong addr)
- {
- Mat* image = (Mat*) addr;
- imwrite("/mnt/sdcard/work/hala.jpg",*image);
- return NULL;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement