Skip to content

Commit

Permalink
fix the template name
Browse files Browse the repository at this point in the history
  • Loading branch information
xulihang committed Jul 4, 2024
1 parent 3f5e628 commit 581f0eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/VisionCameraDynamsoftDocumentNormalizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 581f0eb

Please sign in to comment.