I am getting the following error when I run the code below:
Error: Camera instance has no attribute 'release'
from SimpleCV import *
import time
def camera(self):
try:
cam=Camera(0)
while cam is not None:
try:
img = cam.getImage()
img.show()
time.sleep(0.1)
except Exception as e:
print(e)
except Exception as e:
print(e)
finally:
cam.release()
del cam
Any suggestions how to correct it?