Hi,
Here is what I have encountered when I run the code which you provided "Project 3D Velodyne points to 2D camera Image ", I got error message.
I put the code you provided in ipython notebook inside one file called, "projectVelo.py", and I only changed the path to velodyne and image file.
Here is the error message:
Traceback (most recent call last):
File "projectVelo.py", line 60, in
img, pnt, c_ = res.velo_projection_frame(v_fov=v_fov, h_fov=h_fov)
File "/home/keisha_tsai/Downloads/KITTI_Tutorial-master/kitti_foundation.py", line 611, in velo_projectionframe
res, c = self.velo_2_img_projection(velo_gen)
File "/home/keisha_tsai/Downloads/KITTI_Tutorial-master/kitti_foundation.py", line 486, in __velo_2_img_projection
xyzv, c = self.point_matrix(points)
File "/home/keisha_tsai/Downloads/KITTI_Tutorial-master/kitti_foundation.py", line 305, in point_matrix
self.points_filter(points)
File "/home/keisha_tsai/Downloads/KITTI_Tutorial-master/kitti_foundation.py", line 368, in points_filter
self.upload_points(points)
File "/home/keisha_tsai/Downloads/KITTI_Tutorial-master/kitti_foundation.py", line 296, in __upload_points
self.x = points[:, 0]
TypeError: 'generator' object has no attribute 'getitem__'
Hope anyone can help me to solve this problem.
Thank you.
The problem didn't occur when I used the code which provided in "velo2cam_projection_detail.ipynb".
Still don't know why, but at least I can get the proper result.
Hi, Here is what I have encountered when I run the code which you provided "Project 3D Velodyne points to 2D camera Image ", I got error message. I put the code you provided in ipython notebook inside one file called, "projectVelo.py", and I only changed the path to velodyne and image file.
Here is the error message:
Traceback (most recent call last): File "projectVelo.py", line 60, in
img, pnt, c_ = res.velo_projection_frame(v_fov=v_fov, h_fov=h_fov)
File "/home/keisha_tsai/Downloads/KITTI_Tutorial-master/kitti_foundation.py", line 611, in velo_projectionframe
res, c = self.velo_2_img_projection(velo_gen)
File "/home/keisha_tsai/Downloads/KITTI_Tutorial-master/kitti_foundation.py", line 486, in __velo_2_img_projection
xyzv, c = self.point_matrix(points)
File "/home/keisha_tsai/Downloads/KITTI_Tutorial-master/kitti_foundation.py", line 305, in point_matrix
self.points_filter(points)
File "/home/keisha_tsai/Downloads/KITTI_Tutorial-master/kitti_foundation.py", line 368, in points_filter
self.upload_points(points)
File "/home/keisha_tsai/Downloads/KITTI_Tutorial-master/kitti_foundation.py", line 296, in __upload_points
self.x = points[:, 0]
TypeError: 'generator' object has no attribute 'getitem__'
Hope anyone can help me to solve this problem. Thank you.