Labels within camera 00
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?
Hi, in some of my example demo files I did the following:
- Transform the cuboid to the camera frame that I want, followed by filtering out negative z values
- Transforming the individual cuboid corners to the image frame and filtering out negative z values
- Divide x,y values by z to get the image coordinates and filter out cuboids with values outside of the image.
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?
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
-
Multiple of these lines: https://github.com/mpitropov/cadc_devkit/blob/9c43a311ad6c9262fa2e0ce8bc60638c2ab4dda9/run_demo_tracklets.py#L91
-
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.