Skip to content

Commit

Permalink
Added the python header
Browse files Browse the repository at this point in the history
Signed-off-by: Brandyn A. White <[email protected]>
  • Loading branch information
Brandyn A. White authored and qdot committed Nov 27, 2010
1 parent 2a6ceeb commit 9d7b9c7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion wrappers/python/demo_cv_depth_show.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
import freenect
import cv
import numpy as np
Expand All @@ -14,4 +15,4 @@ def display(dev, data, timestamp):
data.dtype.itemsize * data.shape[1])
cv.ShowImage('Depth', image)
cv.WaitKey(5)
freenect.runloop(lambda *x: display(*freenect.depth_cb_np(*x)))
freenect.runloop(lambda *x: display(*freenect.depth_cb_np(*x)))
1 change: 1 addition & 0 deletions wrappers/python/demo_cv_depth_sync_show.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
import freenect
import cv
import numpy as np
Expand Down
5 changes: 3 additions & 2 deletions wrappers/python/setup.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

ext_modules = [Extension("freenect", ["freenect.pyx"],
libraries=['usb-1.0', 'freenect', 'freenect_sync'],
extra_compile_args=['-fPIC', '-I', '../../../include/',
extra_compile_args=['-fPIC', '-I', '../../include/',
'-I', '/usr/include/libusb-1.0/',
'-I', '/usr/local/include/libusb-1.0',
'-I', '/usr/local/include',
'-I', '../../c_sync/'])]
'-I', '../c_sync/'])]
setup(
name = 'freenect',
cmdclass = {'build_ext': build_ext},
Expand Down
1 change: 0 additions & 1 deletion wrappers/python_ctypes/demo_cv_depth_sync_show.py

This file was deleted.

0 comments on commit 9d7b9c7

Please sign in to comment.