SMS dit: Document analysis and recognition with wavelet and fractal theories