7 ms·
That’s a cool approach. Running OCR locally avoids the usual privacy and latency trade-offs, and turning the phone into a network-accessible endpoint is clever.
by skyzouwdev 1y ago
That’s a cool approach. Running OCR locally avoids the usual privacy and latency trade-offs, and turning the phone into a network-accessible endpoint is clever.
Curious about performance — how fast is the Vision Framework on-device compared to something like Tesseract or cloud OCR APIs? And does the app stay responsive if the phone is handling multiple requests at once?
- riddleling 1y agoI tested it on my iPhone SE 2, and the performance was not great. I’ll run new tests after I get a new iPhone.
- riddleling 1y agoI just switched the HTTP server from Swifter to Vapor, and changed the text recognition API from VNRecognizeTextRequest to RecognizeTextRequest. The OCR speed is faster now—feel free to try it out!