1

I have build and Run c++ lib asm lib and now i need to port it on Android. There are some file operation are there so i need to get some files from Andorid assets.I have try to load on native side using file:///android_asset and other method also but still having error

Model file not found file:///android_asset/muct76.model

If anyone know how to load file in OpenCV for Android then please let me know.

Sameer Z.
  • 3,265
  • 9
  • 48
  • 72

1 Answers1

0

This two links were very useful for me when I tried to import libs for OpenCV in Android:

  1. OpenCV documentation about native part in Android
  2. NDK App for Android -> This one saved me, since I had a lot of doubts after reading the first (OpenCV documentation). You can go directly to the Step 4.

And here you can see how to read files from assets: read file from assets

I hope they help you too

Community
  • 1
  • 1
serfe
  • 285
  • 5
  • 13