public ImageType classify() {
		List<String> frameAsJPEG = getImagesFromVideo();
		Map<ImageType, Integer> maxImageTypeForFrames = new HashMap<ImageType, Integer>();
		ImageClassification imageClassifier = ImageClassification.getInstance();
		for(String filePath : frameAsJPEG) {
			Path jpegImagePath = Paths.get(filePath);
			ImageType type = imageClassifier.classify(jpegImagePath);
			Integer count = maxImageTypeForFrames.get(type);
			if(count != null){
				count++;
			}else {
				count = new Integer(1);
			}
			maxImageTypeForFrames.put(type, count);
		}
		
		ImageType maxOccuring = null;
		int maxValue = 0;
		for(ImageType currentType : maxImageTypeForFrames.keySet()) {
			int currentValue = maxImageTypeForFrames.get(currentType);
			if(maxOccuring != null){
				maxValue = maxImageTypeForFrames.get(maxOccuring);
			}
			if(currentValue > maxValue) {
				maxOccuring = currentType;
			}
		}
		return maxOccuring;
	}