markerfunctions.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:ArkwoodAR 作者: rdmilligan 项目源码 文件源码
def get_topdown_quad(image, src):

    # src and dst points
    src = _order_points(src)

    (max_width,max_height) = _max_width_height(src)
    dst = _topdown_points(max_width, max_height)

    # warp perspective
    matrix = cv2.getPerspectiveTransform(src, dst)
    warped = cv2.warpPerspective(image, matrix, _max_width_height(src))

    return warped
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号