private String scan(OCRImage image, String identifier, boolean spaces, int spaceDistance, int brightness, double tolerance) {
		ArrayList<CharacterDataMap> temp = getCharacterArray(image, brightness, spaces, spaceDistance);
		ArrayList<CharacterDataMap> characters = characterMap.get(identifier);
		String str = "";
		for(CharacterDataMap map : characters) {
			for(int i = 0; i < temp.size(); i++) {
				if(temp.get(i).getImage() == null)
					continue;
				if(temp.get(i).equal(map, tolerance)) {
					if(temp.get(i).getCharacter() == null || temp.get(i).getCharacter().isEmpty())
						temp.get(i).setCharacter(map.getCharacter());
				}
			}
		}
		for(CharacterDataMap a : temp) {
			if(a.getCharacter() != null)
				str += a.getCharacter();
		}
		return str.trim();
	}