2 years ago
#7107
JacksonFreeman
Error with triangulation using cv.triangulatePoints()
I am trying to find the corresponding 3d point from two images using the openCV function triangulatePoints() in python. It takes as input the two Projection matrices of both cameras and 2 corresponding image point coordinates (i have all four of thes inputs). --> cv.triangulatePoints(projMatr1, projMatr2, projPoints1, projPoints2).
However, i can't seem to figure out in which form the 2 image point coordinates should be. I've looked up documentation which says :
projPoints1 2xN array of feature points in the first image. It can be also a cell array of feature points {[x,y], ...} or two-channel array of size 1xNx2 or Nx1x2.
However I try to use these coordinates as an input, i always get an error. Does anyone know how i should input these?
python
opencv
computer-vision
triangulation
stereo-3d
0 Answers
Your Answer