While running a simple code on Open CV:
import cv2
import freenect
device = cv2.CV_CAP_OPENNI
capture = cv2.VideoCapture(device)
While running the above python code.I am getting following error:
Traceback (most recent call last):
File "hello.py", line 4, in <module>
device = cv2.CV_CAP_OPENNI
AttributeError: 'module' object has no attribute 'CV_CAP_OPENNI'
Please look into the code
I have already installed OPENNI.
Thanks in advance.
Try cv2.CAP_OPENNI
instead of cv2.CV_CAP_OPENNI