Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Scanner activity not close on finish() and onBackPressed() not working #5

Open
sodiqOladeni opened this issue Jun 10, 2018 · 1 comment

Comments

@sodiqOladeni
Copy link

Hi @amitshekhariitbhu this work has been great so far, But when i tried to call the Image Scanner activity from another activity and get the result it is not working(activity not close) also onBackPressed() working and finally how can we train the model to recognize more object.

Below is my code:

Intent sendCapturedCode = new Intent();
sendCapturedCode.putExtra(getString(R.string.captured_image_tflow_result), imageAnalysesResult);
sendCapturedCode.putExtra(getString(R.string.captured_image_bitmap), capturedBitmap);
setResult(RESULT_OK, sendCapturedCode);
finish();

@amitshekhariitbhu
Copy link
Owner

There may be some issue in the Image Scanner. In order to train the model to recognize more object. You will have to train with more images. Refer this to train.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants