Examples of recognizeImage()


Examples of org.goai.imagerec.api.ImageRecognizer.recognizeImage()

       
        // 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

Examples of org.goai.imagerec.impl.NeurophImageRecognizer.recognizeImage()

       
        // 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

Examples of org.neuroph.contrib.imgrec.ImageRecognitionPlugin.recognizeImage()

     */
    public Character recognizeCharacter(BufferedImage charImage) {
        // get the image recognition plugin from neural network
        ImageRecognitionPlugin imageRecognition = (ImageRecognitionPlugin) this.getParentNetwork().getPlugin(ImageRecognitionPlugin.class);

        HashMap<String, Double> output = imageRecognition.recognizeImage(charImage);
        HashMap<String, Neuron> n = imageRecognition.getMaxOutput();

        String ch = n.toString().substring(1, 2);
        return Character.valueOf(ch.charAt(0));
    }
View Full Code Here

Examples of org.neuroph.contrib.imgrec.ImageRecognitionPlugin.recognizeImage()

        // get the image recognition plugin from neural network
        ImageRecognitionPlugin imageRecognition =
                (ImageRecognitionPlugin) this.getParentNetwork().getPlugin(ImageRecognitionPlugin.class);

        // image recognition is done here
        HashMap<String, Double> output = imageRecognition.recognizeImage(charImage);
        HashMap<Character, Double> recognized = sortHashMapByValues(output);

        return recognized;
    }
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.