How can Recognize handwriting number
Depends on where you're trying to implement/the resources available to you.

I've used Support Vector Machine learning for that task; you have to feed in individual characters to train your algo.

take a look at python's scikit-learn and if you ned to implement on FPGA check out: MyHDL