NMAC427 / SwiftOCR

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

Update to 4.1 #138

Open Ged2323 opened 6 years ago

Ged2323 commented 6 years ago

Hi I think I have updated it to 4.1 but I'm getting this issue.

I'm trying to run the training class - SwiftOCRTraining.swift Though I'm getting an error with this line.

        return OCRFont(name: randomFontName(), size: 45 + randomFloat(5))!

Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value

screen shot 2018-05-21 at 7 46 23 pm

I'm not sure if I've updated the code right but it's building.