Lightweight sign recognition for mobile devices