NMAC427 / SwiftOCR

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

Fixed issue where training app wouldn't compile on mac #155

Closed mattstanford closed 5 years ago

mattstanford commented 5 years ago

The GPUImage library redefines the "UIImageOrientation" definition when compiled on MacOS, since MacOS applications aren't built with UIKit. Unfortunately GPUImage did not make the naming changes that affected the UIImageOrientation enum (e.g. UIImageOrientation.up -> UIImage.Orientation.Up).

Since the training app is built on MacOS, the recent change to update the SwiftOCR library to Swift 4.2 broke it. I have put in a few ifdef statements to account for this.

Fixes #153

NMAC427 commented 5 years ago

Thank you @mds6058