2 ms·
Outstanding. I have a question, and it's not a complaint or a request for anything except a bit of data: What kinds of text does it support, as in, would it wor
by SiVal 5y ago
Outstanding. I have a question, and it's not a complaint or a request for anything except a bit of data: What kinds of text does it support, as in, would it work for handwritten English, or German rotated 45 degrees, or Japanese...?
- darcien 5y agoI dug into the code, looks like it use VNRecognizeTextRequest[1] from Vision framework by Apple here [2]. And the docs says >By default, a text recognition request first locates all possible glyphs or characters in the input image, then analyzes each string. Since the code doesn't specify any preferred languages, I think it would try to detect any languages supported by the framework. From short googling, I found this thread [3]. Looks like the supported languages depends on the MacOS version, and it only support en, fr, it, de, es, pt, zh on Big Sur. Not sure about the rotation though. [1] https://developer.apple.com/documentation/vision/vnrecognizetextrequest https://developer.apple.com/documentation/vision/vnrecognize... [2] https://github.com/schappim/macOCR/blob/master/ocr/main.swift#L55 https://github.com/schappim/macOCR/blob/master/ocr/main.swif... [3] https://developer.apple.com/forums/thread/121048 https://developer.apple.com/forums/thread/121048