 
         DispatchQueue.main.asyncAfter(deadline: .now() + 0.2) {
             print("Start OCR")
-            
             self.pictureOutput = PictureOutput()
             self.pictureOutput.encodedImageFormat = .png
             self.pictureOutput.onlyCaptureNextFrame = true
             self.pictureOutput.imageAvailableCallback = { sourceImage in
                 if self.processImage(sourceImage: sourceImage) { return }
                 
-                // Not successfull, start another scan
+                // Not successful, start another scan
                 self.StartScan(sender: self)
             }
             self.crop --> self.pictureOutput

        let croppedImage: UIImage = sourceImage.resizedImageToFit(in: CGSize(width: 350 * 0.5, height: 1800 * 0.5), scaleIfSmaller: true)
        
        // rotate image. tesseract needs the correct orientation.
        //let image: UIImage = croppedImage.rotate(by: -90)!
        // strange... this rotate will cause 1/2 the image to be skipped
        
        // Rotate cropped image

    var highlightShadow = HighlightsAndShadows()
    var saturation = SaturationAdjustment()
    var contrast = ContrastAdjustment()
    var adaptiveThreshold = AdaptiveThreshold()
    var crop = Crop()
    var averageColor = AverageColorExtractor()

