I'm trying to get the detect the number of horizontal and vertical lines and based on that, I want to detect the name of the symbol.
I have tried this approach, Java image analysis - counting vertical lines but the solution is very image specific whereas in my case, the image threshold would change according to the image.
These are some of the symbols that I have to detect (have a set of more 30 symbols). I have used some other approaches using Marvin, but those are also not giving me proper results.
Any help would be highly appreciated. Thank you.

