Skip to content

Chapter 2  #19

@cjsumne

Description

@cjsumne

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions