* @param charImage character image
* @return recognized character
*/
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));
}