Increased adaptive threshold and increased number of dilate cycles to better identify black and white bins