Skip to content

Commit

Permalink
Add helper function for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kingst committed Nov 1, 2019
1 parent bad1702 commit e8b3ec4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CardScan/Classes/Ocr.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ public class Ocr {
width: xMax - xMin, height: yMax - yMin)
}

// used just for testing
@available(iOS 11.2, *)
public static func updateDetectionModel(resourceName: String) {
FindFourOcr.detectModel = nil
FindFourOcr.findFourResource = resourceName
}

public func userCancelled() {
self.scanStats.success = false
self.scanStats.endTime = Date()
Expand Down

0 comments on commit e8b3ec4

Please sign in to comment.