Closedown

This commit is contained in:
sfop
2016-08-24 15:26:24 +02:00
parent 56dc5ee71d
commit 3c6f82b26b
2 changed files with 13 additions and 3 deletions
+10 -1
View File
@@ -108,14 +108,23 @@ class ImageStats(DeviceBase):
def doClose(self):
pass
def start(self):
pass
if __name__ == "__builtin__":
def stop(self):
pass
def get_simulated_source():
simulated_source = SimulatedSource()
simulated_source.img=None
simulated_source.initialize()
image.addListener(simulated_source)
show_panel(simulated_source)
return simulated_source
if __name__ == "__builtin__":
simulated_source = get_simulated_source()
print get_centroid(simulated_source)
add_device(ImageStats("image_stats", simulated_source), True)
+3 -2
View File
@@ -186,10 +186,11 @@ class CamTool(DeviceBase):
self.bg_en.close()
self.bg_capture.close()
self.bg_capture_remain.close()
self.image.close()
#self.image.close()
if __name__ == "__builtin__":
pass
"""
camera_tool = CamTool("camtool", latch = False)
add_device(camera_tool, True)
@@ -199,11 +200,11 @@ if __name__ == "__builtin__":
for i in range (100):
camera_tool.capture()
print camera_tool.take(), camera_tool.com_x.read(), camera_tool.com_y.read()
"""
#from camtool import CamTool
camera_tool = CamTool("camtool", latch = True)
add_device(camera_tool, True)
camera_tool.enableBackground(True)
camera_tool.capture()
print camera_tool.take(), camera_tool.com_x.read(), camera_tool.com_y.read()
"""