Skip to content

Instantly share code, notes, and snippets.

View ShadowFox144's full-sized avatar

Shrvan Warke ShadowFox144

  • National Institute of Technology Karnataka, Surathkal
View GitHub Profile
@ShadowFox144
ShadowFox144 / camera.py
Created January 6, 2020 05:17 — forked from joinAero/camera.py
Use Kinect with OpenCV (Python)
import cv2
import sys
class Camera(object):
def __init__(self, index=0):
self.cap = cv2.VideoCapture(index)
self.openni = index in (cv2.CAP_OPENNI, cv2.CAP_OPENNI2)
self.fps = 0