Git Product home page Git Product logo

didichallengehelperscripts's Introduction

Didi Challenge Helper Scripts

Helper Scripts for the Didi Challenge (Team: Transformers!!)

These Scripts use Python2.x

New Addition: Feature_extraction_from_velo_points.ipynb

New Addition: npy2images.py

rosbag_cooking.py

  • Extracts a sample image from a bag file in the same directory and prints out a summary and information about the bag file.
  • Prints a lot of information on the file's PointCloud2 Topic and a sample of the data to terminal.

Usage:

  • Run from the command line as follows without brackets and parenthesis: python2 rosbag_cooking.py [file_name.bag]

bag2images.py

  • Extracts all the images from a given bag file to a folder in the directory of a given name in grayscale or RGB colour.

Usage:

  • Run from the command line as follows without brackets and parenthesis: python2 bag2images.py [bag_file_name] [new_images_folder_name] ["c" or "g" for colour or gray] alt tag

bag2video.py

  • Extracts the images in the bag in video format in grayscale or RGB clolour.

Usage:

  • Run from the command line as follows without brackets and parenthesis: python2 bag2video.py [file_name.bag] [fps] ["c" or "g" for colour or gray]

bag2pointcloud_xyzir.py

  • Extracts the PointCloud2 frames in the bag file as an array of frames(topic messages).
  • Each member of the output array contains an array of the X - Y - Z - Intensity-Ring values in this order.

Usage:

  • Run from the command line as follows without brackets and parenthesis: python2 bag2pointcloud_xyzir.py [file_name.bag]
  • The output file can be loaded using: numpy.load([npy_file_path])

pointcloud2plot_visual.ipynb

  • Extracts the PointCloud2 frames in the .NPY file as an array of frames values (X,Y,Z,Intensity,Ring).
  • Plots a bird's-eye view of a sample frame and saves it to an image at 1400dpi.
  • Note! VTK and MayaVI need to be on compatible versions with each other.

bag2velo_xy_images.py

  • Extracts all the xy axis (bird's-eye view) images from a given bag file to a folder in the directory.

Usage:

  • Run from the command line as follows without brackets and parenthesis: python2 bag2velo_xy_images.py [bag_file_name] [int_dpi]

Feature_extraction_from_velo_points.ipynb

  • A Notebook exploring how to extract features from the velodyne data provided

npy2images.py

  • Extracts all the points form the .NPY file convert to a top-down image, save it and a folder of the images cropped into chuncks of 230x230 to manually label the car/notCar data from the images

Usage:

  • Run from the command line as follows without brackets and parenthesis: python2 npy2images.py [npy_file_name]

alt tag

Also Checkout...

bag_to_csv

  • Converts the topics and types of the rosbag into csv format.

didichallengehelperscripts's People

Contributors

jeremy-shannon avatar moe-elsadig avatar

Watchers

 avatar  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.