This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import numpy as np | |
import os | |
from tqdm import tqdm | |
from det3d.datasets.utils.ground_plane_detection import fit_plane_LSE_RANSAC | |
def load_points(bin_file): | |
points = np.fromfile(bin_file, dtype=np.float32).reshape(-1, 4) | |
points = np.concatenate((points[:, :3], np.ones((points.shape[0], 1))), axis=1) | |
return points |