line characteristics
train svm to predict 0/90 write orientation of textline
GUI can show SVM approved lines
orientation criteria by predicted line count(bad work)
save detected lines to the file
Find peak of small boxes (pepper noise) - decision to use smooth median
Choosing of correct threshold done by OTSU algorithm