Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void performCloudVisionRequest(Uri uri) {
- if (uri != null) {
- try {
- Bitmap bitmap = resizeBitmap(
- MediaStore.Images.Media.getBitmap(getContentResolver(), uri));
- callCloudVision(bitmap);
- selectedImage.setImageBitmap(bitmap);
- } catch (IOException e) {
- Log.e(TAG, e.getMessage());
- }
- }
- }
Add Comment
Please, Sign In to add comment