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: