From 246790ff4c71bcdaf749d99a47fe58770d55628a Mon Sep 17 00:00:00 2001 From: gac-x04sa Date: Thu, 4 Jul 2019 14:30:44 +0200 Subject: [PATCH] Script execution --- script/device/Image.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/device/Image.py b/script/device/Image.py index 10798fc..8aa14a4 100644 --- a/script/device/Image.py +++ b/script/device/Image.py @@ -16,10 +16,10 @@ class ImageIntensity(DeviceBase, Readable): AUTO_THRESH2_COUNT=thresh2_count AUTO_THRESH3_COUNT=thresh3_count AUTO_THRESH4_COUNT=thresh4_count - AUTO_THRESH1 = self.pixel.threshold1 - AUTO_THRESH2 = self.pixel.threshold2 - AUTO_THRESH3 = self.pixel.threshold3 - AUTO_THRESH4 = self.pixel.threshold4 + AUTO_THRESH1 = self.getParent().pixel.threshold1 + AUTO_THRESH2 = self.getParent().pixel.threshold2 + AUTO_THRESH3 = self.getParent().pixel.threshold3 + AUTO_THRESH4 = self.getParent().pixel.threshold4 ret = I_sum #if area_bgr > 0: