Coder Social home page Coder Social logo

Comments (5)

locked-fg avatar locked-fg commented on September 28, 2024

HI, just tested it with plain Java and a call from the commandline

public class SurfDemo {

    public static void main(String[] args) throws IOException, URISyntaxException {
        // load the image
        InputStream stream = SurfDemo.class.getClassLoader().getResourceAsStream("test.jpg");
        ColorProcessor image = new ColorProcessor(ImageIO.read(stream));

        // initialize the descriptor
        SURF descriptor = new SURF();

        // run the descriptor and extract the features
        descriptor.run(image);

        // obtain the features
        List<double[]> features = descriptor.getFeatures();

        // print the features to system out
        for (double[] feature : features) {
            System.out.println(Arrays2.join(feature, ", ", "%.5f"));
        }
    }
}

Works without errors. Any Idea? Otherwise I tend to think it's a sbt issue,

from jfeaturelib.

samos123 avatar samos123 commented on September 28, 2024

Thanks for confirming it's working as expected I will try to switch to Java and report back :)

from jfeaturelib.

samos123 avatar samos123 commented on September 28, 2024

It's working like you said. So it seems related to sbt / scala..

I've updated the repo jFeatureLib examples to fix some issues and add the surf demo there:
locked-fg/JFeatureLib-Demo#1

from jfeaturelib.

samos123 avatar samos123 commented on September 28, 2024

@locked-fg I'm opening it again as I can reproduce the issue in my repo: https://github.com/samos123/scala-feature-extraction

When using maven to build the scala project everything works as expected but when using sbt it fails with the log4j class not found exception.

I will be sticking with Maven for now but may investigate more into this later on. Any feedback would be appreciated :)

from jfeaturelib.

locked-fg avatar locked-fg commented on September 28, 2024

Thanks for your energy in that point. I'm trying to find a colleague who's willing to invest some energy ( @muuki88 - if you feel bored, feel free to join ;-)

from jfeaturelib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.