-
Notifications
You must be signed in to change notification settings - Fork 46
Description
2025-04-22 14:25:22.569 11675-11675 HWUI com.wzk.testocr W Unknown dataspace 0 2025-04-22 14:25:22.613 11675-11722 EGL_emulation com.wzk.testocr I Opening libGLESv1_CM_emulation.so 2025-04-22 14:25:22.613 11675-11722 EGL_emulation com.wzk.testocr I Opening libGLESv2_emulation.so 2025-04-22 14:25:22.616 11675-11722 HWUI com.wzk.testocr W Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... 2025-04-22 14:25:22.617 11675-11722 HWUI com.wzk.testocr W Failed to initialize 101010-2 format, error = EGL_SUCCESS 2025-04-22 14:25:22.811 11675-11675 InsetsController com.wzk.testocr D hide(ime(), fromIme=false) 2025-04-22 14:25:22.812 11675-11675 ImeTracker com.wzk.testocr I com.wzk.testocr:222eecb7: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN 2025-04-22 14:25:22.932 11675-11680 com.wzk.testocr com.wzk.testocr I Compiler allocated 5106KB to compile void android.view.ViewRootImpl.performTraversals() 2025-04-22 14:25:23.313 11675-11739 nativeloader com.wzk.testocr D Load /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!/lib/arm64-v8a/libfastdeploy_jni.so using class loader ns clns-7 (caller=/data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk): ok 2025-04-22 14:25:23.317 11675-11739 [FastDeploy][WARNING] com.wzk.testocr I fastdeploy/runtime/runtime_option.cc(304)::SetLitePowerMode RuntimeOption::SetLitePowerModewill be removed in v1.2.0, please modify its member variable directly, e.gruntime_option.paddle_lite_option.power_mode = 3; 2025-04-22 14:25:23.318 11675-11739 [FastDeploy][WARNING] com.wzk.testocr I fastdeploy/runtime/runtime_option.cc(313)::SetLiteOptimizedModelDir RuntimeOption::SetLiteOptimizedModelDirwill be removed in v1.2.0, please modify its member variable directly, e.gruntime_option.paddle_lite_option.optimized_model_dir = "..." 2025-04-22 14:25:23.318 11675-11739 [FastDeploy][WARNING] com.wzk.testocr I fastdeploy/runtime/runtime_option.cc(272)::EnableLiteFP16 RuntimeOption::EnableLiteFP16will be removed in v1.2.0, please modify its member variables directly, e.gruntime_option.paddle_lite_option.enable_fp16 = true 2025-04-22 14:25:23.319 11675-11739 [FastDeploy][WARNING] com.wzk.testocr I fastdeploy/runtime/runtime_option.cc(304)::SetLitePowerMode RuntimeOption::SetLitePowerModewill be removed in v1.2.0, please modify its member variable directly, e.gruntime_option.paddle_lite_option.power_mode = 3; 2025-04-22 14:25:23.319 11675-11739 [FastDeploy][WARNING] com.wzk.testocr I fastdeploy/runtime/runtime_option.cc(313)::SetLiteOptimizedModelDir RuntimeOption::SetLiteOptimizedModelDirwill be removed in v1.2.0, please modify its member variable directly, e.gruntime_option.paddle_lite_option.optimized_model_dir = "..." 2025-04-22 14:25:23.319 11675-11739 [FastDeploy][WARNING] com.wzk.testocr I fastdeploy/runtime/runtime_option.cc(272)::EnableLiteFP16 RuntimeOption::EnableLiteFP16will be removed in v1.2.0, please modify its member variables directly, e.gruntime_option.paddle_lite_option.enable_fp16 = true 2025-04-22 14:25:23.320 11675-11739 [FastDeploy][WARNING] com.wzk.testocr I fastdeploy/runtime/runtime_option.cc(304)::SetLitePowerMode RuntimeOption::SetLitePowerModewill be removed in v1.2.0, please modify its member variable directly, e.gruntime_option.paddle_lite_option.power_mode = 3; 2025-04-22 14:25:23.322 11675-11739 [FastDeploy][WARNING] com.wzk.testocr I fastdeploy/runtime/runtime_option.cc(313)::SetLiteOptimizedModelDir RuntimeOption::SetLiteOptimizedModelDirwill be removed in v1.2.0, please modify its member variable directly, e.gruntime_option.paddle_lite_option.optimized_model_dir = "..." 2025-04-22 14:25:23.322 11675-11739 [FastDeploy][WARNING] com.wzk.testocr I fastdeploy/runtime/runtime_option.cc(272)::EnableLiteFP16 RuntimeOption::EnableLiteFP16will be removed in v1.2.0, please modify its member variables directly, e.gruntime_option.paddle_lite_option.enable_fp16 = true2025-04-22 14:25:23.334 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1330 Setup] ARM multiprocessors name: _GOLDFISH_X86_64__ 2025-04-22 14:25:23.334 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1331 Setup] ARM multiprocessors number: 4 2025-04-22 14:25:23.334 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1333 Setup] ARM multiprocessors ID: 0, max freq: 0, min freq: 0, cluster ID: 0, CPU ARCH: A75 2025-04-22 14:25:23.334 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1333 Setup] ARM multiprocessors ID: 1, max freq: 0, min freq: 0, cluster ID: 0, CPU ARCH: A75 2025-04-22 14:25:23.334 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1333 Setup] ARM multiprocessors ID: 2, max freq: 0, min freq: 0, cluster ID: 0, CPU ARCH: A75 2025-04-22 14:25:23.334 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1333 Setup] ARM multiprocessors ID: 3, max freq: 0, min freq: 0, cluster ID: 0, CPU ARCH: A75 2025-04-22 14:25:23.334 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1339 Setup] L1 DataCache size is: 2025-04-22 14:25:23.334 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1341 Setup] 64 KB 2025-04-22 14:25:23.334 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1341 Setup] 64 KB 2025-04-22 14:25:23.334 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1341 Setup] 64 KB 2025-04-22 14:25:23.334 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1341 Setup] 64 KB 2025-04-22 14:25:23.334 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1343 Setup] L2 Cache size is: 2025-04-22 14:25:23.334 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1345 Setup] 512 KB 2025-04-22 14:25:23.334 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1345 Setup] 512 KB 2025-04-22 14:25:23.334 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1345 Setup] 512 KB 2025-04-22 14:25:23.334 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1345 Setup] 512 KB 2025-04-22 14:25:23.335 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.334 ...tmp/Paddle-Lite/lite/core/device_info.cc:1347 Setup] L3 Cache size is: 2025-04-22 14:25:23.335 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.335 ...tmp/Paddle-Lite/lite/core/device_info.cc:1349 Setup] 16384 KB 2025-04-22 14:25:23.335 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.335 ...tmp/Paddle-Lite/lite/core/device_info.cc:1349 Setup] 16384 KB 2025-04-22 14:25:23.335 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.335 ...tmp/Paddle-Lite/lite/core/device_info.cc:1349 Setup] 16384 KB 2025-04-22 14:25:23.335 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.335 ...tmp/Paddle-Lite/lite/core/device_info.cc:1349 Setup] 16384 KB 2025-04-22 14:25:23.335 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.335 ...tmp/Paddle-Lite/lite/core/device_info.cc:1351 Setup] Total memory: 2018804KB 2025-04-22 14:25:23.335 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.335 ...tmp/Paddle-Lite/lite/core/device_info.cc:1352 Setup] SVE2 support: 0 2025-04-22 14:25:23.335 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.335 ...tmp/Paddle-Lite/lite/core/device_info.cc:1353 Setup] SVE2 f32mm support: 0 2025-04-22 14:25:23.335 11675-11739 Paddle-Lite com.wzk.testocr I [I 4/22 6:25:23.335 ...tmp/Paddle-Lite/lite/core/device_info.cc:1354 Setup] SVE2 i8mm support: 0 2025-04-22 14:25:23.348 11675-11739 Paddle-Lite com.wzk.testocr W [W 4/22 6:25:23.348 ...tmp/Paddle-Lite/lite/core/device_info.cc:1169 RequestPowerLowMode] LOW POWER MODE is not support, switch to big cores 2025-04-22 14:25:23.352 11675-11739 libc com.wzk.testocr A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 11739 (DefaultDispatch), pid 11675 (com.wzk.testocr) 2025-04-22 14:25:23.614 11763-11763 DEBUG pid-11763 A Cmdline: com.wzk.testocr 2025-04-22 14:25:23.614 11763-11763 DEBUG pid-11763 A pid: 11675, tid: 11739, name: DefaultDispatch >>> com.wzk.testocr <<< 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #01 pc 0000000000d9a118 /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libpaddle_full_api_shared.so (offset 0x160c000) (BuildId: 390ba2238a437745d48a12dfe6aefa327276ad1b) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #02 pc 0000000000d98634 /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libpaddle_full_api_shared.so (offset 0x160c000) (BuildId: 390ba2238a437745d48a12dfe6aefa327276ad1b) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #03 pc 0000000000d97248 /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libpaddle_full_api_shared.so (offset 0x160c000) (BuildId: 390ba2238a437745d48a12dfe6aefa327276ad1b) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #04 pc 0000000000dc89ac /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libpaddle_full_api_shared.so (offset 0x160c000) (BuildId: 390ba2238a437745d48a12dfe6aefa327276ad1b) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #05 pc 0000000000da0ac0 /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libpaddle_full_api_shared.so (offset 0x160c000) (BuildId: 390ba2238a437745d48a12dfe6aefa327276ad1b) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #06 pc 0000000000d9a328 /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libpaddle_full_api_shared.so (offset 0x160c000) (BuildId: 390ba2238a437745d48a12dfe6aefa327276ad1b) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #07 pc 0000000000d9bb34 /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libpaddle_full_api_shared.so (offset 0x160c000) (BuildId: 390ba2238a437745d48a12dfe6aefa327276ad1b) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #08 pc 0000000000d95de8 /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libpaddle_full_api_shared.so (offset 0x160c000) (BuildId: 390ba2238a437745d48a12dfe6aefa327276ad1b) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #09 pc 00000000004a4a48 /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libpaddle_full_api_shared.so (offset 0x160c000) (paddle::lite::bind_threads(std::__ndk1::vector<int, std::__ndk1::allocator<int>>)+156) (BuildId: 390ba2238a437745d48a12dfe6aefa327276ad1b) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #10 pc 00000000004ac9e4 /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libpaddle_full_api_shared.so (offset 0x160c000) (paddle::lite::DeviceInfo::SetRunMode(paddle::lite_api::PowerMode, int)+1452) (BuildId: 390ba2238a437745d48a12dfe6aefa327276ad1b) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #11 pc 000000000048638c /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libpaddle_full_api_shared.so (offset 0x160c000) (paddle::lite_api::ConfigBase::set_power_mode(paddle::lite_api::PowerMode)+64) (BuildId: 390ba2238a437745d48a12dfe6aefa327276ad1b) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #12 pc 00000000002e7618 /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libfastdeploy.so (offset 0x107c000) (BuildId: 2dcc4f543146e959fc4c2fef603db74e8f15d4fa) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #13 pc 00000000002d75e4 /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libfastdeploy.so (offset 0x107c000) (fastdeploy::Runtime::CreateLiteBackend()+100) (BuildId: 2dcc4f543146e959fc4c2fef603db74e8f15d4fa) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #14 pc 00000000002d6b5c /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libfastdeploy.so (offset 0x107c000) (fastdeploy::Runtime::Init(fastdeploy::RuntimeOption const&)+308) (BuildId: 2dcc4f543146e959fc4c2fef603db74e8f15d4fa) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #15 pc 00000000000edac0 /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libfastdeploy.so (offset 0x107c000) (fastdeploy::FastDeployModel::InitRuntimeWithSpecifiedBackend()+2916) (BuildId: 2dcc4f543146e959fc4c2fef603db74e8f15d4fa) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #16 pc 000000000039f6e8 /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libfastdeploy.so (offset 0x107c000) (fastdeploy::vision::ocr::DBDetector::Initialize()+24) (BuildId: 2dcc4f543146e959fc4c2fef603db74e8f15d4fa) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #17 pc 000000000039f624 /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libfastdeploy.so (offset 0x107c000) (fastdeploy::vision::ocr::DBDetector::DBDetector(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&, fastdeploy::RuntimeOption const&, fastdeploy::ModelFormat const&)+604) (BuildId: 2dcc4f543146e959fc4c2fef603db74e8f15d4fa) 2025-04-22 14:25:23.619 11763-11763 DEBUG pid-11763 A #18 pc 000000000001a274 /data/app/~~GcGLgqdWGNjAoNAkZbbZjA==/com.wzk.testocr-sKzuoKRPCuAhJm0vaiAAIw==/base.apk!libfastdeploy_jni.so (offset 0xc1c000) (Java_com_baidu_paddle_fastdeploy_pipeline_PPOCRBase_bindNative+292) (BuildId: 65639a6af9215bfb9de9e467cd756dbedf86c83e) ---------------------------- PROCESS ENDED (11675) for package com.wzk.testocr ---------------------------- 2025-04-22 14:25:23.649 662-780 InputDispatcher system_server E channel 'fc987ff com.wzk.testocr/com.wzk.testocr.MainActivity' ~ Channel is unrecoverably broken and will be disposed!
`public void loadModel(){
ocr = new OCR(this);
OcrConfig oc = new OcrConfig();
oc.setModelPath("models");
oc.setClsModelFileName("cls");
oc.setDetModelFileName("det");
oc.setRecModelFileName("rec");
oc.setRunType(RunType.All);
// 修改为低功耗模式,避免在模拟器上崩溃
oc.setCpuPowerMode(LitePowerMode.LITE_POWER_LOW);
oc.isDrwwTextPositionBox();
// 不使用FP16精度,改为普通精度
oc.setRecRunPrecision(RunPrecision.LiteFp16);
oc.setDetRunPrecision(RunPrecision.LiteFp16);
oc.setClsRunPrecision(RunPrecision.LiteFp16);
Toast.makeText(this,"开始加载模型",Toast.LENGTH_LONG).show();
ocr.initModel(oc,new OcrInitCallback(){
@Override
public void onSuccess() {
System.out.println("初始化成功");
Toast.makeText(MainActivity.this, "初始化成功", Toast.LENGTH_LONG).show();
}
@Override
public void onFail(@NonNull Throwable throwable) {
System.out.println("初始化失败");
Toast.makeText(MainActivity.this, "初始化失败: " + throwable.getMessage(), Toast.LENGTH_LONG).show();
throwable.printStackTrace();
}
});
}`
