OCRNeuralNetwork/src/com/conordevilly/ocr/trainer/GUIController.java
@FXML protected void recordAnswer(ActionEvent event){
		//TODO: Check text set
		//Convert the string taken from the answer box to a char
		char ans = ansBox.getText(0, 1).toUpperCase().toCharArray()[0];
		ansBox.clear();

		if(!guess.getText().equals(ans)){
			//Convert the char to an int form (ASCII table).
			int actual = ans - 65;
			nn.correct(actual);
		}
		loadImage(null);
	}
//Get the correct answer as given by the user
Get the correct answer as given by the user
Get the correct answer as given by the user
@FXML protected void recordAnswer(ActionEvent event){
		char ans = ansBox.getText(0, 1).toUpperCase().toCharArray()[0];
		ansBox.clear();
		if(!guess.getText().equals(ans)){
			int actual = ans - 65;
			nn.correct(actual);
		}
		loadImage(null);
	}
@ FXML protected void recordAnswer ( ActionEvent event ) { char ans = ansBox . getText ( 0 , 1 ) . toUpperCase ( ) . toCharArray ( ) [ 0 ] ; ansBox . clear ( ) ; if ( ! guess . getText ( ) . equals ( ans ) ) { int actual = ans - 65 ; nn . correct ( actual ) ; } loadImage ( null ) ; }
Get the correct answer as given by the user
Get the correct answer as given by the user
//TODO: Check text set //Convert the string taken from the answer box to a char //Convert the char to an int form (ASCII table).