From d5e31e6c48355c2b2bf5b84e3c60c5282d6a7b08 Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Fri, 7 Jul 2017 15:24:54 +0200 Subject: [PATCH] Closedown --- script/imgproc/CoverDetection.py | 9 ++++++--- script/setup/Layout.py | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/script/imgproc/CoverDetection.py b/script/imgproc/CoverDetection.py index e742856..24a228b 100644 --- a/script/imgproc/CoverDetection.py +++ b/script/imgproc/CoverDetection.py @@ -7,6 +7,7 @@ img.backgroundEnabled=False REF = (0,96,125) line = load_image("{images}/line.png", title="Line") +#line = load_image("{images}/line360.png", title="Line") line.getProcessor().setBackgroundValue(0.0) @@ -36,7 +37,7 @@ for m in AutoThresholder.getMethods(): renderer = show_panel(aux.bufferedImage) time.sleep(1.0) """ -binary_dilate(ip, dark_background=False) +#binary_dilate(ip, dark_background=False) #binary_fill_holes(ip, dark_background=False) #binary_open(ip, dark_background=Tr) @@ -49,8 +50,10 @@ renderer = show_panel(ip.bufferedImage) -line = sub_image(line, 325, 325, 512, 512) -ip = sub_image(ip, 325, 325, 512, 512) +#line = sub_image(line, 325, 325, 512, 512) +#ip = sub_image(ip, 325, 325, 512, 512) +line = sub_image(line, 453, 453, 256, 256) +ip = sub_image(ip, 453, 453, 256, 256) #op = op_fft(ip, line, "correlate") diff --git a/script/setup/Layout.py b/script/setup/Layout.py index c8a041b..1d4beed 100644 --- a/script/setup/Layout.py +++ b/script/setup/Layout.py @@ -18,7 +18,8 @@ puck_layout = ( (14, 'C', 120, 4, 40.89, 180.40, 198.40, 189.40, 160.89, 59.06 , -170.46, 64.95 , -187.47), (15, 'C', 120, 5, 30.00, 111.90, 129.90, 120.90, 150.00, 55.95 , -96.91 , 64.95 , -112.50), (16, 'D', 180, 1, 0.00 , 57.00 , 75.00 , 66.00 , 180.00, 0.00 , -57.00 , 0.00 , -75.00), - (17, 'D', 180, 2, 0.00 , 132.00, 150.00, 141.00, 180.00, 0.00 , -132.00, 0.00 , -150.00), + (17, 'D', 180, 2, 0.00 , 132.00, 150.00 + , 141.00, 180.00, 0.00 , -132.00, 0.00 , -150.00), (18, 'D', 180, 3, 19.11, 180.40, 198.40, 189.40, 199.11, -59.06 , -170.46, -64.95 , -187.47), (19, 'D', 180, 4, 40.89, 180.40, 198.40, 189.40, 220.89, -118.09, -136.38, -129.87, -149.98), (20, 'D', 180, 5, 30.00, 111.90, 129.90, 120.90, 210.00, -55.95 , -96.91 , -64.95 , -112.50),