Android OpenCV Setup - android

I am trying to setup eclipse for making a computer vision application for android platform using OpenCV. But i am continuously getting error:
"The application testOpenCV (process.edu.stanford.android) has stopped unexpectedly. Please try again."
while simulating the application.
I followed may tutorials for this but couldn't get it running correct.
The quoted error was when i followed the steps given on
http://www.stanford.edu/~zxwang/android_opencv.html
Please help me as i am failed to figure out the problem.

Would be nice if you give a little more information. The error "The application testOpenCV (process.edu.stanford.android) has stopped unexpectedly. Please try again." is what you always get when you try and run an app that has errors, and doesn't provide any information of these errors at all. There is a thing called logcat in Eclipse which give more detailed information about your errors.
However I suggest you rebuild everything from scratch and follow the tutorial from this site:
http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package.html
It also comes with some samples which you can use and if you want, 2 of these samples use C/C++ code by using JNI calls.

There is a good tutorial where you can find the steps to setup OpenCV with Eclipse. Also if you want tutorials to setup openCV on different OS click on the above link

Related

Processing Android Mode- error after every line

so i have been using processing for quite a while and i am currently really into the android mode.
i have got the newest version of processing and the sdk's installed, and i am also able to run my code on the phone.
One thing that really bothers me is that after every single line the error checker tells me things like "the function size(int,int); doesnt exist".
its not that much of a big deal since my code still compiles and i can run it, but its kind of going on my nerves.
btw there was a discussion considering that once, but no one seemed to have a solution.
thanks in advance :-)
If you want you could use Android Studio to code Processing in Android, then you wont have this issues plus you get autocomplete and a lot more. I made a project mixing Processing and Android in Android studio here: https://github.com/josemg08/ProcessingFragment
Hope I've been of some help, Regard Jose

Xamarin Forms Android Error Message Regarding Support Package and other packages

I am a complete newbie who has just about started android app. development using Xamarin Forms and VS2012. Only about 20-21 days of exposure I have got. I am trying to learn along the way through writing an imaginary practice app. But there are some errors I am getting. You can see them in the picture.
http://imagebin.ca/v/29PeHoLhwW1i
Can someone direct me what exactly it is saying and what I need to do in order to rectify them?Is there something wrong with the installation/environment or like some update? Or is it something else? What's with the "unzipping failed" message?
Some one kindly help me out here please. Facing great deal of difficulty in tackling this.
Many Thanks in advance.
As the error message says (see the third error message ), you need to install the "Android Support Repository" from the Android SDK manager.
The errors are telling you that Xamarin is looking for the support library, but that it cannot find the support library and thus the build failed.
#Tanis.7x and #Jason.
Just an update I want to post:
I went about reproducing this scenario: creating a new project, do some primary simple code, add 1,2 layouts et all. When I build the new project, these 9 errors don't appear. This is strange to me. Because: this is exactly what had happened to my main work also. These errors were not there. Something, somewhere happened along the line, due to which they started appearing suddenly; out of the blue. I remember, I had updated Xamarin version, also just added some packages like JSON.Net and it is only after that this error list appeared. Not before that, if I remember correctly. Which is weird to me. If you try to recreate by creating a brand new project these 9 errors won't appear. I tried recreating this twice; no errors.
Yes, I'm manually downloading the zip file. Hopefully this makes the compiler happy. I'll keep posted about the updates.
Thanks All!

Android Moodstocks image recognition error

Hello everybody I'm using Moodstrocks API in my application where it has an image recognition. When I followed the example here and ran the app, I'm getting error code 2 which is Invalid use of library. I don't know why I'm getting this error I already imported the libraries and followed the tutorial well. Do you know what could be the mistake I did in here? Your help will truly be appreciated. Thanks.
Disclaimer: I work at Moodstocks.
Most of the time, the "invalid use of the library" error comes from the fact that you are trying to perform operations on a Scanner object that has not been opened, or that has already been closed. Bear in mind that the Scanner must remain opened all along the use of the Moodstocks SDK.
So I guess you should check that the open method has worked as expected, and that the Activity holding the Scanner is not prematurely destroyed.
If that doesn't solve the issue, please contact us directly at support#moodstocks.com, we'll be happy to help you.

Android debugging problems

I am very new to Android and Eclipse. I find very difficult to fix up the errors in Eclipse. Android emulator keeps crashing, even for few lines of codes. Is there any tutorial or video tutorial available, that can help me to spot errors on looking at the error log.
Here is a basic tutorial that will get you familiar with Android Debugging and Logcat : Debugging in Android using Eclipse . Also you can set breakpoints and debug as you would for any other Eclipse project. The logging of errors, its different tough, using Logcat.
Yes, you can open DDMS perspective and LogCat window to view logs and can see what is the original issue.
When it crashes, check the LogCat. It contains the stack trace with the exception, and is often enough to see what went wrong and fix it. It can be browsed directly in Eclipse (don't know exactly how, I'm using IntelliJ).
Also, you can use normal debugging on your Android project, exactly the same way you would on a Java (non-Android) project.

Locating Errors When Developing Android Apps

I'm working on my first Android app and to be honest I'm not sure about most of what I'm doing. Right now I'm stuck on a NullPointerException that is created by a line that refers to another class that, in turn, refers to another class.
How can I locate the error?
The word you are looking for is debug. If you are using eclipse, it's very easy to debug your program in most cases. Two main options in eclipse are to use the logger for debug prints to logcat, or debug the program step by step to detect relevant errors. Here is a tutorial for both options and here is a nice video tutorial in YouTube regarding debug in eclipse.
You can use the Eclipse debugger to help with that. Set a break point above the line that errors out and deploy your app using the Eclipse debugger (with the little bug icon) rather than the standard deployer (the play button). You'll be able to see what is going on right before the line with the error occurs and hopefully fix things up.
If that doesn't work, you can post the stack trace and your method that has the error and we can take a look at it.

Categories

Resources