Examples of NeurophImageRecognizer


Examples of org.goai.imagerec.impl.NeurophImageRecognizer

       
        // load neural network from file
        NeuralNetwork neuralNet = NeuralNetwork.load(nnFileName);
       
        // create GOAI classifier with loaded Neuroph neural network
        ImageRecognizer imageRecognizer = new NeurophImageRecognizer(neuralNet);
       
        // test image recognition
        String imgFileName = ImageRecognitionSample.class.getResource("resources/dog.jpg").getFile();
        BufferedImage image = ImageIO.read(new File(imgFileName));
       
        HashMap<String, Double> recognitionResults = imageRecognizer.recognizeImage(image);
       
        String recImage="";
        double max = 0;
        for(String key : recognitionResults.keySet()) {
            if (recognitionResults.get(key) > max) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.