pykitti | Python tools for working with KITTI data

 by   utiasSTARS Python Version: Current License: MIT

kandi X-RAY | pykitti Summary

kandi X-RAY | pykitti Summary

null

Python tools for working with KITTI data.
Support
    Quality
      Security
        License
          Reuse

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pykitti
            Get all kandi verified functions for this library.

            pykitti Key Features

            No Key Features are available at this moment for pykitti.

            pykitti Examples and Code Snippets

            No Code Snippets are available at this moment for pykitti.

            Community Discussions

            Trending Discussions on pykitti

            QUESTION

            Kitti Velodyne point to pixel coordinate
            Asked 2017-Aug-21 at 14:47

            From the Velodyne point, how to get pixel coordinate for each camera?

            Using pykitti point_cam0 = data.calib.T_cam0_velo.dot(point_velo) We can get the projection on the image which is equation 7 of the Kitti Dataset paper:

            y = Prect(i) Rrect(0) Tvelocam x

            But from there, how to get the actual pixel coordinates on each image?

            ...

            ANSWER

            Answered 2017-Aug-21 at 14:47

            Update: PyKitti version 0.2.1 exposes projection matrices for all cameras.

            I recently faced the same problem. For me, the problem was that pykitty didn't expose Prect and Rrect matrices for all cameras.

            For Pykitti > 0.2.1, use Prect and Rrect from calibration data.

            For previous versions, you have two options:

            1. Enter the matrices by hand (data is in the .xml calibration file for each sequence).
            2. Use this fork of pykitti: https://github.com/Mi-lo/pykitti/

            Then, you can use equation 7 to project a velodyne point into an image. Note that:

            • You will need 3D points as a 4xN array in homogeneous coordinates. Points returned by pykitti are a Nx4 numpy array, with the reflectance in the 4th column. You can prepare the points with the prepare_velo_points function below, which keeps only points with reflectance > 0, then replaces reflectance values with 1 to get homogeneous coordinates.

            • The velodyne is 360°. Equation 7 will give you a result even for points that are behind the camera (they will get projected as if they were in front, but vertically mirrored). To avoid this, you should project only points that are in front of the camera. For this, you can use the function project_velo_points_in_img below. It returns 2d points in homogeneous coordinates so you should discard the 3rd row.

            Here are the functions I used:

            Source https://stackoverflow.com/questions/45333780

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install pykitti

            No Installation instructions are available at this moment for pykitti.Refer to component home page for details.

            Support

            For feature suggestions, bugs create an issue on GitHub
            If you have any questions vist the community on GitHub, Stack Overflow.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • sshUrl

            git@github.com:utiasSTARS/pykitti.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link