Primitive text direction feature detector

v.1.1 of text direction feature detector :)
Yeah, that is pretty dirty. Planned to remove that code and add image binarization in the beginning...