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

Failed to load dynamic library 'libopencv_dart.so': dlopen failed: library "libcamera2ndk.so" not found #244

Closed
ziyad-aljohani opened this issue Sep 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ziyad-aljohani
Copy link

ziyad-aljohani commented Sep 13, 2024

Describe the bug
I get this exception when I run my code to decode Uint8List image.

E/flutter ( 2931): #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12)
E/flutter ( 2931): #2 loadNativeLibrary (package:opencv_dart/src/native_lib.dart:37:29)
E/flutter ( 2931): #3 cimgcodecs (package:opencv_dart/src/native_lib.dart:47:48)
E/flutter ( 2931): #4 cimgcodecs (package:opencv_dart/src/native_lib.dart)
E/flutter ( 2931): #5 imdecodeAsync. (package:opencv_dart/src/imgcodecs/imgcodecs_async.dart:91:32)
E/flutter ( 2931): #6 cvRunAsync (package:opencv_dart/src/core/base.dart:115:21)
E/flutter ( 2931): #7 imdecodeAsync (package:opencv_dart/src/imgcodecs/imgcodecs_async.dart:91:7)

To Reproduce
This is my code:
var res = await http.get(Uri.parse("https://avatars.githubusercontent.com/u/135967503?v=4"));
var buf = res.bodyBytes.buffer.asUint8List();
final im0 = await cv.imdecodeAsync(buf, cv.IMREAD_GRAYSCALE);

Smartphone (please complete the following information):

  • Android emulator
  • API 23 - arm64 I think

Thank you for this great library. I'm so excited for the CV optical flow !

@ziyad-aljohani ziyad-aljohani added the bug Something isn't working label Sep 13, 2024
@rainyl
Copy link
Owner

rainyl commented Sep 14, 2024

thanks for using the package :)

use API 24 and above please.

the prebuilt libs were compiled with the minimum API LEVEL of 24.

@rainyl rainyl closed this as completed Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants