Dear Matthias,
thank you much.
1) Regarding the "fit in" option, everything is clear to me.
2) Regarding the "change the process option", I understand the work involved.
I am not familiar with the earth movers distance method though (I've checked it of course). I am not sure yet how it would be applied in this second option.
For my problem, I would definitively start by experimenting with the first option (fit in).
Right now I have a much more basic problem :), I can run the Liredemo with no problem, as well as the Indexer and searcher examples from the simpleapplication project.
However, I am having problems running the IndexingAndSearchWithLocalFeatures.java example.
------
The error is:
Exception in thread "main" java.lang.NoClassDefFoundError: org/opencv/core/Core
at net.semanticmetadata.lire.imageanalysis.features.local.opencvfeatures.CvSurfExtractor.init(CvSurfExtractor.java:92)
at net.semanticmetadata.lire.imageanalysis.features.local.opencvfeatures.CvSurfExtractor.<init>(CvSurfExtractor.java:78)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at net.semanticmetadata.lire.indexers.parallel.ExtractorItem.<init>(ExtractorItem.java:71)
at net.semanticmetadata.lire.indexers.parallel.ParallelIndexer.addExtractor(ParallelIndexer.java:527)
at net.semanticmetadata.lire.sampleapp.IndexingAndSearchWithLocalFeatures.index(IndexingAndSearchWithLocalFeatures.java:115)
at net.semanticmetadata.lire.sampleapp.IndexingAndSearchWithLocalFeatures.main(IndexingAndSearchWithLocalFeatures.java:72)
-----
What I did, was to create a new Gradle task (I am using Netbeans and Ubuntu) to run the example as follows:
----
task runIndexLocalSLocalFeat(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
systemProperty "java.library.path", "lib/opencv"
main = 'net.semanticmetadata.lire.sampleapp.IndexingAndSearchWithLocalFeatures'
// Define the directory where to find the images to index.
args '/home/nsilva/Documents/images/europeana'
}
----
For some reason, it seems possible to find the opencv_2411.jar, but then it complains about the classes not being found.
Is this the wrong version of OpenCV for the latest release of LIRE? or am I missing some OpenCV files (.so...)?
I promise to not bother you so often after I have this running.
I am understanding the samples and the LIRE code, and I am ready to start making some code changes to fit my problem.
Once more, thank you so much for your help!
best,
Nelson Silva