NMAC427 / SwiftOCR

Fast and simple OCR library written in Swift
Apache License 2.0
4.61k stars 481 forks source link

Use init parameters to configure SwiftOCR #106

Closed guymoreillon closed 6 years ago

guymoreillon commented 6 years ago

The use of public global variables to configure the SwiftOCR instance is awkward, it allows instantiating only one instance at a time and does not self-document the use of the class. This change introduce the necessary parameters in the initialisers. The default initialisers using the global variables remain to maintain backward compatibility, but they should really be removed.