Open thiagodma opened 1 year ago
@thiagodma Maybe you can try pytesseract.
Hmm, @majunze2001 I tried pytesseract but it was both slower and poorer on accuracy
Reduce input resolution, make it black and white (threshold it so you only black or white pixels, not grayscale), use a GPU (or a better one). The neural network is going to take as much time as it needs, EasyOCR can't override the operations it does to increase speed.
In addition to @JulianOrteil suggestions, you may also try model compression techniques like pruning (and quantization and fp32-fp16 conversion but those will have relatively less speed gains) to gain a bit of speed and drastically reduce memory used by the model( model load time will also decrease ).
I'm building an application that needs the OCR to be really fast. I'm taking about 50ms to get text from a small image but I'd like to take something like 10ms. In my usecase I don't have to get perfect predictions, so I'd like to trade accuracy for speed.
Is there a simple way for doing that?