public static Uri getCaptureImageOutputUri(@NonNull Context context) {
    Uri outputFileUri = null;
    File getImage = context.getExternalCacheDir();
    if (getImage != null) {
      outputFileUri = Uri.fromFile(new File(getImage.getPath(), "pickImageResult.jpeg"));
    }
    return outputFileUri;
  }
Get URI to image received from capture by camera.

@param context used to access Android APIs, like content resolve, it is your
    activity/fragment/widget.
core/src/main/java/com/theartofdev/edmodo/cropper/CropImage.java