Closedown
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user