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

        print("Landmark detection failed with error: \(errorString)")
        self.resultsTextView.text = "Landmark Detection: \(errorString)"
        // [END_EXCLUDE]

        return
      }


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

