Try to run the sample code from the session:
import Foundation
import CoreImage
import Vision
import CoreML
guard var inputImage = CIImage(contentsOf: #fileLiteral(resourceName: "IMG_0001.HEIC"))
else { fatalError("image not found") }
inputImage
let requestHandler = VNImageRequestHandler(ciImage: inputImage)
let documentDetectionRequest = VNDetectDocumentSegmentationRequest()
try requestHandler.perform([documentDetectionRequest])
inputImage preview showed correctly, but requestHandler.perform failed with following errors:
Error Domain=com.apple.vis Code=9 "failed to create image analyzer" UserInfo={NSLocalizedDescription=failed to create image analyzer, NSUnderlyingError=0x600002eac060 {Error Domain=com.apple.vis Code=9 "ImageAnalyzer failure with status 8539 (Espresso error)" UserInfo={NSLocalizedDescription=ImageAnalyzer failure with status 8539 (Espresso error)}}}
please help.