googlesamples / mlkit

A collection of sample apps to demonstrate how to use Google's ML Kit APIs on Android and iOS
Apache License 2.0
3.5k stars 2.92k forks source link

mlkit:text-recognition-chinese Not working properly #808

Open tianchaocode opened 4 months ago

tianchaocode commented 4 months ago

Describe the bug Package com.google.mlkit:text-recognition-chinese:16.0.0 into apk through bundling and packaging. When running the AndroidTest case, an exception occurs and the focus cannot be moved. After uninstalling the apk, the focus can move normally.

To Reproduce run a AndroidTest can reproduce :

  1. create a bitmap by picture,convert bitmap into com.google.mlkit.vision.common.InputImage image
  2. TextRecognizer recognizer = TextRecognition.getClient(new ChineseTextRecognizerOptions.Builder().build());
  3. recognizer.process(image)
  4. See error in log or /data/tombstone:

    Build fingerprint: 'xxxx:userdebug/test-keys' Revision: '0' ABI: 'arm' pid: 5975, tid: 6063, name: Thread-2 >>> com.xxxx.xxxx <<< signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x9620b5b4 r0 945a33d0 r1 00000008 r2 00000100 r3 945a30d8 r4 945c2478 r5 00000020 r6 945c24f8 r7 00000008 r8 945c24b8 r9 94d64080 r10 945a32d0 r11 945c2438 ip 945a31d0 sp 94201850 lr 961cb48f pc 9620b5b4

backtrace:

00 pc 003c95b4 /data/app/com.xxxx.xxxx-8ktOafHLs7wWtOh_j94VPQ==/lib/arm/libmlkit_google_ocr_pipeline.so

If applicable, please include code snippet and sample input(image, video, text, etc)

Expected behavior The test case passed and the text was successfully recognized

SDK Info:

Smartphone:

Development Environment: (For Android issue feel free to skip this section)

tianchaocode commented 4 months ago

Similar issues: https://github.com/googlesamples/mlkit/issues/655

tianchaocode commented 4 months ago

hello?

tianchaocode commented 4 months ago

who can help me