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

Hello I am using ML kit Document skew correction and it is crashing on android 9 only #91

Open
dev-4-oraxtech opened this issue Jun 8, 2023 · 3 comments

Comments

@dev-4-oraxtech
Copy link

When the app gets on this line analyzer.asyncDocumentSkewDetect(frame)
the app crashes with the following error, also everything working fine on android 8, 10, 11 , 12

E/cv::error(): OpenCV(4.5.2) Error: Assertion failed (total() == 0 || data != NULL) in Mat, file /opt/huawei/algo_compiling/opencv/opencv-4.5.2/modules/core/src/matrix.cpp, line 428
E/libc++abi: terminating with uncaught exception of type cv::Exception: OpenCV(4.5.2) /opt/huawei/algo_compiling/opencv/opencv-4.5.2/modules/core/src/matrix.cpp:428: error: (-215:Assertion failed) total() == 0 || data != NULL in function 'Mat'
A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 20200 (doc_scanner_app), pid 20200 (doc_scanner_app)

@ilsafarber
Copy link

Hi @Khawajafakhar

Since the ML kit is adapting to newer Android releases such issues may occur in legacy versions. Can you please share details such as kit version and any other dependencies that you add to your project for me test the case ? Any minimal reproducible project would be helpful. Meanwhile, since the kit is working fine on Android 10, 11 and 12 you may also try to update your app.

@dev-4-oraxtech
Copy link
Author

dev-4-oraxtech commented Jun 19, 2023 via email

@dev-4-oraxtech
Copy link
Author

dev-4-oraxtech commented Jun 19, 2023 via email

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

2 participants