Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tianchaocode opened this issue Apr 15, 2024 · 3 comments
Open

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

tianchaocode opened this issue Apr 15, 2024 · 3 comments
Assignees

Comments

@tianchaocode
Copy link

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:

  • com.google.mlkit:text-recognition-chinese:16.0.0

Smartphone:

  • Device/Simulator OS: Android 9.0 [ro.build.version.sdk]: [28]

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

  • IDE Eversion: Android Studio 4.1.3
  • Laptop/Desktop: windows 10 professional version
@tianchaocode
Copy link
Author

Similar issues: #655

@tianchaocode
Copy link
Author

hello?

@stunningdimension22 stunningdimension22 self-assigned this Apr 15, 2024
@tianchaocode
Copy link
Author

who can help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@tianchaocode @stunningdimension22 and others