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.
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.