Tudor Ileni
Tudor Ileni
@varun-tangoit if you want to transform a 3 obj (vertices, colors, triangle) into 2d image check the function `transform_test` from here: https://github.com/YadiraF/face3d/blob/master/examples/3_transform.py Specially the following code: ``` image_vertices = mesh.transform.to_image(projected_vertices,...
take a look on my comment here, it may help: (https://github.com/YadiraF/PRNet/issues/58#issuecomment-439795431) after you get the 2d image, you can save it to disk (with open cv in my case) ```...
> I try > pixels = cv2.remap(img, np.squeeze( np.asarray( prj[0,:] ) ).astype('float32').reshape(t_height, t_width),np.squeeze( np.asarray( prj[1,:] ) ).astype('float32').reshape(t_height, t_width), cv2.INTER_CUBIC) > pixels = pixels.reshape(pixels.shape[0]*pixels.shape[1], pixels.shape[2]) > I have solved this issue...