on-internet
← Community

Can't draw the epipolar lines in camera calibration and 3D- reconstruction using opencv & python

Stack Overflow ·

After I have generated the Fundamental and Essential Matrix from Camera calibration, I am trying to get the Epipolar lines, and draw them in my images to test the Matrix I have generated, following this python-opencv tutorial Here is the code for impelementing the drawing epipolar lines function: def drawlines(img1,img2,lines,pts1,pts2): ''' img1 - image on which we draw the epilines for the points in img2 lines - corresponding epilines ''' r,c = img1.shape img1 = cv2.cvtColor(img1,cv2.COLOR_GRAY2BGR) img2 = cv2.cvtColor(img2,cv2.COLOR_GRAY2BGR) for r,pt1,pt2 in zip(lines,pts1,pts2): color = t

Comments

Sign in or sign up to comment and upvote.

No comments yet.