7

I am using opencv for android. I tried to init opencv with static initialization. I followed the doucument from here

Now i got a problem.

01-01 20:01:46.156: D/OpenCV/StaticHelper(14057): Trying to get library list
01-01 20:01:46.156: D/OpenCV/StaticHelper(14057): loadLibrary opencvinfo
01-01 20:01:46.156: D/OpenCV/StaticHelper(14057): /vendor/lib:/system/lib
01-01 20:01:46.156: E/OpenCV/StaticHelper(14057): OpenCV error: Cannot load info library for OpenCV
01-01 20:01:46.156: D/OpenCV/StaticHelper(14057): Library list: ""
01-01 20:01:46.156: D/OpenCV/StaticHelper(14057): First attempt to load libs
01-01 20:01:46.157: D/OpenCV/StaticHelper(14057): Trying to init OpenCV libs
01-01 20:01:46.157: D/OpenCV/StaticHelper(14057): Trying to load library opencv_java
01-01 20:01:46.177: D/OpenCV/StaticHelper(14057): OpenCV libs init was ok!
01-01 20:01:46.177: D/OpenCV/StaticHelper(14057): First attempt to load libs is OK
Girish Nair
  • 5,148
  • 5
  • 40
  • 61
jack
  • 93
  • 1
  • 1
  • 6

2 Answers2

1

The same problem occurs when the phone does not supporting OpenCV version 2.x. If this is the case, The emulator would be working fine.

Switch to OpenCV version 3.x, where it works fine.

Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140
Ng Sek Long
  • 4,233
  • 2
  • 31
  • 38
0

logcat "01-01 20:01:46.177: D/OpenCV/StaticHelper(14057): OpenCV libs init was ok!" it mean you opencv libs has success load ,and what's your problem?

Girish Nair
  • 5,148
  • 5
  • 40
  • 61
Qichao Chen
  • 166
  • 1
  • 10
  • thank your .the problem is :logcat E/OpenCV/StaticHelper(14057): OpenCV error: Cannot load info library for OpenCV and the app can not start.Now i fixed this problem by pushing the lib(libopencv_java.so) into system/lib folder on the phone. – jack Dec 14 '12 at 07:11
  • Where is ` lib(libopencv_java.so)`? I only found libopencv_java.so, I presume they are both the same? – Noha Kareem Jan 29 '13 at 09:21
  • 4
    Is this an answer? How does this solve your problem? I have the same identical problem, and I dont see any solution here – user1137313 Feb 28 '15 at 11:28
  • I have this problem as well, it says that it was loaded OK, but it doesn't work . Only black screen appears. I have this problem only on Samsung Galaxy S3. Works without any problems on HTC Desire X or OnePlusOne. – Heisenbug Jun 30 '16 at 13:29