Image Frustum to Global 3D
# generate camera frustum h, w = self.cfg['image']['h'], self.cfg['image']['w'] n_cam, dim, downsampled_h, downsampled_w = feat.size() # Depth grid depth_grid = torch.arange(1, 65, 1, dtype=torch.float) depth_grid = depth_grid.view(-1, 1, 1).expand(-1, downsampled_h, downsampled_w) n_depth_slices = depth_grid.shape[0] # x and y grids x_grid = torch.linspace(0, w - 1, downsampled_w, dtype=torch.f..
더보기
how to put text message on images using opencv library on C
** C/C++에서 opencv로 영상에 text 글자 삽입하기 ** CvFont font; char buffer[64]; // cvInitFont(CvFont*, int fontFace, double Hscale, double Vscale, double Shear, int thickness, int lineType); cvInitFont(&font, CV_FONT_HERSHEY_SIMPLEX, 0.5, 0.5, 0, 1.5, CV_AA); // display just character cvPutText(screenRGB, "Target Speed:", cvPoint(10, 80), &font, cvScalar(0, 0, 255, 0)); // display the value of the float va..
더보기