 }
 
 ///Makes every method is optional
-extension VisageDelegate {
+extension VisionDetectorDelegate {
     func didNoFaceDetected() {}
     func didFaceDetected() {}
     func didSmile() {}

import AVFoundation
import ImageIO

public protocol VisageDelegate {
    func didNoFaceDetected()
    func didFaceDetected()
    func didSmile()

    func didRightEyeOpened() {}
}

class VisionDetector: NSObject, AVCaptureVideoDataOutputSampleBufferDelegate {
    
    public var delegate:VisionDetectorDelegate? = nil
    
    enum DetectorAccuracy {
        case BatterySaving
