From b536ee9e9d051c21e6c43117074f80cbed5f7bcc Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Thu, 22 Sep 2016 14:42:20 +0200 Subject: [PATCH] Closedown --- script/local.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/script/local.py b/script/local.py index 1136cd2..3861fd0 100644 --- a/script/local.py +++ b/script/local.py @@ -30,21 +30,9 @@ class RobotTCP(TcpDevice): add_device(RobotTCP("robot_tcp", "127.0.0.1:3333"), force = True) -import ch.psi.pshell.imaging.Data as Data -class Exposure(Writable): - def write(self,pos): - cam.setExposure(pos) -exposure=Exposure() -add_device(exposure, force = True) +add_device(img.getContrast(), force = True) -class Contrast(Readable): - def read(self): - data = img.getData() - roi = Data(data.getRectSelection(500,300,700,600)) - return roi.getGradientVariance() -contrast=Contrast() -add_device(contrast, force = True) def detect_pucks(ip):