Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 2 #19

Open
cjsumne opened this issue Apr 10, 2017 · 1 comment
Open

Chapter 2 #19

cjsumne opened this issue Apr 10, 2017 · 1 comment

Comments

@cjsumne
Copy link

cjsumne commented Apr 10, 2017

Hi, I am trying to understand your code but keep getting an error that I can't quite get around.

I keep getting this error and I
user:~/opencv-python-blueprints/chapter2$ python chapter2.py
Could not open audio: -1
Traceback (most recent call last):
File "chapter2.py", line 93, in
main()
File "chapter2.py", line 87, in main
layout = KinectLayout(None, -1, 'Kinect Hand Gesture Recognition', capture)
File "/home/lpcs/opencv-python-blueprints/chapter2/gui.py", line 71, in init
self.bmp = wx.BitmapFromBuffer(self.imgWidth, self.imgHeight, frame)
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_gdi.py", line 856, in BitmapFromBuffer
return gdi._BitmapFromBuffer(width, height, dataBuffer)
ValueError: Invalid data buffer size.

@rlabuguen
Copy link

Getting also the same error. Please advise..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants