On the design of embedded solutions to banknote recognition