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

Adapt to paddle lite 2.9

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