Migrate away from the last old cv API usage
Experiment with adaptive thresholding

This produces better results on a wider range of scans but wider
testing is needed