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