OCRNeuralNetwork/src/com/conordevilly/ocr/neuralnetwork/PersistanceManager.java
public static NeuralNetwork readNN(File f) throws FileNotFoundException{
		NeuralNetwork nn = null;
		FileInputStream in = new FileInputStream(f);
		try {
			ObjectInputStream reader = new ObjectInputStream(in);
			nn = (NeuralNetwork) reader.readObject();
			reader.close();
			in.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return nn;
	}
//Read a Network from a given file
Read a Network from a given file
Read a Network from a given file
public static NeuralNetwork readNN(File f) throws FileNotFoundException{
		NeuralNetwork nn = null;
		FileInputStream in = new FileInputStream(f);
		try {
			ObjectInputStream reader = new ObjectInputStream(in);
			nn = (NeuralNetwork) reader.readObject();
			reader.close();
			in.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return nn;
	}
public static NeuralNetwork readNN ( File f ) throws FileNotFoundException { NeuralNetwork nn = null ; FileInputStream in = new FileInputStream ( f ) ; try { ObjectInputStream reader = new ObjectInputStream ( in ) ; nn = ( NeuralNetwork ) reader . readObject ( ) ; reader . close ( ) ; in . close ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return nn ; }
Read a Network from a given file
Read a Network from a given file