File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 11import cyni
22import numpy as np
3- import Image
3+ from PIL import Image
44
55cyni .initialize ()
66device = cyni .getAnyDevice ()
77device .open ()
8- depthStream = device .createStream ("depth" , fps = 30 )
9- colorStream = device .createStream ("color" , fps = 30 )
8+ depthStream = device .createStream (b "depth" , fps = 30 )
9+ # colorStream = device.createStream(b "color", fps=30)
1010depthStream .start ()
11- colorStream .start ()
12- colorFrame = colorStream .readFrame ()
11+ # colorStream.start()
12+ # colorFrame = colorStream.readFrame()
1313depthFrame = depthStream .readFrame ()
14- cloud = cyni .depthMapToPointCloud (depthFrame .data , depthStream , colorFrame .data )
15- cyni .writePCD (cloud , "cloud.pcd" )
16- readCloud = cyni .readPCD ("cloud.pcd" )
17- cyni .writePCD (readCloud , "cloud2.pcd" , ascii = True )
14+ cloud = cyni .depthMapToPointCloud (depthFrame .data , depthStream )
15+ #cloud = cyni.depthMapToPointCloud(depthFrame.data, depthStream, colorFrame.data)
16+ cyni .writePCD (cloud , "cloud.pcd" , ascii = True )
17+ #readCloud = cyni.readPCD("cloud.pcd")
18+ #cyni.writePCD(readCloud, "cloud2.pcd", ascii=True)
Original file line number Diff line number Diff line change 11import cyni
22import numpy as np
3- import Image
3+ from PIL import Image
44
55cyni .initialize ()
66device = cyni .getAnyDevice ()
You can’t perform that action at this time.
0 commit comments