GithubHelp home page GithubHelp logo

ason93 / tools_make_planes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leofansq/tools_make_planes

0.0 1.0 0.0 6.48 MB

AVOD needs the planes file to provide ground plane information, but the official planes generation tool has not yet been provided, which brings great difficulty to the test work. This project is used to generate planes files especially for AVOD testing.

License: MIT License

Python 100.00%

tools_make_planes's Introduction

Make Planes

AVOD needs the planes file to provide ground plane information, but the official planes generation tool has not yet been provided, which brings great difficulty to the test work. This project is used to generate planes files especially for AVOD testing.

Functions

Generate the planes files for the KITTI testing data or your own data

  • lidar4to3(input_file_path, output_file_path): Convert the KITTI lidar points from Nx4 shape to Nx3 shape.

  • cal_planes(input_file_path="./points/", output_file_path="./planes/"): Using Ransac in PyntCloud to find the groud plane.

  • lidar_point_to_img_calib(point, Tr, R0, P2): Convert lidar points to the camera.

  • calib_at(file_path, file_index): Return the calib sequence.

  • load_kitti_calib(file_path, file_index): Load projection matrix.

Input

  • calib
  • velodyne(Nx4)

Output

  • points(Nx3)
  • planes

Getting Started

  • The project is based on PyntCloud. You need to install it first.

    git clone https://github.com/daavoo/pyntcloud.git

    pip install -e pyntcloud

    It seems like the PyntCLoud is updated. This code may not work for the new version. So I Upload The Old Version In This Repo.

  • Set the path of your dataset in main.py.

    You can also set the specified output path for the generated Points(Nx3) files and the Planes files. Note that the input path of cal_planes() needs to be consistent with the output path of lidar4to3(). The default output path for the Points file is './points/', and the default output path for the Planes file is './planes/'.

  • Run the main.py to start generating.

    python main.py

  • For the KITTI dataset, the error data self-checking function is included in the cal_planes() function. Plane data with a height less than 1.3 meters or greater than 2.0 meters is determined as erroneous data and replaced with default data (0, -1, 0, 1.65). The decision criteria and default values can be modified in the cal_planes() function. For erroneous data, its name and origin plane data will be stored in the error.log file.

    Due to the principle of the generation of planes, there may be subtle differences in the generated planes data each time.

Supplementary Information

tools_make_planes's People

Contributors

leofansq avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.