         print("Text detection failed with error: \(errorString)")
         self.resultsTextView.text = "Text detection: \(errorString)"
         // [END_EXCLUDE]
-
         return
       }
 


    // Create a barcode detector.
    // [START init_barcode]
    let barcodeDetector = vision?.barcodeDetector(options: options)
    // Or, to use the default settings:
    // let barcodeDetector = vision?.barcodeDetector()
    // [END init_barcode]


    // Create a text detector.
    // [START init_text]
    let textDetector = vision?.textDetector()  // Check console for errors.
    // [END init_text]

    // Initialize a VisionImage with a UIImage.
