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


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

    // Initialize a VisionImage with a UIImage.

    // [START detect_faces]
    faceDetector?.detect(in: visionImage) { (faces, error) in
      guard error == nil, let faces = faces, !faces.isEmpty else {
        // Error. You should also check the console for error messages.
        // [START_EXCLUDE]
        let errorString = error?.localizedDescription ?? Constants.detectionNoResultsMessage
        print("Face detection failed with error: \(errorString)")
        self.resultsTextView.text = "Face Detection: \(errorString)"
        // [END_EXCLUDE]
        return
      }

