I'm doing a project using OpenCV 2.3.1 and I want to embedded this on a pandaboard. So I'm looking for someone who can help me to instal opencv on Pandabord using Linaro Android 11.11 . If you have some link or if you can advise me I would appreciate.
Thanks in advance.
Best Regards
If you want to run openCV on android I would suggest you learn about the java native interface, JNI. I have developed image processing algorithms on Android cell phones. You want to get Eclipse and install the SDK :http://developer.android.com/sdk/installing.html
After that you need to install the Eclipse NDK in order to develop C/C++ code in your java apps, this gave me about x5 increase in performance: http://developer.android.com/sdk/ndk/index.html
Finally you need to download and link the openCV C/C++ library to your projects:
http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package.html#android-binary-package
You should also check out the google Play Store, they have some cool OpenSource projects you can look at.
Related
I'm trying to create a cordova plugin to use OpenCV on android and iOS.
I am for the moment at the android part.
I downloaded the OpenCV android package, and create a test application with android. That work, so I just need to put that in the plugin.
But I have absolutly no idea about how to import the OpenCV library in the plugin.
Someone know how to do that ?
Thanks in advance
Have you written a cordova plugin in the past? If not, this is probably not the easiest place to start (if you haven't start with the plugin guide from the Cordova team.).
Including JNI (native code) in Android in Cordova plugins is a bit of black art, but you are lucky that someone has gone there before (and abandoned) a
Cordova OpenCV plugin for Android. Study that, and then for iOS it is a lot easier, since you can CocoaPods or just include the library and don't have to worry about C/Java bridge. If all of this is making your head hurt and you have no idea what JNI is then you might want to farm out the writing of this kind of plugin to someone else.
EDIT
I was going to add this in a comment but it was too long:
An apk is a complete App and not a Library.you need to include the various .so files (shared objects) for openCV. If you want to learn how to link a C++ file into an Android app (first step of creating a Cordova Plugin with JNI check out this tutorial. However, since half the work has already been done for you, what I would do is just download the OpenCV Plugin into a directory and then
cordova plugin install
and fix what you need (if you get everything working, think about forking the original project and contribute back to the community :) ).
As stated the plugin for iOS will be similar to other IOS plugins, maybe look at the cordova-cocoapods project, the other cordova-cocoapods project and the OpenCV CocoaPod.
I am new to android and opencv,and I am going to develop a APP using this code with this link
here
http://geekoverdose.wordpress.com/category/computer-vision/
The sample project says that "you will have to get the opencv libraries precompiled" in here what I want to do for run this code correctly.please consider about this issue. in here it is wanted to consider about opencv installation for android or is there any special thing have to do? thank you
It will take a little more effort to "run this code" correctly. In short, JavaCV is a wrapper on top of OpenCV, and you have to compile the OpenCV and correctly move all the shared libraries (.so) to your Android development project etc. Like the original article suggested, you need to go to JavaCV homepage and read the installation instructions.
I am a new to cocos 2D-x. I want to develop applications using cocos 2d-x on cross-platform (typically android, ios and windows 8). I have seen that there is a cocos 2d-x build for windows 8.
My questions are:
Can cocos 2d-x be used to develop such a cross-platform app?
Can we setup cocos 2d-x with Visual Studio 2012 on windows to make such an application?
If yes, any steps are welcome.
Thank you!
Regards,
Gaurav
If you download the cocos2d-x-for-win8 zip file and extract it, you should find a guide.chm help file that provides step-by-step instructions that walk you through the installation and use of it.
if you develop using the html platform Cocos2d-html5 you can build for multiple platforms (here is a basic tutorial).
as for you second question you would just create a new project (web site) then code your javascript.
Currently Im having a problem getting VS to notice cocos2d classes. It was working in Eclipse so idk whats wrong. Just a heads up if you go this route.
I'm having a hell of a time importing OpenCV into my Android project. I've already tried this tutorial:
http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package.html
and it did not work because Eclipse would not recognize the existing projects in the directory. So after much searching I came across this trunk:
https://code.ros.org/svn/opencv/trunk/opencv/
and was able to import it into my workspace in Eclipse. Eclipse now recognizes the sample projects, but now the problem is that there are no OpenCV library files. So all the calls to import different classes result in errors. Shouldn't there be a opencv.jar somewhere? I've seen various posts that mention having to build the library but unfortunately I don't have the slightest clue how to do that. I need something with step by step instructions. I'm running Windows 7 64-bit.
Thanks!
You should download the latest OpenCV 4 Android here:
http://opencv.org/downloads.html
And read these tutorials to get you started (in this order roughly):
Introduction into Android Development
OpenCV4Android SDK
Android Development with OpenCV
OpenCV4Android Reference
If you want to use OPEN CV in your android apps, for example if you need to read some strings from an image in your android and you are new in using OPEN CV. Then download the pre-built OpenCV library for Android from here:
http://sourceforge.net/projects/opencvlibrary/files/opencv-android/2.3/
After downloading, import OpenCV-2.3.1 into Eclipse using File-->Import...-->General-->Existing Project Into Workspace.
In your project's properties, Under Android, add the OpenCV2.3.1 library (press Add.. on the right and select OpenCV2.3.1).
Good luck!
You might want to take a look at this project: https://github.com/billmccord/OpenCV-Android
I was able to run opencv applications on my android phone with the help of this port.
installed the Win-superpack?
I recommend getting the latest .tar, extract and use it. Worked for me.
I posted about this on a duplicate question. Make sure you have the android NDK installed! Or, consider using JavaCV instead. It is much easier to install.
I am a newbie in android development but having plans to become an active developer
I had a c++/Java library called Wt. I need to install this library on android.
http://www.webtoolkit.eu/wt
Do I need to port the source code of library?
If yes please point to me a good resource to start with.
Expecting a good helping hand from this community
It is possible to use native C/C++ code in Android applications, using the Android NDK (Native Development Kit)
And it is apparently possible to compile wt for Android, so hopefully not much porting to do!
See http://redmine.emweb.be/projects/wt/wiki/Installing_Wt_on_Android