I am working on opencv face detection project in android. i have an issue regarding Library reference, i have manually set the reference from project properties--->android but it is not been set. kindly help
There is not issue regarding ndk paths or other path settings
screen shot are shown below
Check Android.mk and path to OpenCV Directory.
Please, put Android.mk there and oath to OpenCV lib. And you mast Add OpenCV library to project
Your library and the project has to be in same directory then it will work..
Related
I already watched so many tutorials online but I can't figure out what's wrong with the sample projects given by the openCv.
I also follow the steps given in this link : sample question
The error in 15 puzzle is different from camera-calibration and color-blob-detection.
After I deleted the error lines in JavaCameraView.java file, some of the samples start to works fine.
My ndk version is r10 and OpenCV version is 2.4.9. I hope someone can help me solve my problem. Thanks in advance!
You can look at this sample. Basically you will just need to redirect the library to your folder
After some configurations, I finally figured out how to solve my problem. Here are the steps:
First: Click on every folder->Properties->Android->Delete the unknown reference then add the OpenCV library.
Second: Make sure to link the C/C++ Build by Properties-> C/C++ Build-> Then copy the file path of your ndk folder
Third:copy jni folder present in face detection or other projects then paste it to a project that don't have a jni folder.
Fourth: Change the include declaration to local library of OpenCV.mk in Android.mk file.
Ex. include C:/Dev/OpenCV-2.4.9-android-sdk/OpenCV-2.4.9-android-sdk/sdk/native/jni/OpenCV.mk
Fifth:Make sure to clean and build the project.
Finally run every project on your device. cherio!
I'm trying to use opencv for android on my image processing application. I configured opencv library and it works well with the sample projects. When I try to run my own project using opencv, I get "Android Library Projects cannot be Launched". I have checked the Project properties ,is Library is checked for my project for the openCV library,Cleaning the project does not help either.
Please help me.
The steps to configure OpenCV4Android library for your projects:
Import the OpenCV library project to your workspace.
Go to OpenCV library project->Properties->Android.
Mark the "isLibrary" checked if it is not.
Go to YourProject->Properties->Android. In Library Section click on add. select OpenCV Library from the list.
Do your necessary codes in your project and compile it.
If you need more details, You can get from here. Remember, your project should not be marked as library project. So don't mark the isLibrary checked in your project properties.
Thanks.
Im trying to use face dection code of opencv on android
but there are some problems even i clean the project like the others said.
here is the description on the eclipse
The project cannot be built until build path errors are
resolved OpenCV Sample - color-blob-detection Unknown Java Problem
The container 'Android Dependencies' references non existing library
'C:\OpenCV-2.4.3-android-sdk\sdk\java\bin\opencv library -
2.4.3.jar' OpenCV Sample - color-blob-detection Build path Build Path Problem
Its mostly a problem with the path.
Have you checked the path correctly? (Jones suggestion should work for you)
If its correctly set... I would ask you to check the make file in JNI folder and use this full path, and also check the build path -> C++ -> GNU C++ -> add this path (if not already added).
Then you should be able to get this to work.
There isn't any .jar to import.
If you follow openCV tutorial (http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html)
and import all Samples and Library you should be sure that Library project can be built without error.
In my case I have just set the Android Target at the current release 5.1.1.
To do that, right click on project "OpenCV Library - 2.4.11"->Properties->Android->Select Android 5.1.1->Apply
My team is currently developing a game in Android together with AndEngine GLES2. We are using the extension AndEngine Augmented Reality. My problem is there is this error that I couldn't find any good answers to fix it. So this the error:
The container 'Android Dependencies' references non existing library 'C:\Users\Asdfghjkl\workspace\nicolasgramlich-AndEngineAugmentedRealityExtension-8e9a644\bin\nicolasgramlich-andengineaugmentedrealityextension-8e9a644.jar'
can anyone help me with this? please make it an easy-to-follow fixing guide. THANK YOU!
Actually, I copied the code of the augmented reality and pasted it in my own named class.
P.S I'm using Eclipse IDE here :)
You should add it to the project "internally" instead of a link to a path. Just go to where you have installed the library, then look for the jar. Asuming you're using Eclipse as IDE:
0º Check the folder libs, you should have that jar added there, remove it.
1º Copy the JAR into the folder "libs" inside your Android Project.
2º The android dependencies will be updated, you can check it from "Android Dependencies" in the project tree
Hope it helps
I am working with Android API 17 on eclipse Indigo. I have cloned the faccebook sdk from github and done the facebook library project set up using the source project provided in the fb sdk.
Now I'm trying to include this library project in my android demo project. I have added it under Project properties->Android->Library section. Im seeing green color tick mark infront of the added library.
Also, i have added the same in the Project properties->Java build path->Projects.
build is successful. but when i try to install on my AVD, im getting the error, E/AndroidRuntime(748): java.lang.NoClassDefFoundError: com.facebook.android.Facebook
Can anybody plz help me how to fix this issue.
---- EDIT ------
One more thing I have observed is, when i opened Project properties->Android window, the green tick mark is not displaying under Library section, instead I'm seeing red cross mark.
Any ideas?
Thanks,
Venkat Papana
Same thing happen for me also.. try below .. it will work..
A Best way to add External Jars to your Android Project or any Java project is:
Create a folder called libs into you project root folder
Copy your Jar files to the libs folder
Now right click on the Jar file and then select Build Path > Add to Build Path, this will create a folder called Refrenced Library into you project, and your are done
By do doing like this, whenever you transfer you project to other Computer, you will not miss your libraries which are being referenced to some space on your Hard drive.
(The facebooksdk.jar can be found at the facebook-sdk directory: <facebook-sdk>\facebook\bin)
i know this question is old But I thought that may be it can help someone.
Move the library project and the application on the same drive. Usually this is a bug in Eclipse.
I solved my problem by moving them in same drive on my computer.
You can Give it a try.
You need to make both project in same dictionary then include it using Project Properties -> Android-> Library.
This works fine.
You do not have to add this to the library project as this is not the library.
https://github.com/facebook/facebook-android-sdk is the help of the project ad the sample code for the including the project in our code. Just you need to create the app ID for the facebook by registering your api with it.
Hope this will help you in your project.
Resolved by copying the com.facebook.android source code to my project source.