License plate recognition using template matching