Skip to content

Commit 1dde81a

Browse files
committed
depth_image
1 parent 0e8151e commit 1dde81a

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@
44
- [Use Kinect with OpenCV (Python)](https://gist.github.com/joinAero/1f76844278f141cea8338d1118423648)
55
- [Experimenting with Kinect using opencv, python and open kinect (libfreenect)](https://naman5.wordpress.com/2014/06/24/experimenting-with-kinect-using-opencv-python-and-open-kinect-libfreenect/)
66
- [Getting Started With Kinect and OpenCV](https://electronicsforu.com/electronics-projects/software-projects-ideas/getting-started-kinect-opencv)
7+
8+
- 安装驱动
9+
- sudo apt install python-freenect
10+
11+
12+
- 结果,截图
13+
![depth_image](depth_image.png)
97.6 KB
Loading

cv-Kinect深度相机/kinect_test.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"""
88
kinect_test.py:
99
https://naman5.wordpress.com/2014/06/24/experimenting-with-kinect-using-opencv-python-and-open-kinect-libfreenect/
10+
11+
安装驱动
12+
sudo apt install python-freenect
13+
python2.7 kinect_test.py
14+
第二次启动,成功!
1015
"""
1116

1217
# import the necessary modules
@@ -30,11 +35,14 @@ def get_depth():
3035

3136

3237
if __name__ == "__main__":
38+
print 'start'
3339
while 1:
3440
# get a frame from RGB camera
3541
frame = get_video()
42+
print 'frame',type(frame)
3643
# get a frame from depth sensor
3744
depth = get_depth()
45+
print 'depth', type(depth)
3846
# display RGB image
3947
cv2.imshow('RGB image', frame)
4048
# display depth image

0 commit comments

Comments
 (0)