def __init__(self): self._windowManager = WindowManager('Cameo', self.onKeypress) self._captureManager = CaptureManager(cv2.VideoCapture(0), self._windowManager, True) self._faceTracker = FaceTracker() self._shouldDrawDebugRects = False self._curveFilter = filters.BGRPortraCurveFilter()
def __init__(self, video_source): self._windowManager = WindowManager('Browser', self.onKeypress) self._captureManager = CaptureManager(video_source, self._windowManager, True) self._faceTracker = FaceTracker() self._shouldDrawDebugRects = False self._curveFilter = filters.BGRPortraCurveFilter()
def __init__(self): self._windowManager = WindowManager('Cameo', self.onKeypress) #device = cv2.CAP_OPENNI2 # uncomment for Microsoft Kinect via OpenNI2 device = cv2.CAP_OPENNI2_ASUS # uncomment for Asus Xtion or Occipital Structure via OpenNI2 self._captureManager = CaptureManager(cv2.VideoCapture(device), self._windowManager, True) self._curveFilter = filters.BGRPortraCurveFilter()
def __init__(self): self._windowManager = WindowManager('Cameo', self.onKeyPressed) self._captureManager = CaptureManager( capture=cv2.VideoCapture(0), previewWindowManager=self._windowManager, mirrorPreview=True) self._curveFilter = filters.BGRPortraCurveFilter() self._faceTracker = FaceTracker() self._showDetectionRects = False
def __init__(self): self._windowManager = WindowManager('Cameo', self.onKeypress) #device = cv2.CAP_OPENNI2 # uncomment for Microsoft Kinect via OpenNI2 device = cv2.CAP_OPENNI2_ASUS # uncomment for Asus Xtion via OpenNI2 self._captureManager = CaptureManager(cv2.VideoCapture(device), self._windowManager, True) self._faceTracker = FaceTracker() self._shouldDrawDebugRects = False self._curveFilter = filters.BGRPortraCurveFilter()
def __init__(self, windowName='Cameo', _shouldMirrorPreview=True): self._windowManager = WindowManager(windowName, self.onKeypress) self._captureManager = CaptureManager( capture=cv2.VideoCapture(0), previewWindowManager=self._windowManager, shouldMirrorPreview=_shouldMirrorPreview) self._pictureNumber: int = 0 self._videoNumber: int = 0 self._curveFilter = filters.BGRPortraCurveFilter()
def __init__(self): self._windowManager = WindowManager('Cameo', self.onKeypress) self._captureManager = CaptureManager( cv2.VideoCapture(0), self._windowManager, True) self._curveFilter = filters.BGRPortraCurveFilter() self._conv_filter = filters.SharpenFilter() self._face_tracker = FaceTracker() self._should_draw_debug_rects = False
def __init__(self): self._window_manager = TkinterWindowManager('Jarvis', self.on_key_press) self._capture_manager = CaptureManager( cv2.VideoCapture(0), should_mirror_capture=True, preview_manager=self._window_manager, should_mirror_preview=False) self._threaded_web_stream_manager = ThreadedWebStreamManager( self._capture_manager) self._face_tracker = FaceTracker() self._should_draw_debug = False self._curve_filter = filters.BGRPortraCurveFilter()
def __init__(self): # 窗口管理器 self._windowManager = WindowManger( "Cameo", self.onKeyPress ) # 捕获管理器 self._captureManager = CaptureManager( cv2.VideoCapture(0), self._windowManager, True, ) self._curveFilter = filters.BGRPortraCurveFilter()
def __init__(self): self._windowManager = WindowManager('Camer', self.onKeypress) self._captureManager = CaptureManager(cv2.VideoCapture(0), self._windowManager, True) self._filters = [ filters.BGRPortraCurveFilter(), filters.BGRProviaCurveFilter(), filters.BGRVelviaCurveFilter(), filters.BGRCrossProcessCurveFilter() ] self._currentFilter = 0 self._curveFliter = self._filters[self._currentFilter] self._faceTracker = FaceTracker() self._shoulddrawRects = False self._shouldswapFaces = False
def __init__(self): self._windowManager = WindowManager('benFinder', self.onKeypress) device = depth.CV_CAP_FREENECT #device = 1 print "device=%d" % device self._captureManager = CaptureManager( device, self._windowManager, True) self._captureManager.channel = depth.CV_CAP_OPENNI_BGR_IMAGE self._faceTracker = FaceTracker() self._shouldDrawDebugRects = False self._backgroundSubtract = False self._autoBackgroundSubtract = False self._curveFilter = filters.BGRPortraCurveFilter() self.background_video_img = None self.background_depth_img = None self.autoBackgroundImg = None self._ts = TimeSeries() self._frameCount = 0
def __init__(self): self._windowManager = WindowManager('Cameo', self.onKeypress) self._captureManager = CaptureManager(cv2.VideoCapture(0), self._windowManager, True) self._curves = [None, filters.BGRCrossProcessCurveFilter(), filters.BGRPortraCurveFilter(), filters.BGRProviaCurveFilter(), filters.BGRVelviaCurveFilter()] self._curveIndex = 0 self._curveFilter = self._curves[self._curveIndex] self._recolorFilters = [None, filters.recolorCMV, filters.recolorRC, filters.recolorRGV] self._recolorIndex = 0 self._recolor = self._recolorFilters[self._recolorIndex] self._convolutionFilters = [None, filters.findEdgesFilter(), filters.sharpenFilter(), filters.blurFilter(), filters.embossFilter()] self._convolutionIndex = 0 self._convolution = self._convolutionFilters[self._convolutionIndex] self._strokeEdges = False self._faceTracker = FaceTracker() self._shouldDrawDebugRects = True
def __init__(self): self._windowManager = WindowManager('Cameo', self.onKeypress) self._captureManager = CaptureManager(cv2.VideoCapture(0), self._windowManager, True) self._curveFilter = filters.BGRPortraCurveFilter()
def __init__(self): self._windowManager = WindowManager('Cameo', self.onKeypress) self._captureManager = CaptureManager(cv2.VideoCapture(0), self._windowManager, False) self._curveFilter = filters.BGRPortraCurveFilter() self._convolutionFilter = filters.FindEdgesFilter()