HI,
I am trying to use both Leap motion camera and Kinect v2 together for a project. I am using pykinect2 and leap motion python library. I have created separate projects and algorithms for each and they are working perfectly fine. But when I try combining them, I am getting error
The program '[12456] python.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.
The frame work of my code is shown below:
class Kinect(object):
def method1(self):
.....
def method2(self):
......
def method3 (self):
if condition1 ==true
switch_leap()
class LeapListener(Leap.Listener):
def method1(self):
.....
def method2(self):
.....
def method3(self):
.....
def switch_leap():
# Create a sample listener and controller
listener = LeapListener()
controller = Leap.Controller()
# Have the sample listener receive events from the controller
controller.add_listener(listener)
__main__ = "Kinect v2 Body Game"
print("yooooo")
paikinect = Kinect();
paikinect.method3();
The program exits itself with the fore mentioned error as soon as the condition to switch to leap is met.
I am trying to figure this out, but I don't know where to start or where to look. Will this work if I use Unity? Any ideas or suggestions will be greatly appreciated.