From 581f0eb863502186e313f06e19e02e85120719dc Mon Sep 17 00:00:00 2001 From: xulihang Date: Thu, 4 Jul 2024 09:21:21 +0800 Subject: [PATCH] fix the template name --- ios/VisionCameraDynamsoftDocumentNormalizer.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/VisionCameraDynamsoftDocumentNormalizer.swift b/ios/VisionCameraDynamsoftDocumentNormalizer.swift index 19ce329..8a0b72d 100755 --- a/ios/VisionCameraDynamsoftDocumentNormalizer.swift +++ b/ios/VisionCameraDynamsoftDocumentNormalizer.swift @@ -74,10 +74,10 @@ class VisionCameraDynamsoftDocumentNormalizer: NSObject,LicenseVerificationListe image = BitmapUtils.normalizedImage(image) let points = quad["points"] as! [[String:NSNumber]] let quad = Quadrilateral.init(pointArray: convertPoints(points)) - let settings = try? VisionCameraDynamsoftDocumentNormalizer.cvr.getSimplifiedSettings(template) + let settings = try? VisionCameraDynamsoftDocumentNormalizer.cvr.getSimplifiedSettings(templateName) settings?.roi = quad settings?.roiMeasuredInPercentage = false - try? VisionCameraDynamsoftDocumentNormalizer.cvr.updateSettings(template, settings: settings!) + try? VisionCameraDynamsoftDocumentNormalizer.cvr.updateSettings(templateName, settings: settings!) let capturedResult = VisionCameraDynamsoftDocumentNormalizer.cvr.captureFromImage(image, templateName: templateName) let results = capturedResult.items