|
@@ -304,6 +304,9 @@ public class OtaOperationActivity extends OtaCameraActivity implements CropView.
|
|
|
// 得到裁剪后的图片数据
|
|
// 得到裁剪后的图片数据
|
|
|
int[] rectData = new int[]{mLeft, mTop, mRight, mBottom};
|
|
int[] rectData = new int[]{mLeft, mTop, mRight, mBottom};
|
|
|
File file = new File(Environment.getExternalStoragePublicDirectory(DIRECTORY_PICTURES) + "/" + System.currentTimeMillis() + ".jpg");
|
|
File file = new File(Environment.getExternalStoragePublicDirectory(DIRECTORY_PICTURES) + "/" + System.currentTimeMillis() + ".jpg");
|
|
|
|
|
+ if (!file.getParentFile().exists()) {
|
|
|
|
|
+ file.getParentFile().mkdirs();
|
|
|
|
|
+ }
|
|
|
if (tv_orientation.getVisibility() == View.VISIBLE) {
|
|
if (tv_orientation.getVisibility() == View.VISIBLE) {
|
|
|
mOperationPresenter.startOcrFromBitmap(this, bitmap, rectData, file, mCurrentScene, pcv_scan.isLandscape());
|
|
mOperationPresenter.startOcrFromBitmap(this, bitmap, rectData, file, mCurrentScene, pcv_scan.isLandscape());
|
|
|
} else {
|
|
} else {
|