Main Page
Namespaces
Classes
Files
File List
File Members
wrappers
python
demo_cv_sync.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
import
freenect
3
import
cv
4
import
frame_convert
5
6
cv.NamedWindow(
'Depth'
)
7
cv.NamedWindow(
'Video'
)
8
print(
'Press ESC in window to stop'
)
9
10
11
def
get_depth
():
12
return
frame_convert.pretty_depth_cv
(freenect.sync_get_depth()[0])
13
14
15
def
get_video
():
16
return
frame_convert.video_cv
(freenect.sync_get_video()[0])
17
18
19
while
1:
20
cv.ShowImage(
'Depth'
,
get_depth
())
21
cv.ShowImage(
'Video'
,
get_video
())
22
if
cv.WaitKey(10) == 27:
23
break
demo_cv_sync.get_depth
def get_depth()
Definition:
demo_cv_sync.py:11
frame_convert.pretty_depth_cv
def pretty_depth_cv(depth)
Definition:
frame_convert.py:21
frame_convert.video_cv
def video_cv(video)
Definition:
frame_convert.py:42
demo_cv_sync.get_video
def get_video()
Definition:
demo_cv_sync.py:15
libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Mon Jun 10 2019 13:46:42