Skip to content

Commit 4d7f231

Browse files
committed
freenect 结果,截图
1 parent 76e43c4 commit 4d7f231

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

cv-Kinect深度相机/Xbox-Kinect-深度相机.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@
1313
- 必须使用freenect或openni库
1414

1515
- 结果,截图
16-
![depth_image](depth_image.png)
16+
![depth_image](depth_image.png)
17+
18+
- freenect 结果,截图
19+
![freenect_test](freenect_test1.png)
492 KB
Loading

cv-Kinect深度相机/freenect_test1.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66

77
"""
88
freenect_test1.py:
9-
不行。段错误 (核心已转储)
9+
10+
安装pygame
11+
sudo apt-get build-dep python-pygame
12+
pip install pygame
13+
1014
"""
1115

1216
import pygame
@@ -56,7 +60,8 @@ def make_gamma():
5660
disp_size = (640, 480)
5761
pygame.init()
5862
screen = pygame.display.set_mode(disp_size)
59-
font = pygame.font.Font('slkscr.ttf', 32) #TODO provide your own font
63+
# font = pygame.font.Font('slkscr.ttf', 32) #TODO provide your own font
64+
font = pygame.font.Font(None, 32) #TODO provide your own font
6065
while True:
6166
events = pygame.event.get()
6267
for e in events:

cv-Kinect深度相机/kinect_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ def get_depth():
3535

3636

3737
if __name__ == "__main__":
38-
# print 'start'
38+
print('start')
3939
try:
4040
while 1:
4141
# get a frame from RGB camera
4242
frame = get_video()
43-
# print 'frame',type(frame)
43+
print('frame', type(frame))
4444
# get a frame from depth sensor
4545
depth = get_depth()
46-
# print 'depth', type(depth)
46+
print('depth', type(depth))
4747
# display RGB image
4848
cv2.imshow('RGB image', frame)
4949
# display depth image

0 commit comments

Comments
 (0)