提交 41588c67 编写于 作者: W WenmuZhou

Adapt to paddle lite 2.9

上级 224ed7ca
...@@ -48,7 +48,7 @@ dependencies { ...@@ -48,7 +48,7 @@ dependencies {
def archives = [ def archives = [
[ [
'src' : 'https://paddleocr.bj.bcebos.com/dygraph_v2.0/lite/paddle_lite_libs_v2_8_0.gz', 'src' : 'https://paddleocr.bj.bcebos.com/dygraph_v2.0/lite/paddle_lite_libs_v2_9_0.tar.gz',
'dest': 'PaddleLite' 'dest': 'PaddleLite'
], ],
[ [
......
...@@ -429,8 +429,8 @@ public class MainActivity extends AppCompatActivity { ...@@ -429,8 +429,8 @@ public class MainActivity extends AppCompatActivity {
String[] proj = {MediaStore.Images.Media.DATA}; String[] proj = {MediaStore.Images.Media.DATA};
Cursor cursor = managedQuery(uri, proj, null, null, null); Cursor cursor = managedQuery(uri, proj, null, null, null);
cursor.moveToFirst(); cursor.moveToFirst();
onImageChanged(image);
if (image != null) { if (image != null) {
// onImageChanged(image);
ivInputImage.setImageBitmap(image); ivInputImage.setImageBitmap(image);
} }
} catch (IOException e) { } catch (IOException e) {
...@@ -450,8 +450,8 @@ public class MainActivity extends AppCompatActivity { ...@@ -450,8 +450,8 @@ public class MainActivity extends AppCompatActivity {
Log.i(TAG, "rotation " + orientation); Log.i(TAG, "rotation " + orientation);
Bitmap image = BitmapFactory.decodeFile(currentPhotoPath); Bitmap image = BitmapFactory.decodeFile(currentPhotoPath);
image = Utils.rotateBitmap(image, orientation); image = Utils.rotateBitmap(image, orientation);
onImageChanged(image);
if (image != null) { if (image != null) {
// onImageChanged(image);
ivInputImage.setImageBitmap(image); ivInputImage.setImageBitmap(image);
} }
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册