cadc_devkit icon indicating copy to clipboard operation
cadc_devkit copied to clipboard

Labels within camera 00

Open ZiadElmassik opened this issue 4 years ago • 3 comments

Hello @mpitropov, I deeply apologize for the spam. There's a problem with the 3d_annotations.json file in which all the labels within all the cameras are included. I'm trying to only convert the labels within camera 00 to KITTI format to evaluate the models. Are there any identifiers within the 3d_ann.json file or any way to identify which labels reside within which camera view?

ZiadElmassik avatar Jun 28 '21 13:06 ZiadElmassik

Hi, in some of my example demo files I did the following:

  1. Transform the cuboid to the camera frame that I want, followed by filtering out negative z values
  2. Transforming the individual cuboid corners to the image frame and filtering out negative z values
  3. Divide x,y values by z to get the image coordinates and filter out cuboids with values outside of the image.

mpitropov avatar Jun 28 '21 14:06 mpitropov

Hello @mpitropov, I've nearly perfected the conversion script. All that remains is to simply filter out bounding boxes that are outside camera 00's FOV. Can you please specify which demo contains the filtering?

ZiadElmassik avatar Jul 07 '21 19:07 ZiadElmassik

This script: https://github.com/mpitropov/cadc_devkit/blob/master/run_demo_tracklets.py

https://github.com/mpitropov/cadc_devkit/blob/9c43a311ad6c9262fa2e0ce8bc60638c2ab4dda9/run_demo_tracklets.py#L72

  1. Multiple of these lines: https://github.com/mpitropov/cadc_devkit/blob/9c43a311ad6c9262fa2e0ce8bc60638c2ab4dda9/run_demo_tracklets.py#L91

  2. Multiple of these lines: https://github.com/mpitropov/cadc_devkit/blob/9c43a311ad6c9262fa2e0ce8bc60638c2ab4dda9/run_demo_tracklets.py#L130

The filtering could be modified. Currently, it removes cars if even one corner point is outside of the image coordinates.

mpitropov avatar Jul 07 '21 20:07 mpitropov