Ask Your Question

user12551's profile - activity

2017-11-08 05:06:21 -0500 edited question Android Static OpenCV Libs or OpenCV Manager (Async)

Android Static OpenCV Libs or OpenCV Manager (Async) is it necessary that I use OpenCV Manager (Async OpenCV init method

2017-11-08 05:04:39 -0500 asked a question Android Static OpenCV Libs or OpenCV Manager (Async)

Android Static OpenCV Libs or OpenCV Manager (Async) is it necessary that I use OpenCV Manager (Async OpenCV init method

2017-07-16 05:09:38 -0500 commented question LBP for vehicle detection

@GilLevi this is ugly cascade, it selects big areas around cars and gives false results

2017-03-16 05:00:12 -0500 asked a question Building OpenCV 2.4 for arm64-v8a or x86_64 (CMake / make)

I tried to compile OpenCV 2.4.11 for arm64-v8a, but there is only one .so file I got after building in my_build\lib\arm64-v8a folder: libopencv_info.so (others are .a)

What did I do wrong?

It should also have built libopencv_java.so & libnative_camera_r*.so files, but it haven't

cmake parameters:

cd opencv\platforms
mkdir build_android_arm
cd build_android_arm
cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=..\android\android.toolchain.cmake  -DANDROID_ABI="arm64-v8a"  -DWITH_TBB=ON  -DINSTALL_ANDROID_EXAMPLES=ON  -DANDROID_NATIVE_API_LEVEL=16 -D WITH_OPENCL=OFF -D WITH_OPENCL_SVM=OFF -D WITH_OPENCLAMDFFT=OFF -D WITH_OPENCLAMDBLAS=OFF ..\.. 
make

OpenCV 2.4.11 source code: github.com/opencv/opencv/releases/tag/2.4.11

2017-03-12 04:36:53 -0500 commented question OpenCV 2.4.11 NDK arm64-v8a x86_64

Hello, did you succeed in building this 64bit library? I also need it for 64bit devices and 2.4* version of OpenCV

2017-03-12 04:29:24 -0500 asked a question OpenCV 4 Android 2.4.13 arm64-v8a

How can I compile arm64-v8a library of OpenCV 2.4.13 for android? OpenCV 2.4.* doesn't have this one and I can't run my app on Meizu devices. I need 2.4.* OpenCV, not 3.*

2017-03-09 18:20:08 -0500 asked a question Lollipop 5.1 (API 22) app crashes on OpenCV init 2.4.13

Lollipop 5.1 (API 22) app crashes on OpenCV init 2.4.11 with next error:

03-09 23:01:30.944 28467-28467/com.example.myapp E/MTPROF: mtprof entry can not be found!
 java.io.FileNotFoundException: /proc/mtprof/status: open failed: ENOENT (No such file or directory)
     at libcore.io.IoBridge.open(IoBridge.java:496)
     at java.io.FileInputStream.<init>(FileInputStream.java:76)
     at java.io.FileInputStream.<init>(FileInputStream.java:103)
     at android.app.ActivityThread.attach(ActivityThread.java:5464)
     at android.app.ActivityThread.main(ActivityThread.java:5666)
     at java.lang.reflect.Method.invoke(Native Method)
     at java.lang.reflect.Method.invoke(Method.java:372)
     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
  Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
     at libcore.io.Posix.open(Native Method)
     at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
     at libcore.io.IoBridge.open(IoBridge.java:482)
     at java.io.FileInputStream.<init>(FileInputStream.java:76) 
     at java.io.FileInputStream.<init>(FileInputStream.java:103) 
     at android.app.ActivityThread.attach(ActivityThread.java:5464) 
     at android.app.ActivityThread.main(ActivityThread.java:5666) 
     at java.lang.reflect.Method.invoke(Native Method) 
     at java.lang.reflect.Method.invoke(Method.java:372) 
     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959) 
     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)

Error happens here

OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_11, mContext, loaderCallback);

Works ok on 4.4.4 (API 19)

Any ideas why it happens?

5.1 - Meizu M2 4.4.4 - Samsung S Advanced (GT-i9070)

Also tried using static method (without OpenCV manager when commenting OpenCVLoader.initAsync) and still got same error