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 !
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):
Thank you for this great library. I'm so excited for the CV optical flow !