Towards a low-cost air-written character recognition system