Run the script again and I just get a blank (black) window. Run it again and all works well but once more the webcam stays on and I get a blank window the next time and so on, and so on.
I've tried "del cam" and "del disp" as suggested on other forums but nothing works.
Is there a way to tidy everything up on exit ?
Code: Select all
from SimpleCV import *
import time
try:
cam = Camera()
disp = Display((640,480))
while not disp.isDone():
img = cam.getImage()
edge = img.edges(t1=160)
edge.show()
time.sleep(0.04)
except:
pass