ValueError:无法将大小为12400的数组重塑为形状(1,4)

2024-05-01 22:43:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在从2d图像构建3d模型,我尝试了很多,但无法修复这个错误

def reprojection_loss_function(opt_variables, points_2d, num_pts):
    P = opt_variables[0:12].reshape(3,4)
    point_3d = opt_variables[12:].reshape((len(points_2d[0]),4))

Tags: 模型图像lendef错误functionvariablesnum