How could I use eigenface on my android application to do some facial recognition? I've found some project such as faint http://faint.sourceforge.net/#mozTocId837572
But have no idea how to use it in my own application.
Can anyone help me?
Thank you
This is a tutorial I used to learn about basic Faint face detection. However it did not work for me ad-hoc, I even ended up downloading the whole Faint source and changing it a bit so that I wouldn't get a NullPointerException. I found the code included in this project (I am not quite sure if it is legally included). The code should help you get acquainted with the basic functionalities.
However, when I got everything fixed I did not quite get the expected results: on a single passport pic I got up to 7 faces detected. Maybe it was just me misconfiguring the library... Many people seem to praise this library.
Hope my bit helps you get started with faint.
Related
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
Im trying to figure out how all of android's gradle build tasks work and Ive found the open source project online but digging through it hasnt really shed much light on how each task for a project works.
https://android.googlesource.com/platform/tools/build/+/6d7fd0d2eff092abf1aaf44d03756b24570b390c/gradle/src/main/groovy/com/android/build/gradle?autodive=0%2F%2F%2F%2F
For example I would love to know the exact script it would take to replicate assemble or package and within those I would like to know exactly how to replicate any their child tasks.
Does documentation like this exist anywhere or are developers expected to bang their heads against the computer screen cursing gradle's creators for hours on end while they figure things out on their own.
And please resist the urge to leave a "read the manual" answer unless you leave a link pointing to what I asked for.
I didnt find any documentation which would outline what I really wanted but over the last few days I put it all together from reading Gradles documentation and doing a lot of debugging. It would be nice if in the future there was clear documentation on all the steps in one place so others dont have to spend days to figure things out.
I would like to check by code if the app installed on device is the last update. I've tried many things but does not work. Finally I've found this interensting API: https://code.google.com/p/android-query/wiki/Service. I'm trying to implement it but i find it kinda difficult for me (I'm quite new in this world). I would like to know if anybody can help me to do this. I don't care if I have to use another API or maybe I can use a google's API to get this information. I just wanto get the version number like: "Application.getLastUpdate" (this is just an example) and compare to app installed version. Can anybody give me a hint?? I would appreciate it too much. Sorry if I haven't explain well myself, I can try it again. Thanxs a lot.
UPDATE 2
I posted an answer that fixes my original problem. See that for more information.
UPDATE
FYI for anyone wondering, in the end I found this: http://github.com/commonsguy/zxingdemo/tree/master Exactly what I needed to get it rolling was a simple demo that worked! Also, thanks to Sean for pointing me in the right direction for my googling.
I am currently trying to build a simple android app that can scan in a barcode. I have looked through multiple tutorials, tried everything to a T, and re-tried and re-tried. Nothing worked. So now I am going to ask for assistance to see where I went wrong.
To list the tutorials I have followed:
https://github.com/phonegap/phonegap-plugins/tree/master/Android/BarcodeScanner
Tried this one first.
http://www.mobiledevelopersolutions.com/home/start/twominutetutorials/tmt3
http://simonmacdonald.blogspot.com/2011/12/installing-barcode-plugin-for-phonegap.html
Plus a couple others, but more or less hit the point to the same process. Some key points, when I add the LibraryProject to my project as a Library, the app will not compile until I create an AndroidManifest.xml I tried using the one found in the LibraryProject and tried creating a bare mininmal one, both would allow to compile, but the app ForceCloses.
When I load up the App and click "Scan" it ForceCloses and in the debug log of LogCat in Eclipse I get:
java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{com.myapp/com.google.zxing.client.android.CaptureActivity}: java.lang.ClassNotFoundException:
com.google.com.zxing.client.android.CaptureActivity in loader dalvik.system.PathClassLoader[/data/app/com.myapp-1.apk]
I have tried googling, found a few issues, but no real clear or solid answers, most just point to the tutorials above. I am not sure if the tutorials are just outdated or I am being stupid and am missing something key. Been working on this for a few days now and am at my wits end.
If you can help I would appreciate it. To avoid answers regarding if I have done X or X, here is what I have done.
When I test the application, I do briefly see it trying to load BarcodeScanner, but right after I see that it ForceCloses. I am not sure what I am missing, but for references I will post the code I currently have setup to test:
AndroidManifest.xml - http://pastebin.com/qq9q0ZU7
Plugins.xml - http://pastebin.com/dZ5eKPSU
index.html - http://pastebin.com/wvht4ken
If I need to post any other items let me know.
On Android, it is much much simpler than all this you're trying to do. Throw this out and restart from http://code.google.com/p/zxing/wiki/ScanningViaIntent
Ok, so for anyone having this problem, you have two choices. You can use the ScanningViaIntent, as Sean pointed out. It works great, if you need an example look at CommonsGuy. As for the tutorials I posted above to get this working with PhoneGap, my whole problem was, after I imported the LibraryProject I did not go back through and add the files. I am not sure if a setting in my Eclipse is bad. But I basically just right clicked on the LibraryProject, went to Import -> File Structure -> Library Project's original project path, and loaded all of it back in there.
There is probably something wrong with my Eclipse setup, but yea. I now have the BarcodeScanner plugin for PhoneGap working!
I am trying to create a live wallpaper using opengl (<2.0).
I imported and tried to run Robert Green's GLWallpaperService and Example here (using Eclipse SDK).
My phone is a Huwei Ascend Android 2.1. I already know it can run other opengl LWPs.
When I run the package, it just produces a solid green screen, and no shapes or anything.
Ive researched it alot and still cant figure out why this is happening.
I read a few times that the namespaces have to be changed to my package. But still no luck...
I tried linking his GLWallpaperService JAR library to my package as per instructed. Nope.
Any guidance would be much appreciated.
I fixed this on my Galaxy Nexus by adding
gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
to onSurfaceCreated in MyRenderer.java.
try gl.glScale() in your Renderer Code. I also got the same problem and i figured out that my GLView was so much zoomed that i cant see anything. try to reduce scale.
My program wo
The example project you linked to had bugs in the rendering code, as others here have pointed out. It has since been deprecated and deleted for maintenance\workload reasons.
However, there's currently some example wallpaper code embedded into the main repository of GLWallpaperService. It's set up as a full Android application so developers can test using that example as needed.