Image and video text recognition using convolutional neural networks