Episode 11: Object detection

As with lane detection, we also need to detect obstacles using multiple sensors. For this exercise, we’ll be working with three sensing modalities: Camera, LiDAR and Radar. For each of them, a detector will be developed.

And, of course, just as I did for lane detection, I need ground-truth data for training and validation. I definitely don’t have the time or patience to manually annotate thousands of 3D objects. So, once again, I needed to find a way to generate ground truth automatically, or at least semi-automatically.

The key idea:
Nothing very new… a detector running in the car only knows the past. We build the ground truth afterwards, when the whole recording is available, so we can look forward and backward in time. A car that is hard to see at 140 m becomes easy to identify at short range. Once we know where it was at 10m, its size, how it was moving, we can trace it back to where it was at 140 m.

Luckily, Livox provides an open-source 3D object detection model that performs surprisingly well. The plan is to leverage the RAW detection to build the ground truth.

Now, let me be clear: this is not exactly best practice. We end up in a bit of a chicken-and-egg situation: the Livox model generates the labels that are then used to train the very same model. Not ideal!

Let me quickly explain how I approached it.

The steps

  1. Detect. Livox finds objects in each LiDAR scan (10Hz). Near objects are found reliably. Far ones are often missed, or found with low confidence.
  2. Put everything on one map. The vehicle speed and yaw rate tell us how it moved. We use them to place every detection on a single fixed map, so a parked car stays in the same place on the map even though the truck drives past it.
  3. Link detections into objects, in both directions of time. A tracker follows each object from scan to scan, once forward and once backward in time. Running it twice makes the linking robust.
  4. Clean up each object.
    • Errors: objects seen only a few times, or never with high confidence, are thrown away as likely errors.
    • Size and type: taken from the close detections, which are the most reliable.
    • Path: smoothed, and short gaps where the detector missed the object are filled in.
  5. Extend into the distance. Before an object was first detected (or after it was last seen), its path is extended, assuming it kept the same speed and direction, up to 150 m away. The process stops if there is not enough raw LiDAR points in the box.
  6. Manual Review. A viewer shows the boxes over the camera image and the LiDAR data, so I can delete wrong objects.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *