diff --git a/script/CoverDetection.py b/script/CoverDetection.py index c5b81cf..56d37a1 100644 --- a/script/CoverDetection.py +++ b/script/CoverDetection.py @@ -10,7 +10,9 @@ line.getProcessor().setBackgroundValue(0.0) #renderer = show_panel(line.bufferedImage) #ip = get_image() + ip = average_frames(5) +ip = grayscale(ip, False) show_panel(ip.bufferedImage) smooth(ip) diff --git a/script/local.py b/script/local.py index 87e2e1b..a9ebaa4 100644 --- a/script/local.py +++ b/script/local.py @@ -80,7 +80,7 @@ def get_image(): roi = get_roi() ip = load_image(img.image) ret = sub_image(ip, roi[0], roi[1], roi[2], roi[3]) - grayscale(ret, do_scaling=True) + grayscale(ret, do_scaling=False) return ret