Tweak global thresholding. Add sobel edge detection.