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