Image transformation in OpenCV

前端 未结 2 730
忘掉有多难
忘掉有多难 2020-11-29 02:20

This question is related to this question: How to remove convexity defects in sudoku square

I was trying to implement nikie\'s answer in Mathematica to OpenCV

2条回答
  •  执笔经年
    2020-11-29 02:53

    if you have source points and end points (you only need 4), you can plug them into cv2.getPerspectiveTransform, and use that result in cv2.warpPerspective. Gives you a nice flat result.

提交回复
热议问题