Artificial Intelligence

Apply machine learning and deep learning

Lidar Code-Along

Lidar (light detection and ranging) is a remote sensing technology. Lidar sensors emit laser pulses that reflect off objects, allowing them to perceive the structure of their surroundings. The sensors record the reflected light energy to determine the distances to objects to create a 2D or 3D representations of the surroundings.
With lidar technology a point cloud is created, that is a collection of data points plotted in 3-D space, where each point represents the X-, Y-, and Z-coordinates of a location on a real-world object’s surface, and the points collectively map the entire surface. Lidar is used in many industries including forestry, infrastructure analysis, and mining.
Deep learning adds precision and speed to the processing of point cloud data. Watch the following five videos that walk you through the steps of a lidar processing workflow with deep learning. You can also find the videos here.
For more examples, see lidar with deep learning examples. To learn more about how MATLAB users can use deep learning, computer vision, and image processing for addressing lidar challenges, check out this story: Spacesium Creates Deep Learning System to Segment Large Lidar Point Clouds with MATLAB.
 

Load Point Cloud Data

Load point cloud data as a data store using the pcread function and load the bounding box labels using the boxLabelDatastore function.
Video Player is loading.
Current Time 0:00
Duration 1:06
Loaded: 14.88%
Stream Type LIVE
Remaining Time 1:06
 
1x
  • Chapters
  • descriptions off, selected
  • en (Main), selected
     

    Preprocess Data

    Split the data into training and testing sets. Synthetically increase the size of the training data set by randomly adding a fixed number of car and truck class objects to every point cloud and by using augmentation techniques such as flipping, scaling, rotation, and translation. To learn more about typical data augmentation techniques for 3-D object detection workflows with lidar data, see Data Augmentations for Lidar Object Detection Using Deep Learning.
    Video Player is loading.
    Current Time 0:00
    Duration 0:55
    Loaded: 17.81%
    Stream Type LIVE
    Remaining Time 0:55
     
    1x
    • Chapters
    • descriptions off, selected
    • en (Main), selected
       

      Define Deep Neural Network

      Define network parameters, such as anchor boxes and pillars, for the PointPillars network. Then, define the PointPillars detection network using the pointPillarObjectDetector function.
      Video Player is loading.
      Current Time 0:00
      Duration 0:29
      Loaded: 33.74%
      Stream Type LIVE
      Remaining Time 0:29
       
      1x
      • Chapters
      • descriptions off, selected
      • en (Main), selected
         

        Train Network

        To train a network, you must specify training options. Because training a network can be time consuming, a pretrained PointPillars model is used for this workflow.
        Video Player is loading.
        Current Time 0:00
        Duration 0:33
        Loaded: 29.56%
        Stream Type LIVE
        Remaining Time 0:33
         
        1x
        • Chapters
        • descriptions off, selected
        • en (Main), selected
           

          Object Detection

          Test the PointPillars network on a test dataset and display the detected output point cloud with bounding boxes.
          Video Player is loading.
          Current Time 0:00
          Duration 0:26
          Loaded: 37.70%
          Stream Type LIVE
          Remaining Time 0:26
           
          1x
          • Chapters
          • descriptions off, selected
          • en (Main), selected
           
          |
          • print

          Comments

          To leave a comment, please click here to sign in to your MathWorks Account or create a new one.

          Loading...
          Go to top of page