This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import AVFoundation | |
import Vision | |
// Note: Please be sure to set the NSCameraUsageDescription key in the project's Info.plist file. | |
class VisionScannerViewController: UIViewController { | |
private let captureSession = AVCaptureSession() | |
private var barcodeRequest: VNDetectBarcodesRequest? |