当使用VisionKit的VNDocumentCameraViewController扫描文档时,相机会在几秒钟后挂起。扫描是在ViewController中实现的,它在SwiftUI中使用。DocumentScannerViewController的实现import VisionKit
final class DocumentScannerViewController: UIViewController, VNDocument
我已经使用visionKit实现了文档扫描器。最初,我遇到了相机关闭的问题,并解决了它。现在我正在尝试发送图像后,相机解散从框架到样本项目。 我试过使用完成处理程序,但它不起作用。以下是框架的代码: public class A8Scan: NSObject, VNDocumentCameraViewControllerDelegate {
let scannerViewController = VNDocumentCameraViewC