changes in main
tested global and adaptive binarization