Because efforts were made to guarantee that OpenIMAJ was written in pure java, most of the code base can be included in any android project in jar format and used directory. The only exceptions to this rule are the base ImageUtilities which cannot be used (as they use BufferedImage) and instead the user should construct OpenIMAJ images manually, often a case of filling a float array with pixel values.
This page will eventually contain a working android project which extracts SIFT features from images taken with an android phone.
Anonymous
when OpenIMAJ can support android?
As far as I'm aware it should all work now. The haar cascade stuff was re-written not to use javax.xml.stream a while ago. Please report any problems with android compatibility to the bug tracker: http://jira.openimaj.org
What I mean is create a OpenIMAJ core lib.jar. Currently, it is hard to port the whole project in Android since lots of java files across too many file folders.
OpenIMAJ with all the dependencies would probably be too big to make this practical in the general case. It is easy to create a custom jar with just the bits you need though: follow the instructions on getting started with maven in the tutorial (http://www.openimaj.org/tutorial/getting-started-with-openimaj-using-maven.html) to create a project using the archetype, then edit the pom.xml file to add/remove any parts of OpenIMAJ you don't want, then run "mvn assembly:assembly" to build a jar which you can use in your android project.
Is there anybody come out with a ready to use openimaj lib sets for android?
You can just add the required openimaj libraries and their dependencies to your android project (or follow the instructions in the comment above to create a fat jar with all the bits you need), or use the maven android plugin and do everything with maven...
You'll probably need a way for converting Android
Bitmap
s to/from the openimaj image formats (i.e.MBFImage
). Here's a helper class one of my students wrote:Cannot find any class inside org.openimaj.ml.gmm however documentation says there exist GaussianMixtureModelEM class. Dont know what am I doing wrong I downloaded Clustering Library 1.3.1 jar file.
Any help would be appriciated
It's definitely in the clustering jar: