Binary decision clustering for neural-network-based optical character recognition