Optical pattern recognition on nonvertical imagery