How to recognise different symbols from their slope ? like (,^) etc i am trying to build a program in which user input a symbol with mouse and program recognise the symbol by saving mouse coordinates in array ,for this i have followed following steps:


Firstly check if line is straight or not by straight line equation.
I am able to recognise symbols like vertical,horizontal lines, forward and backward slash with the help of the slope of line.
but for >,&lt;,^ i don't know what to do, for starters i have solved it like this, for example if &lt; is to be recognised first symbol should be backward and second to be forward slash but this conflict with ^.


please let me know if there's another method for solving this problem.
My way of doing it would be:


Extract LBP feature vectors for the reference symbols are store it. 
Now extract LBP feature vector of the test symbol.
Compare it with the list of available reference feature vectors and choose the one with minimum difference.


This method can also be extended to other symbols.