i am implementing sliding windows technique to develop photo OCR,i.e.,a rectangule of a specific size is cut from the picture and checked if it contains text or not. Then again the rectangle is shifted by some pixels. But this sliding windows technique is taking a lot of time. For example to process a picture of 1366×768 it takes 6 hours with a step size of 2 and window size of 20×25. Is there any other technique which could be helpful or how to speed up the process?
i am coding in java.
It is hard to give a specific recommendation without knowing any details of your algorithm/code. There are several potential performance improvements you could consider: