projPoints2 is not a numpy array, neither a scalar

created at 07-31-2021 views: 12

problem

pointCloudX, pointCloudY, pointCloudZ, reprojError = cv2.triangulatePoints(pts1, pts2, E, P, P1)

This code runs and reports an error saying:

projPoints2 is not a numpy array, neither a scalar

solution

Function form: cv.triangulatePoints(projMatr1, projMatr2, projPoints1, projPoints2[, points4D])
The error message is that projPoints2 is not a numpy array, nor is it a scalar
So the problem is that you have the wrong type of parameter. You can see from the function form that the type of parameter P is wrong.

created at:07-31-2021
edited at: 07-31-2021: