Closedown

This commit is contained in:
sfop
2016-08-18 16:34:33 +02:00
parent c1aaeba4f5
commit edb0f08e74
+2 -2
View File
@@ -32,7 +32,7 @@ def get_centroid(source):
class ImageStats(DeviceBase):
def __init__(self, name, source):
DeviceBase.__init__(self, source.getName() + " stats")
DeviceBase.__init__(self, name)
self.com_x_samples, self.com_y_samples = [], []
class ComX(Readable):
def read(self):
@@ -84,7 +84,7 @@ if __name__ == "__builtin__":
add_device(ImageStats("image_stats", image), True)
image_stats.enableBackground(False)
for i in range (100):
image_stats.update()
imagestats.update()
print camera_tool.take(), camera_tool.com_x.read(), camera_tool.com_y.read()