Open Sourab1801 opened 2 years ago
I am sorry mate, I do not have a Kinect any more, but as far as i can see you do not use my library so it is better to make this comment here:
https://github.com/Kinect/PyKinect2
its the official python kinect2 repo
[hello] @KonstantinosAng
And my second issue is about frame resolution , In kinect/pykinect2 i am not able to reduce the resolution properly. if i want 15x15 resolution then it converts height only 15 and width is 120. when i am going to increase the resolution above 120x120 then it work properly but below 120x120 it only decreases the height and the width is 120 as it is .
my code:
import cv2
from pykinect2 import PyKinectV2 from pykinect2 import PyKinectRuntime import ctypes import _ctypes import pygame import numpy as np from PIL import Image MARGIN =10 WIDTH = 10 HEIGHT = 10 mog = cv2.createBackgroundSubtractorMOG2(history=2000, varThreshold=16, detectShadows=True) class DepthRuntime(object): def init(self): # constructor initialize(assign values) to the data members of the class x = pygame.init() # initialize all imported pygame modules
main = "Kinect v2 Depth" game = DepthRuntime() game.run()
please help me in this issues. Thank you