         self.navigationController?.delegate = self
         
         self.videoDataOutputQueue = DispatchQueue(label: "VideoDataOutputQueue")
-        self.captureSession.sessionPreset = AVCaptureSessionPresetHigh
         
         updateCameraSelection()
         setupVideoProcessing()

    
    override func viewDidDisappear(_ animated: Bool) {
        self.captureSession.stopRunning()
    }
    
    

    @IBAction func cameraButtonPressed(_ sender: CameraButton) {
        detectionActive = !detectionActive
        sender.animatePress(detectionActive: detectionActive)
        if(detectionActive) {
            self.flipCameraButton.isEnabled = false
            self.moreOptionsButton.isEnabled = false
            self.flipCameraButton.alpha = 0.2
            self.moreOptionsButton.alpha = 0.2
        } else {
            self.flipCameraButton.isEnabled = true
            self.moreOptionsButton.isEnabled = true
            self.flipCameraButton.alpha = 1.0
            self.moreOptionsButton.alpha = 1.0
        }
    }
    
    @IBAction func flipCameraButtonPressed(_ sender: MaterialButton) {
