android - Shared libraries give problems after upgrading ndk-14 -


i'm working on project, , integrated card.io , tess-two libraries. have owned these libraries, , use reading national id , other id cards. before upgrading ndk-14, worked well. after upgrade, got lots of problems. downgraded ndk-13, yet have these errors. here logs:

04-06 14:22:41.997 3075-3075/com.javadbadirkhanly.newcardscannerproject a/libc: fatal signal 6 (sigabrt), code -6 in tid 3075 (dscannerproject)                                                                              [ 04-06 14:22:42.000   375:  375 w/         ] debuggerd: handling request: pid=3075 uid=10125 gid=10125 tid=3075 04-06 14:22:42.099 3236-3236/? a/debug: pid: 3075, tid: 3075, name: dscannerproject  >>> com.javadbadirkhanly.newcardscannerproject <<< 04-06 14:22:42.169 3236-3236/? a/debug:     #04 pc 0000000000139a60 /data/app/com.javadbadirkhanly.newcardscannerproject-1/lib/arm64/libtess.so (_znk7errcode5errorepkc16tesserrorlogcodes1_z+360) 04-06 14:22:42.169 3236-3236/? a/debug:     #05 pc 0000000000148b90  /data/app/com.javadbadirkhanly.newcardscannerproject-1/lib/arm64/libtess.so (_zn9tesseract8classify22initadaptiveclassifiereb+252) 04-06 14:22:42.169 3236-3236/? a/debug:     #06 pc 0000000000233364  /data/app/com.javadbadirkhanly.newcardscannerproject-1/lib/arm64/libtess.so (_zn9tesseract7wordrec14program_editupepkcbb+56) 04-06 14:22:42.169 3236-3236/? a/debug:     #07 pc 00000000000f0bfc  /data/app/com.javadbadirkhanly.newcardscannerproject-1/lib/arm64/libtess.so (_zn9tesseract9tesseract23init_tesseract_internalepkcs2_s2_ns_13ocrenginemodeeppcipk13genericvectori6stringesa_b+268) 04-06 14:22:42.169 3236-3236/? a/debug:     #08 pc 00000000000f06bc  /data/app/com.javadbadirkhanly.newcardscannerproject-1/lib/arm64/libtess.so (_zn9tesseract9tesseract14init_tesseractepkcs2_s2_ns_13ocrenginemodeeppcipk13genericvectori6stringesa_b+392) 04-06 14:22:42.169 3236-3236/? a/debug:     #09 pc 00000000000a1788  /data/app/com.javadbadirkhanly.newcardscannerproject-1/lib/arm64/libtess.so (_zn9tesseract11tessbaseapi4initepkcs2_ns_13ocrenginemodeeppcipk13genericvectori6stringesa_b+288) 04-06 14:22:42.169 3236-3236/? a/debug:     #10 pc 000000000001f37c  /data/app/com.javadbadirkhanly.newcardscannerproject-1/lib/arm64/libcardiorecognizer_tegra2.so (java_com_javadbadirkhanly_newcardscannerproject_hardware_cardscanner_nsetup+104) 04-06 14:22:43.255 4939-3258/? w/activitymanager:   force finishing activity com.javadbadirkhanly.newcardscannerproject/.activities.cardioactivity                                                [ 04-06 14:22:43.276   375:  375 w/         ]                                               debuggerd: resuming target 3075 04-06 14:22:43.284 4939-19110/? i/windowmanager: win death: window{63d7429 u0 com.javadbadirkhanly.newcardscannerproject/com.javadbadirkhanly.newcardscannerproject.activities.cardioactivity} 04-06 14:22:43.285 4939-4958/? i/activitymanager: process com.javadbadirkhanly.newcardscannerproject (pid 3075) has died 04-06 14:22:43.285 4939-4958/? w/activitymanager: scheduling restart of crashed service com.javadbadirkhanly.newcardscannerproject/com.android.tools.fd.runtime.instantrunservice in 1000ms 04-06 14:22:43.286 4939-6710/? w/inputdispatcher: channel '7e4664e com.javadbadirkhanly.newcardscannerproject/com.javadbadirkhanly.newcardscannerproject.activities.mainactivity (server)' ~ consumer closed input channel or error occurred.  events=0x9 04-06 14:22:43.286 4939-6710/? e/inputdispatcher: channel '7e4664e com.javadbadirkhanly.newcardscannerproject/com.javadbadirkhanly.newcardscannerproject.activities.mainactivity (server)' ~ channel unrecoverably broken , disposed! 04-06 14:22:43.292 4939-21535/? i/windowmanager: win death: window{7e4664e u0 com.javadbadirkhanly.newcardscannerproject/com.javadbadirkhanly.newcardscannerproject.activities.mainactivity} 04-06 14:22:43.292 4939-21535/? w/inputdispatcher: attempted unregister unregistered input channel '7e4664e com.javadbadirkhanly.newcardscannerproject/com.javadbadirkhanly.newcardscannerproject.activities.mainactivity (server)' 04-06 14:22:43.305 4939-4958/? i/activitymanager: start proc 3261:com.javadbadirkhanly.newcardscannerproject/u0a125 activity com.javadbadirkhanly.newcardscannerproject/.activities.mainactivity 04-06 14:22:43.611 3261-3261/? i/instantrun: starting instant run server com.javadbadirkhanly.newcardscannerproject 04-06 14:22:43.815 4939-4996/? i/activitymanager: displayed com.javadbadirkhanly.newcardscannerproject/.activities.mainactivity: +523ms 04-06 14:24:38.638 4939-3258/? w/activitymanager: ignoring remove of inactive process: processrecord{fad747e 0:com.javadbadirkhanly.newcardscannerproject/u0a125} 

the problem libtess.so library, don't know why? please me, , ask more details.

here essential codes jni:

initialize:

int res = api->init(env->getstringutfchars(datapath, 0), "aze");  if (res) {     dmz_error_log("could not initialize tesseract"); } else {     dmz_debug_log("initialized tesseract"); } 

getting image card:

char *getcardnumberimage(cv::mat cardimage) { cv::rect croprect(kcreditcardtargetwidth * 76 / mmcardwidth,                   kcreditcardtargetheight * 14 / mmcardheight,                   kcreditcardtargetwidth * 24 / mmcardwidth,                   kcreditcardtargetheight * 4 / mmcardheight);  api->setvariable("tessedit_char_whitelist",                  "0123456789");  return getocrtext(cardimage(croprect)); } 

getting result tesseract:

char *getocrtext(cv::mat image) { api->setimage((uchar *) image.data, image.size().width, image.size().height,               image.channels(), image.step1()); // ocr result char *outtext = api->getutf8text(); dmz_debug_log("text %s", outtext); return outtext; } 

i when use training data trained 3.05 works well, when use data trained 4.00 gives me such errors. tesseract version 4.00 alpha.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -