Added adaptive thresholding, tried something with hough transform but it shouldn't be used