Wavelet transforms and neural networks for compression and recognition