Closed anonym24 closed 6 years ago
SOLVED
for Objective-C I needed to replace
tesseract.image = [imageDigit g8_blackAndWhite];
with
tesseract.image = imageDigit;
please mention about it here https://github.com/gali8/Tesseract-OCR-iOS/wiki/Using-Tesseract-OCR-iOS
now output is ok
Obj-C 7.447998 ms
Swift 9.025146484375 ms
Obj-C 7.285889 ms
Swift 13.0029296875 ms
Obj-C 7.096680 ms
Swift 9.7451171875 ms
Obj-C 7.075928 ms
Swift 8.2158203125 ms
Obj-C 6.884766 ms
Swift 9.750732421875 ms
Obj-C 6.822021 ms
Swift 8.088134765625 ms
Obj-C 7.063965 ms
Swift 7.68115234375 ms
Obj-C 8.116943 ms
Swift 9.4638671875 ms
Swift recognition is faster than Objective-C? How is that possible?
Here what I tested (called the next functions for the same image many times)
Swift
Objective-C
Output