首页 > 解决方案 > ValueError:无法将大小为 12400 的数组重塑为形状 (1,4)

问题描述

我正在从 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))

标签: pythonnumpy2dspyder3d-model

解决方案


推荐阅读